Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Suggested answer

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

Posted on by Microsoft Employee

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

  • Suggested answer
    Mislam Profile Picture
    Mislam 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

  • 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
    Mraj 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
    Community Member Microsoft Employee 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
    Music727 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
    Vaibhav S 225 on at
    RE: Error "The state of the source document or Source document line could not be updated"
  • Community Member Profile Picture
    Community Member Microsoft Employee 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
    Mahmoud Hakim 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
    Community Member Microsoft Employee 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
    Rudi Hansen 3,983 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.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,986 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,588 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans