jbfelix353 opened a new issue, #32982:
URL: https://github.com/apache/superset/issues/32982
### Bug description
The bug is that I can't duplicate a dataset using API. The body is the
following:
```json
{
"base_model_id": 33,
"table_name": "suivi_activite_vendeur_devis"
}
```
and the response is the following:
```json
{
"message": "Dataset parameters are invalid."
}
```
But the dataset ID 33 does exist! There's no additional log, just the
following:
```
2025-04-02 17:04:16,666:INFO:werkzeug:192.168.196.68 - - [02/Apr/2025
17:04:16] "POST /api/v1/dataset/duplicate HTTP/1.1" 422 -
```
### Screenshots/recordings
_No response_
### Superset version
master / latest-dev
### Python version
3.9
### Node version
16
### Browser
Chrome
### Additional context
The dataset has been retrieved via the endpoint `/api/v1/dataset`:
```json
{
"count": 1,
"description_columns": {},
"ids": [
33
],
"label_columns": {
"catalog": "Catalog",
"changed_by.first_name": "Changed By First Name",
"changed_by.id": "Changed By Id",
"changed_by.last_name": "Changed By Last Name",
"changed_by_name": "Changed By Name",
"changed_on_delta_humanized": "Changed On Delta Humanized",
"changed_on_utc": "Changed On Utc",
"database.database_name": "Database Database Name",
"database.id": "Database Id",
"datasource_type": "Datasource Type",
"default_endpoint": "Default Endpoint",
"description": "Description",
"explore_url": "Explore Url",
"extra": "Extra",
"id": "Id",
"kind": "Kind",
"owners.first_name": "Owners First Name",
"owners.id": "Owners Id",
"owners.last_name": "Owners Last Name",
"schema": "Schema",
"sql": "Sql",
"table_name": "Table Name",
"uuid": "Uuid"
},
"list_columns": [
"id",
"database.id",
"database.database_name",
"changed_by_name",
"changed_by.first_name",
"changed_by.last_name",
"changed_by.id",
"changed_on_utc",
"changed_on_delta_humanized",
"default_endpoint",
"description",
"datasource_type",
"explore_url",
"extra",
"kind",
"owners.id",
"owners.first_name",
"owners.last_name",
"catalog",
"schema",
"sql",
"table_name",
"uuid"
],
"list_title": "List Sqla Table",
"order_columns": [
"table_name",
"catalog",
"schema",
"changed_by.first_name",
"changed_on_delta_humanized",
"database.database_name"
],
"result": [
{
"catalog": null,
"changed_by": {
"first_name": "J",
"id": 2,
"last_name": "B"
},
"changed_by_name": "JB",
"changed_on_delta_humanized": "2 days ago",
"changed_on_utc": "2025-03-31T09:26:54.981630+0000",
"database": {
"database_name": "CATALOGUE ECX",
"id": 2
},
"datasource_type": "table",
"default_endpoint": null,
"description": null,
"explore_url": "/explore/?datasource_type=table&datasource_id=33",
"extra": null,
"id": 33,
"kind": "virtual",
"owners": [
{
"first_name": "Superset",
"id": 1,
"last_name": "Admin"
}
],
"schema": "ecx",
"sql": "HIDDEN FOR CONFIDENTIAL REASONS",
"table_name": "suivi_activite_vendeur_devis",
"uuid": "2cd99774-6030-43d3-a3c7-861543b63897"
}
]
}
### Checklist
- [x] I have searched Superset docs and Slack and didn't find a solution to
my problem.
- [x] I have searched the GitHub issue tracker and didn't find a similar bug
report.
- [x] 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]