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

Report extension invalid XML schema

(5) ShareShare
ReportReport
Posted on by 187
Hi all,
 
I am trying to create a report extension in Business Central. I have done it previously several times but I'm not able to make it work now (maybe Microsoft changed something and I didn't realize..).
So, I want to extend report 1322 (Standard Purchase - Order).
1. I have added a new column to one of the datasets:
reportextension 80101 test extends "Standard Purchase - Order"
{
    WordLayout = 'Layouts\test.docx';
    dataset
    {
        add("Purchase Header")
        {
            column(zzz; "Buy-from Vendor Name") { }
        }
    }
}
 
2. I package, open the word document and I see the new field.
3. I add a couple of fields to the layout (one default field and my "zzz" field).
4. In Business Central, i open Report Layouts, look for 1322 and select "New". Here I upload my custom word layout with the two fields.
5. When uploading, I get this error:
Errors were detected in the Word layout:
/NavWordReportXmlPart/Purchase_Header/zzz specifies a path that is not valid. Required elements or sections of the XML schema may be missing.
 
Am I missing something?
Any help is much appreciated.
 
Thanks in advance!
I have the same question (0)
  • Verified answer
    Steven Renders Profile Picture
    5,682 Moderator on at
    When the report layout is in your app (VSCode), then when you package and deploy it is also in BC, so you do not need to add it anymore in report layouts, it should already be in there.
     
     
  • Suggested answer
    Nitin Verma Profile Picture
    21,790 Moderator on at
    Hi,
     
    I doubt in this line : 
     
    Can you correct the path?
     
    WordLayout = 'Layouts\test.docx';
  • Suggested answer
    Ramesh Kumar Profile Picture
    7,545 Super User 2026 Season 1 on at
    Only Issues which I am seeing are minor one
     
    1. Check the file path again : 
    2. Remove the space between PurchaseHeader
    3. Adding the quote to "Test Report Extension"
     
    Try the above and see if you are not able create report but its clearing saying the check the path on your error message.
     
    If this helped you, please check the box Does this answer your question?
     
  • Suggested answer
    YUN ZHU Profile Picture
    98,639 Super User 2026 Season 1 on at
    Hi, hope the following helps.
    Dynamics 365 Business Central: Why are custom columns/fields added via Report Extension not found in standard layouts exported from Report Layouts page?
     
    Dynamics 365 Business Central: Add Custom Report Layouts to Report Layouts (Migrate to System Layouts)
     
    Thanks.
    ZHU
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    21,583 Super User 2026 Season 1 on at
  • Ramiz Profile Picture
    597 on at
    What version of BC are you using? I tried it on 25.4 and its working.
  • Suggested answer
    Gerardo Rentería García Profile Picture
    25,547 Most Valuable Professional on at

    Hi, good day
    I hope this can help you, and give you some hints.

    Solved: Custom XML Word Report Layout - incomplet fields

    XML mapping

    Best Regards
    Gerardo

  • xmp Profile Picture
    187 on at
    Hi
     
    Thank you all so much for your responses. I didn't have access and could not login to update.
     
    Indeed, when creating the custom layout a new report appears in the custom layout list, it just happened to be at the bottom and didn't see it. I can now set this layout as the default for the PO and it works perfectly.
     
    Kind regards,

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,840 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,080 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 846 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans