Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

SourceDocumentLineItem object not initialised.

Posted on by Microsoft Employee

Dear Experts,

I`m having an odd error message upon selecting supplier account on PR line level...
--------------------------------------------------------------------------------------------------------

SourceDocumentLineItem object not initialised.

Stack trace

(S)\Classes\SourceDocumentLineItem\newFromSourceDocumentLineImplementation - line 27
(S)\Classes\SourceDocumentProcessorBase\parmCurrentItem - line 5
(S)\Classes\SourceDocumentLineState\validatePostTransition - line 18
(S)\Classes\SourceDocumentStateBase\transitionTo - line 27
(S)\Classes\SourceDocumentProcessorBase\submit - line 11
(S)\Classes\SourceDocumentLineProcessor\submitSourceDocumentLineImplementation - line 124
(S)\Classes\SourceDocumentProcessorFacade\submitSourceDocumentLineImplementation - line 26
(S)\Data Dictionary\Tables\PurchReqLine\Methods\createSourceDocumentLine - line 7
(S)\Data Dictionary\Tables\PurchReqLine\Methods\Insert - line 8
(S)\Classes\xRecord\dbOpInTransaction
(C)\Classes\FormDataSource\write
(C)\Forms\PurchReqTable\Data Sources\PurchReqLine\Methods\write - line 14
(C)\Forms\PurchReqTable\Data Sources\PurchReqLine\Fields\VendAccount\Methods\modified - line 19
(C)\Classes\FormStringControl\modified

--------------------------------------------------------------------------------------------------------

Any suggestions whats causing above error?
Kind Regards,
V

*This post is locked for comments

  • Suggested answer
    RE: SourceDocumentLineItem object not initialised.

    Go to procurement and sourcing module and perform purchase order distribution reset and once completed, confirm po again it will work.

  • Suggested answer
    Zoila Goñi Vera Profile Picture
    Zoila Goñi Vera 170 on at
    RE: SourceDocumentLineItem object not initialised.

    Hello, I am took one per one objects in the error message and compiled and sincronized (tables) them... , run cil complete ... but it didn't work

    Then I recalculated the taxes (in code taxes form has the menu option for open transactions) Again didn't work

    Later I compiled "maps" and "Clasess" nodes ...(all) and suddenly  worked.  the problem was solved.

    Regards.

  • Suggested answer
    Hossein.K Profile Picture
    Hossein.K 6,642 on at
    RE: SourceDocumentLineItem object not initialised.

    Hi,

    Run a full CIL compile and see if this solves your problem.

    Regards Hossein

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SourceDocumentLineItem object not initialised.

    In this case - complete AOS service/SQL server reboot solved above error.

    Regards,

    V

  • Suggested answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: SourceDocumentLineItem object not initialised.

    Also this discussion is related, there are different reasons like bad data/setup/record references elsewhere too:

    community.dynamics.com/.../126725

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SourceDocumentLineItem object not initialised.

    Hi Vilmos,

    Thank you for your quick response - how can I check if the record has broken reference or not? Is there any specific tables I need to compare/look at?

    If the code is involved - I might just skip it, as it's not my strongest side.

    Forgot to mention - found out that SQL server rebooted over the night while AOS was still operating and suddenly everyone is getting loads of error messages. I`ll try to restart AOS and reboot SQL - see if that fixes the major issues from this morning.

    Regards,

    V

  • Suggested answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: SourceDocumentLineItem object not initialised.

    We had a similar error this week but with purchase orders during source document processing.

    We have discovered that there were orphaned records in the SourceDocumentLine table that did not tie in with the purchase order id, and had to delete them before we could do the posting again correctly.

    Have a look at this discussion and see if you have a similar case:

    https://community.dynamics.com/ax/f/33/p/94859/314786

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans