Autodetect settings

Solved!
jvijayakumar2
Level 3
Autodetect settings

Autodetect settings on DSSDataset give an error.

 

 

            dataiku_api_client = dataiku.api_client()
            project = dataiku_api_client.get_default_project()
            builder = project.new_managed_dataset(metadata_dataset_name)
            builder.with_store_into(connection)
            dataset = builder.create()
            settings = dataset.autodetect_settings(
            settings.save()

 

 


 

0 Kudos
1 Solution
JordanB
Dataiker

Hi @jvijayakumar2,

What is your goal here? Note, autodetect_settings() is intended for "input" datasets, not for datasets that are in the middle of the Flow. 

Please provide context on where this code is being run and for what purpose.

Thanks!

Jordan

 

View solution in original post

0 Kudos
2 Replies
JordanB
Dataiker

Hi @jvijayakumar2,

What is your goal here? Note, autodetect_settings() is intended for "input" datasets, not for datasets that are in the middle of the Flow. 

Please provide context on where this code is being run and for what purpose.

Thanks!

Jordan

 

0 Kudos
jvijayakumar2
Level 3
Author

 Hi @JordanB ,

 

Thanks for your reply. I used this in a custom plugin. I wanted to create a dataset from inside the plugin and so tried this. But I later found another way to do that.