What’s happening?
Users encounter an error when attempting to delete a custom table in Dynamics 365. Specifically, when trying to delete a custom table, an error message is displayed:
{ "error": { "code": "0x80040217", "message": "No rows could be found for OptionSet with id #################################### if OptionSet were published" } }
Reason
This occurs because the custom table has dependencies or references from other components within the environment, preventing its deletion.
Resolution:
To resolve this, any dependencies the tables have to another component must be removed.
Refer to the following resources for more information: