Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

Customer Aging report SQL error after CU7 update to AX2012 R2

$
0
0

After I applied a CU7 update to our AX2012 R2 installation, One of the users reported this error to me.

Cannot edit a record in Customer or vendor account number (CustVendTransAging).

The SQL database has issued an error.

SQL error description: [Microsoft][SQL Server Native Client 10.0][SQL Server]String or binary data would be truncated.

SQL statement: UPDATE T1 SET NAME=T3.NAME,RECVERSION=? FROM tempdb."DBO".t12143_065EB03A5044473883A01845DF64A84A T1 CROSS JOIN CUSTTABLE T2 CROSS JOIN DIRPARTYTABLE T3 WHERE (T1.PARTITION=?) AND (((T2.PARTITION=?) AND (T2.DATAAREAID=?)) AND (T1.ACCOUNTNUM=T2.ACCOUNTNUM)) AND ((T3.PARTITION=?) AND (T2.PARTY=T3.RECID))

 

It turns out that the Name field on the table CustVentTransAging has an extended data type of Name which is 60 characters  however it was being assigned a value from DirPartTable.Name which has an extended Data Type fo DirPartyName which is 100 characters. 

 

So I changed the extended data type on CustVentTransAging  from Name to DirPartyName and the RESOLVED the issue.

 

If you do not like that solution, you can go to \Classes\CustVendAgingCalculation and inspect the method insertCustVendData maybe you can re write the update code there to meet your needs.

Thanks,

Keep sharing the knowledge.

-Albert.


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>