Hi,
I have created a data entity for open in excel functionality. The form grid had all reference fields that are linked to back-end RecIds and only one datasource (the entity uses this DS), so I had to create virtual fields (unmapped) and utilized the postLoad() method to set them to correct values from other tables. I also used the mapEntityToDataSource() method to set/update the fields correctly on the form upon publishing changes made from the excel sheet.
I am having no issues when I insert a new record in the excel add-in then publish. However, if I try to delete a record in the excel add-in and publish I am receiving the error "The deletion of a row in data set XXX was not published. Error message: 'No resources were found when selecting for update.'".
I suspect that it is the same error as seen in these two forum posts:
https://www.dynamicsuser.net/t/record-deletion-through-import-in-excel/68502
But I couldn't get a good solution from these.
Please let me know if you have a solution. I have tried debugging but couldn't find from where this error was getting called. Let me know if I should provide some code snippets.
Thanks!