After Restoring the data from Live Environment to the Test Environment When I synchronize the Data Dictionary after that I got the following error message.
Illegal data conversion from original field IPBCLIENTSESSION.CLIENTCOMPUTER to CRTFERTORDERTABLE.FertSupplier: Unable to convert data types to anything but character field type (0 to 4).
In Dynamics AX Environment I check the id of the table i.e CRTFERTORDERTABLE and id of the field i.e FertSupplier
The id of table CRTFERTORDERTABLE is 30379
id of the field FertSupplier is 30002.
Than in Sql server I write the following query:
SELECT TABLEID,FIELDID,NAME from SQLDICTIONARY
where TABLEID = 30379 and (FIELDID = 30002)
After running the query the result that I got is:
in the above image we can see that field CLIENTCOMPUTER contains the id 30002 while in AX Field ID 30002 belongs to FERTSUPPLIER
now I will update the SQLDICTIONARY table and set the CLIENTCOMPUTER ID to new id to remove the conflict.
below is the query to update the table
update SQLDICTIONARY set FIELDID = 300020
where TABLEID = 30379 and FIELDID = 30002
Now after running this I will again synchronize the table in Dynamics AX and after the synchronization the error will not arrive.
Thanks
Muhammad Zahid.
Illegal data conversion from original field IPBCLIENTSESSION.CLIENTCOMPUTER to CRTFERTORDERTABLE.FertSupplier: Unable to convert data types to anything but character field type (0 to 4).
In Dynamics AX Environment I check the id of the table i.e CRTFERTORDERTABLE and id of the field i.e FertSupplier
The id of table CRTFERTORDERTABLE is 30379
id of the field FertSupplier is 30002.
Than in Sql server I write the following query:
SELECT TABLEID,FIELDID,NAME from SQLDICTIONARY
where TABLEID = 30379 and (FIELDID = 30002)
After running the query the result that I got is:
in the above image we can see that field CLIENTCOMPUTER contains the id 30002 while in AX Field ID 30002 belongs to FERTSUPPLIER
now I will update the SQLDICTIONARY table and set the CLIENTCOMPUTER ID to new id to remove the conflict.
below is the query to update the table
update SQLDICTIONARY set FIELDID = 300020
where TABLEID = 30379 and FIELDID = 30002
Now after running this I will again synchronize the table in Dynamics AX and after the synchronization the error will not arrive.
Thanks
Muhammad Zahid.