web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

FK Replacement failed in AX2012 in specific company

(0) ShareShare
ReportReport
Posted on by

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

 

*This post is locked for comments

I have the same question (0)
  • Anand Menon Profile Picture
    30 on at

    Does this issue got solved? I am also getting the same error on vendinvoiceinfotable while doing purchase invoice through AIF document service. Please reply

  • Derek Broere Profile Picture
    5 on at

    Did anyone found the cause of this error? I am getting the same when trying to post a purchase invoice using a service, but the same code running in AX trough a job does not error ?!?  

    Thanks

    Derek

  • DRT Profile Picture
    10 on at

    We are receiving the same error as well when createing Invoice Orders in Batch

  • Tommy Skaue Profile Picture
    Moderator on at

    Not really possible to view that screenshot. Can you repost it with a higher resolution?

  • Wim Van hoorde Profile Picture
    on at

    Facing the same error here, only for one user (even more bizarre). Found this thread here - worth to have follow-up. dynamicsuser.net/.../60168.aspx.

  • MFD Profile Picture
    5 on at

    Hi,

    Does anyone know how to solve this issue? I have the same problem. It looks like a data problem. New invoices can be posted, but old transactions get stuck with the above mentioned error.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans