Missing CustCollectionLetterNote transactions after upgrade AX 3 to AX 2009

The table CustCollectionLetterTrans in Axapta 3 was extended with a field called AccountNum in Dynamics AX 4.0. This new field is used as a relation between CustCollectionLetterJour and CustCollectionLetterTrans. If you upgrade from AX3 to Dynamics AX 2009 the upgrade scripts will not update the transactionsrows which will result in all collection letters missing their transactions.

To fix the problem loop over the CustCollectionLetterJour posts and update their corresponding transactions.

update trans
set trans.AccountNum = jour.AccountNum
from CustCollectionLetterTrans trans
join CustCollectionLetterJour jour
on trans.collectionletternum = jour.collectionletternum and trans.dataareaid = jour.dataareaid

Comments

Popular posts from this blog

How to disable auto enabled flight key using KillSwitch

Technical intro to Feature management in D365FO

Continuous integration and deployment Power platform FinOps tweaking