web
You’re offline. This is a read only version of the page.
close
Skip to main content
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 153
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,668 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.
     
     
  • Suggested answer
    Nitin Verma Profile Picture
    21,684 Moderator on at
    Report extension invalid XML schema
    Hi,
     
    I doubt in this line : 
     
    Can you correct the path?
     
    WordLayout = 'Layouts\test.docx';
  • Suggested answer
    Ramesh Kumar Profile Picture
    7,511 Super User 2025 Season 2 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
    YUN ZHU Profile Picture
    92,819 Super User 2025 Season 2 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
    Khushbu Rajvi. Profile Picture
    19,160 Super User 2025 Season 2 on at
  • Ramiz Profile Picture
    597 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
    Gerardo Rentería García Profile Picture
    23,574 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

  • xmp Profile Picture
    153 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,

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,285

#2
Sumit Singh Profile Picture

Sumit Singh 2,725

#3
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,526

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans