SourceDocumentAmount object not initialized in AX

Error Message:


When i do the Purchase order i was getting this message "SourceDocumentAmount object not initialized" after analyzed i got resolved this issue do the process same like below., 

SourceDocumentAmount object not initialized in AX


 Classes >> AccountingDistributionProcessor >>  isMonetaryAmountFullyMatching



SourceDocumentAmount object not initialized in AX
 



Replace the below code from existing one which i have commented


//originalAmount = matchedDistributionSourceDocLineItem.parmSourceDocumentAmountMap().lookup(monetaryAmountToCheckMatching).parmAmount();

    if(!matcheddistributionsourcedoclineitem.parmSourceDocumentAmountMap().empty())
    {
        originalAmount = matchedDistributionSourceDocLineItem.parmsourcedocumentamountmap().lookup(monetaryAmountToCheckMatching).parmamount();
    }
 










 Download and install the KB 4011348 Hotfix and enjoy it..!




No comments:

Post a Comment