Skip to main content

Notifications

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 123
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!
  • xmp Profile Picture
    123 on at
    Report extension invalid XML schema
    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,
  • Suggested answer
    Gerardo Rentería García Profile Picture
    20,177 Most Valuable Professional on at
    Report extension invalid XML schema

    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

  • Ramiz Profile Picture
    589 on at
    Report extension invalid XML schema
    What version of BC are you using? I tried it on 25.4 and its working.
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    17,414 Super User 2025 Season 1 on at
  • Suggested answer
    YUN ZHU Profile Picture
    85,005 Super User 2025 Season 1 on at
    Report extension invalid XML schema
    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
    Ramesh Kumar Profile Picture
    5,402 on at
    Report extension invalid XML schema
    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
    Nitin Verma Profile Picture
    21,567 Moderator on at
    Report extension invalid XML schema
    Hi,
     
    I doubt in this line : 
     
    Can you correct the path?
     
    WordLayout = 'Layouts\test.docx';
  • Verified answer
    Steven Renders Profile Picture
    5,510 Moderator on at
    Report extension invalid XML schema
    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.
     
     

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans