Change Tracking Query error in D365 Finance and Operations Data Export
Recently there was an issue with Change Tracking for BYOD. We keep getting the following error even after Change Tracking is enabled for the data entity.
Solution :
After debugging I found that the system will check if the record exists in the table "AifSqlCdcEnabledTables" with the field TableName and return int (1/0).
Run the below query in SQL to find if the list contains your table.
select RecId, * from AifSqlCdcEnabledTables where AifSqlCdcEnabledTables.TableName = 'XXXXX'
In my case, the Primary table was missing and causing the issue, whereas the secondary tables are present in the list. So I have changed the Entity to make the Primary Data source as secondary and secondary as Primary and the issue is fixed.
No comments:
Post a Comment