# questions

Eduardo Romero L贸pez

07/12/2023, 12:36 PM
I am trying to register a "plotly.PlotlyDataSet" type in the catalog and get this error:
Copy code
DatasetError: Failed while saving data to data set
or_fecha.json, load_args={}, plotly_args={'fig': {'orientation': h, 'x': fecha, 'y': numero}, 'type': line},
protocol=file, save_args={}).
Value of 'x' is not the name of a column in 'data_frame'. Expected one of [0] but received: fecha

Rashida Kanchwala

07/12/2023, 12:41 PM
Hi this is because plotly.PlotlyDataSet expects a dataframe not a figure. It creates the figure under the hood so it's not really done in the node, the node should just return a df. Maybe you should switch to using plotly.JSONDataSet in which the expected return type is a plotly figure. See the difference here in the docs -
馃憤馃徑 1

Eduardo Romero L贸pez

07/12/2023, 12:50 PM
ok, it works now!! I read that documentations before but i understood bad. thanks a lot 馃檪