You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "xavier-GitHub76 (via GitHub)" <gi...@apache.org> on 2025/09/01 10:09:48 UTC

[I] An error message is sometimes displayed when creating a metric. The measure is nevertheless saved. [superset]

xavier-GitHub76 opened a new issue, #34919:
URL: https://github.com/apache/superset/issues/34919

   ### Bug description
   
   With Superset 5.0.0, I create a metric and save the dataset
   An error message is sometimes displayed
   
   https://github.com/user-attachments/assets/738bdb8f-cc78-4b95-9025-217ef23af1f4
   
   A fix seems to be present : https://github.com/apache/superset/pull/33523 with the tag 5.0 but I use already this version
   
   I don't reproduce it on 6.0.0RC1
   
   
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [ ] I have searched Superset docs and Slack and didn't find a solution to my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug report.
   - [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] An error message is sometimes displayed when creating a metric. The measure is nevertheless saved. [superset]

Posted by "xavier-GitHub76 (via GitHub)" <gi...@apache.org>.
xavier-GitHub76 closed issue #34919: An error message is sometimes displayed when creating a metric. The measure is nevertheless saved.
URL: https://github.com/apache/superset/issues/34919


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] An error message is sometimes displayed when creating a metric. The measure is nevertheless saved. [superset]

Posted by "msyavuz (via GitHub)" <gi...@apache.org>.
msyavuz commented on issue #34919:
URL: https://github.com/apache/superset/issues/34919#issuecomment-3243132363

   I've encountered this before, i think for some reason it tries to add the column metric again


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] An error message is sometimes displayed when creating a metric. The measure is nevertheless saved. [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #34919:
URL: https://github.com/apache/superset/issues/34919#issuecomment-3241769128

   <!-- Answer -->
   The error message you see when creating a metric in Superset 5.0.0 is a known issue caused by a schema validation error, often related to the currency field in metrics. This happens because a migration changed the currency field from a string to a JSON object, which can trigger validation errors like "Length must be between 1 and 128" if legacy data is present. The metric is still saved, but further dataset modifications may be blocked unless you remove the affected metric or set its currency field to null. 
   
   The fix for this bug was merged after the 5.0.0 release and is not included in that version, but it is present in later releases such as 6.0.0RC1, which is why you don't see the issue there. For now, you can work around it by removing or recreating metrics without currency settings until you upgrade to a version with the fix. More details are available in [this issue discussion](https://github.com/apache/superset/issues/33964) and [here](https://github.com/apache/superset/issues/34886).
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/91ed785a-96b5-45d6-96f6-fe216075c76a?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/91ed785a-96b5-45d6-96f6-fe216075c76a?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/91ed785a-96b5-45d6-96f6-fe216075c76a?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/91ed785a-96b5-45d6-96f6-fe216075c76a?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/91ed785a-96b5-45d6-96f6-fe216075c76a?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/91ed785a-96b5-45d6-96f6-fe216075c76a?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/91ed785a-96b5-45d6-96f6-fe216075c76a?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu
 b)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/34919)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] An error message is sometimes displayed when creating a metric. The measure is nevertheless saved. [superset]

Posted by "xavier-GitHub76 (via GitHub)" <gi...@apache.org>.
xavier-GitHub76 commented on issue #34919:
URL: https://github.com/apache/superset/issues/34919#issuecomment-4488348210

   It's OK with 6.1.0-RC3


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org