Illegal data conversion from original field ProdParameters.PKA_BOMQtyEdit to ProdParameters.PKA_DisableNewDeletePickingList: unable to convert data types to anything but character field type (14 to 49)

Hi Technical,

Today, in this post we will talk about a very interesting topic about illegal data conversion from original field to newly created field.

Here, we need to understand this error occur while DB synchronization.

Error:

Illegal data conversion from original field ProdParameters.PKA_BOMQtyEdit to ProdParameters.PKA_DisableNewDeletePickingList: unable to convert data types to anything but character field type (14 to 49)

Note: PKA_BOMQtyEdit  and PKA_DisableNewDeletePickingList are ProdParameters table fields.

Solution:

Note: Please perform below action if you are DBA or having knowledge on SQL Queries in AX.

Check the fields id in AOT and compare it with SQLDictionary table in SQL with the following query:



--To Check:

select * from SQLDICTIONARY where TABLEID in (select TABLEID from SQLDICTIONARY where name = 'ProdParameters')
and NAME = 'PKA_BOMQtyEdit'

select * from SQLDICTIONARY where TABLEID in (select TABLEID from SQLDICTIONARY where name = 'ProdParameters')
and NAME = 'PKA_DisableNewDeletePickingList'

--If there is difference while comparing SQLDictionary table and AOT table fields please update the fields id through SQL level Queries.

--To update:

update SQLDICTIONARY set FIELDID = 60034 where TABLEID in (select TABLEID from SQLDICTIONARY where name = 'ProdParameters')
and name = 'PKA_BOMQtyEdit'

update SQLDICTIONARY set FIELDID = 60033 where TABLEID in (select TABLEID from SQLDICTIONARY where name = 'ProdParameters')
and name = 'PKA_DisableNewDeletePickingList'

We hope this solution helped you to troubleshoot DB sync issue using SQL Queries in AX 2012. Please comment your valuable feedback for this article...

Author:
Chirag Gupta
Microsoft Dynamics D365/AX 2012
Senior Technical Consultant at IBM Bangalore

Date:
7-Apr-2020

Happy Learning !!

Comments

Popular posts from this blog

[Solved] : Error: String or binary data would be truncated. Cannot execute a data definition language command on Vendor (VendLedgerReconciliationTmp)

AX 2012 - Command prompt compilation / AxBuild.exe for Parallel Compile on AOS of X++ to P-code / Parallel Compilation

AX 2012 - How to send SSRS report in email as an attachment using X++

AX 2012 - How to stop AOS when services got stuck at stopping status

AX 2012 - How to make a form field mandatory

Error: There was no endpoint listening at net.tcp://your_server_name:8201/Dynamics AX/Services…

Fetch vendor address using X++ in AX 2012

AX 2012 - How to print current date and time on SSRS Report

[Error] - Error in unit of amount in currency KES. Must be rounded to 0.01 | The unit of 37.563.5343100000000000 KES being posted to account 32710001-- is outside the current penny rounding threshold | Posting has been canceled

[Solved] : AX 2012 - No connection could be made because the target machine actively refused it 192.168.10.249:8201