Skip to content

Error saving dataset The schema of the submitted payload is invalid. #36946

@rudak

Description

@rudak

Bug description

When editing a dataset and configuring a column to display a currency suffix, I encounter a validation error when saving the dataset.

Steps:

Go to a dataset -> Edit -> Edit a Metrics column

Set the Metric currency with:

symbol position: suffix
symbol: EUR

Save the dataset

At this point, saving fails with the following error:

Error saving dataset
The schema of the submitted payload is invalid.

Length must be between 1 and 128.:
{"0":"{","1":"'","2":"s","3":"y","4":"m","5":"b","6":"o","7":"l","8":"'","9":":","10":" ","11":"'","12":"E","13":"U","14":"R","15":"'","16":",","17":" ","18":"'","19":"s","20":"y","21":"m","22":"b","23":"o","24":"l","25":"P","26":"o","27":"s","28":"i","29":"t","30":"i","31":"o","32":"n","33":"'","34":":","35":" ","36":"'","37":"s","38":"u","39":"f","40":"f","41":"i","42":"x","43":"'","44":"}","symbolPosition":"suffix","symbol":"EUR"}

Image

It looks like the UI submits a JSON object for the currency configuration, but the backend schema expects a string with a maximum length of 128 characters. The payload appears to be interpreted character by character instead of as a valid string.

Version

Superset 5.0.0

Screenshots/recordings

``

Superset version

5.0.0

Python version

3.11

Node version

I don't know

Browser

Firefox

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    data:datasetRelated to dataset configurations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions