Error executing code: The field with ID ‘0’ does not exist in table ‘TableName’ in D365FO
Error executing code: The field with ID ‘0’ does not exist in table ‘TableName’ in D365FO
While running code that has to do with newly created fields, you might come across the following error: “Error executing code: The field with ID ‘0’ does not exist in table”
This is simply because the table is not synchronized with the database.
To resolve this we do the following:
- Make sure the table is part of your project
- On the Project property Synchronize database on build
- Rebuild project
Your comment is awaiting moderation.
Thanks for posting. I really enjoyed reading it, especially because it addressed my problem. It helped me a lot and I hope it will help others too.