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

Report extension invalid XML schema

(2) ShareShare
ReportReport
Posted on by 33
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!
  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,271 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
    Steven Renders Profile Picture
    Steven Renders 5,199 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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,479 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,295 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans