Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Error "The state of the source document or Source document line could not be updated"

(0) ShareShare
ReportReport
Posted on by

I am doing a develop where I have to import a file to AX. To do that I have to import to an intermediate table, and the pass the information at the correct table into the standard.

Problem:

When I arrive to the import instruction to pass the information into standard (CustInvoiceLine table) The program show an error:

 

“The state of the source document or Source document line could not be updated”

 

I was reading some solutions in the net and I tried to check all my fields, refresh, debug, etc., but I do not see anything, I am starting with AX and I am lose with that, Could you help me? Thanks

*This post is locked for comments

  • Suggested answer
    Mislam Profile Picture
    5 on at
    RE: Error "The state of the source document or Source document line could not be updated"

    Hi

    I faced same issue, once I add table TaxUncommitted with Read Effective Access to user privileges, it works fine.

    Thanks

    Mislam

  • Hany Guirguis Profile Picture
    on at
    RE: Error "The state of the source document or Source document line could not be updated"

    hi 

    did you find any Solution ?

  • Mraj Profile Picture
    40 on at
    RE: Error "The state of the source document or Source document line could not be updated"

    Am facing this issue while Posting Purchase Invoice .

    Kindly advise.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Error "The state of the source document or Source document line could not be updated"

    You might also try out granting a reading right for the table "TaxUncommitted" to the user role.

    This does the Job without the Need to grant global Access.

  • Suggested answer
    Music727 Profile Picture
    35 on at
    RE: Error "The state of the source document or Source document line could not be updated"

    Hi,

    In case anyone else has this issue, there are two ways to solve it:

    1. Give access to all legal entities

    2. Create new customer role and add Full access to TaxUncommitted. Give this access to this role to all approvers in all companies.

    Give limited access rights to all other user roles.

    Kind regards,

    Milda

  • Vaibhav S Profile Picture
    236 on at
    RE: Error "The state of the source document or Source document line could not be updated"
  • Community Member Profile Picture
    on at
    RE: Error "The state of the source document or Source document line could not be updated"

    Finally the problem had solved changing the recId to import to the standard. The parentRecId to import was wrong. Thank you all for the help. You make me think a lot jajajaja.

  • Suggested answer
    Mahmoud Hakim Profile Picture
    17,887 on at
    RE: Error "The state of the source document or Source document line could not be updated"

    Check this link

    www.linkedin.com/.../state-source-document-line-could-updated-mohammad-aamir-mcts

  • Community Member Profile Picture
    on at
    RE: Error "The state of the source document or Source document line could not be updated"

    I think it's a database synchronization problem because the error is changing, complaining about fields that no longer exist in the tables.

    I made a synchronization, and appeared an error with the CIL. Then I generated an increment CIL, and fixed the error that the CIL shows. Generated it again and now the message in the log is: the Cil generate correctly, but the error persists. When compile the table, in the in the compiler output tells me that there are no errors, but also said generates an incremental CIL (I have already tried it several times) before executing the CIL code.

  • Rudi Hansen Profile Picture
    4,049 on at
    RE: Error "The state of the source document or Source document line could not be updated"

    I think we need some more information to help you.

    Please read this post : community.dynamics.com/.../273.suggestions-for-posting-a-new-question

    Perhaps as the least you should post the code you are having problems with.

    If its standard code, the names of the elements you have problems with.

    If its code you wrote, then making a simple example code snippet would be a good idea.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,137 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,877 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans