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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Sales Invoice error missing lines after print

(0) ShareShare
ReportReport
Posted on by 172

Hello,

Im trying to fix a problem with sales invoices. Lately I got a problem that after a invoice is printed the second time anyone try to print it again the invoice got no lines in it.

The headers are always there except for invoice id every invoice printed more than once is called just invoice without id and any lines. In line section there is only info "No data is available".

Since it occours only for one customer group propably it's some custom code behind it but going back even a month with code didn't fixed it.

Trying to debug the standard salesinvoiceDP and salesinvoiceDPBase or my extended DP didn't trigger any breakpoint on this broken invoices on other customers it hits it and generate everything good.

Anyone good some ideas to try out here? The same problem is both on standard and custom invoice.

I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi,

    Please check the class SalesInvoiceDP. Open the designer and do a find references. Here you should be able to find any custom class that might be modifying the print process.

  • RadekM Profile Picture
    172 on at

    Nothing unusuall there.

    It's just random. I can print on prod a invoice that i can't on my dev machine and reverse. Some invoices don't go both sometimes there is no problem and sometimes it's a "limited time offer" and after that the invoces blocks again.

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Is it limited to your Dev VM? Or are you seeing the same behavior on Prod as well?

    Have you checked the data in CustInvoiceJour and CustInvoiceTrans when your are facing issues with invoice printing? Also, did you find anything while debugging in SalesInvoiceDPBase class?

  • RadekM Profile Picture
    172 on at

    I got the same problem on Prod, Sandbox and Dev VM. I checked data and there are no anomalies in.

    As I said above trying to debug it failed since none breakpoint got hit on any method on all DP classes when facing this broken print.

  • RadekM Profile Picture
    172 on at

    @edit.

    Deleted my whole invoice extension project.

    Still the problem is here.

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Are you starting debugging from SalesInvoiceController\main method?

    Where all have you placed breakpoints?

  • RadekM Profile Picture
    172 on at

    I placed them on SalesinvoiceDP and DPBase on populate methods

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    Please start from SalesInvoiceController\main() method and check the flow.

    You should be able to recognize where there is an issue

  • RadekM Profile Picture
    172 on at

    It actually went through the controller but never hit it's main method (or any DP method) before the invoice was complete

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Could you please share the screen you are printing the invoice from?

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 434 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans