Hello @Chaitanya Kumar Dondapati (Volkswagen) ,
The error seems to be misleading here . The below code just works fine .
dbutils.widgets.dropdown("1", "500", [str(x) for x in range(1, 1024)], "test")
Now lets increase the range by 1
dbutils.widgets.dropdown("0", "500", [str(x) for x in range(0, 1024)], "test")
com.databricks.dbutils_v1.TooManyDefaultChoices: Too many default choices (1024). Limit is 1024.
Even though the the error message says defaults , i am very confident that its nothing to do with that .
On your side the work around should be to reduce the dataset . Unfortunately i have not found any documentation on this limitation .
Thanks Himanshu
Please do consider to click on "Accept Answer" and "Up-vote" on the post that helps you, as it can be beneficial to other community members