Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

error while printing custom Word layout

Posted on by 117

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

  • Jun Wang Profile Picture
    Jun Wang 7,433 Super User 2024 Season 2 on at
    RE: error while printing custom Word layout

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

  • elusiveferret Profile Picture
    elusiveferret 117 on at
    RE: error while printing custom Word layout

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

  • Suggested answer
    Jun Wang Profile Picture
    Jun Wang 7,433 Super User 2024 Season 2 on at
    RE: error while printing custom Word layout

    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
    elusiveferret 117 on at
    RE: error while printing custom Word layout

    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
    YUN ZHU Profile Picture
    YUN ZHU 73,035 Super User 2024 Season 2 on at
    RE: error while printing custom Word layout

    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

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,134 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,928 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans