Hello,
I am using Dynamics 365 Finance and Operations with update 11 applied. When I try to delete a customer with an address the following error is thrown.
DELETE FROM CUSTDEFAULTLOCATION WHERE
(((PARTITION=5637144576) AND (DATAAREAID=?)) AND
(ACCOUNTNUM=?))
[Microsoft][ODBC Driver 13 for SQL Server][SQL Server] Conversion failed when
converting the nvarchar value 'C000002' to data type int.
I have found that this is caused by a trigger on the table CUSTDEFAULTLOCATION
Trigger AIFCustCustomerV2EntityEsportaCustCustomerV2EntityCustDefaultLocatio1836e33678af474c85e303c63644c14a
IF I disable this trigger SQL Management Studio the error no longer presents itself and I can delete customers with addresses OK.
My question is how is this trigger created? We have attempted to use change tracking which did not work as required. I expect that the change tracking created this trigger, but how can it be removed in AX?
Thanks - all help appreciated!