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

FK Replacement failed in AX2012 in specific company

$
0
0

Hi All,

Just to give you little background of my error:

Created a new company RT1 And imported  some data(done by functional guy, not me).

Now When I am trying to post (invoice) project purchase order , I am facing   below error:

 

 

Error      Message (21:30:11)         SourceDocument object not initialised.

 

Stack trace

 

(S)\Classes\ProjectSourceDocumentLineItemHelper\projTransType - line 18

(S)\Data Dictionary\Tables\ProjectAccountingDistribution\Methods\transactionCurrencySalesAmt - line 31

(S)\Classes\ProjFundingEngine\createProjTransFromProjDist - line 36

(S)\Classes\ProjFundingEngine\fundingLimitTrackingProjDist - line 22

(S)\Classes\ProjFundingEngine\fundingLimitTrackingAccDist - line 7

(S)\Data Dictionary\Tables\AccountingDistribution\Methods\Update - line 9

(S)\Classes\PurchFormletterParmDataInvoice\updateSourceDocumentLines - line 47

(S)\Classes\PurchFormletterParmDataInvoice\reArrangeUpdateParmLine - line 19

(S)\Classes\PurchFormletterParmData\reArrangeLines - line 105

(S)\Classes\formletterParmData\doReArrange - line 15

(S)\Classes\formletterParmData\reArrange - line 8

(S)\Classes\PurchFormletterParmData\reArrangeServer - line 7

(C)\Classes\PurchFormLetter\reArrange - line 21

(C)\Classes\PurchFormLetter\run - line 11

(C)\Classes\PurchFormLetter\main - line 67

(C)\Classes\FormFunctionButtonControl\Clicked

 

Error      Message (21:30:11)         Removal of suspension of recId allocation for table VendInvoiceInfoTable has failed.

 

When i did some debugging I found out as shown below :

I have found that in the class method PurchFormletterParmDataInvoice.insertSourceDocumentHeader - line 11, there is reserved one recId for a row on the SourceDocumentHeader.

But I am facing this problem only in newly created company . And  NOT IN ANY OTHER COMPANIES. Then looks like a data issue, not sure..

 

Kindly help.

 

thanks

Manoj Parashar

 


Viewing all articles
Browse latest Browse all 72043

Trending Articles



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