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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Missing SourceDocumentLine records

(0) ShareShare
ReportReport
Posted on by 100

Is there any way to restore SourceDocumentLine records? 

I have some records in PurchLine table referencing unexisting records in SourceDocumentLine table,  so users cannot create the corresponding invoices. 

I cannot remove these records from the purch order because the products are already received. I tried to cancel the purch order but an error appears due to the missing SourceDocumentLine records.

How can I fix this problem?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Sukrut Parab Profile Picture
    71,735 Moderator on at

    You  might need to try writing a job and try to create new entries associates with punchline in SourceDocumentLine  table and then try to process invoices. Try it first in the test system . Do you know the cause why  corresponding entries got deleted ? is there any customization around that area ?

  • juanmartinezp Profile Picture
    100 on at

    Thank you for your response.

    I tried to restore the record manually in the test environment and it works correctly. Hope it works on production as well.

    I don't know why SourceDocumentLine records were deleted. There are some customizations but they were made by our partner.

  • Victor123 Profile Picture
    214 on at

    Hi juanmartinezp,

    Could you share a code snippet of how you recreacted SourceDocumentLine records?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans