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 :
Small and medium business | Business Central, N...
Suggested Answer

error while printing custom Word layout

(0) ShareShare
ReportReport
Posted on by 135

Hi,

I have an error trying to print the purchase order: 

The Inventory Purchase Orders report does not have a DataItem that uses the table (Table 38 Purchase Header) specified in the function SetTableView.

While I can run the report from Custom Report Layouts without any problems. 

What can I do?

Thanks in advance

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at

    Hi, Please check the Report ID where you made the error, it looks like you have set up the wrong report.

    pastedimage1683850587005v1.png

    In most cases, this can be specified in the following page.

    pastedimage1683850661179v2.png

    Hope this helps.

    Thanks.

    ZHU

  • elusiveferret Profile Picture
    135 on at

    Thank you for your answer ZHU,

    However, we have a different problem. We checked and this error only occurs with one Vendor, when we have other Vendors with simillar dataset and no problem. 

    4530.jpg

    But we can run the same report from report layout selection page, no problem

    12.jpg

    The same report for order 106019 we cannot generate from purchase order page. The problem is that system does no even show the filter page to preview a report.

    13.jpg

    As you see we can open a report for another order with another Vendor. And even if I change the filter to the no. 106019, the report is generated without problems.

    I tried to create new order with the problematic Vendor and the same error occurs. As we can easily run the report from the report layout page, the problem seems very wierd. 

    Thanks in advance

  • Suggested answer
    Jun Wang Profile Picture
    8,202 Super User 2025 Season 2 on at

    go to the vendor card, find Document Layouts, check what reports have been set up for that vendor. If the report seems to be set up correctly but doesn't print. You need to talk to a developer to troubleshoot.

    Or you could test by set the same report for another vendor if you get the same error.

    I don't have BC, the example is from nav

    pastedimage1683897088120v1.png

  • elusiveferret Profile Picture
    135 on at

    Lol, you are right. We had a different report in the vendor card, that's why we had that problem. Thanks a lot

  • Jun Wang Profile Picture
    8,202 Super User 2025 Season 2 on at

    I'm glad the issue has been resolved. please verify the answer so it can help more users.

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans