Hello!
I have made a custom report for Sales Order Confirmations. The report is a Word layout report, and used to work decently across every instance I uploaded it to.
Usually what we did, was that we added report extensions to add fields specific to the company and their needs. Then we went to Report Layout Selection in Business Central, exported the layout, added the new XML fields, and imported the new layout. We then set it to default, and everything worked well.
Recently there was a change in Business Central where Report Layout Selection is being deprecated, and they want us to use User Defined Report Layouts through the Report Layout page. The issue I am facing here, is that I can't seem to get new XML fields in the exported report layout as I used to, so we had to find another way of getting them in there and using the new fields.
Now though, I am facing a problem when I go to a Sales Order and press Print/Send > Email Confirmation.
I get the following error: /Report 50102 does not have a valid layout. Valid layout types are: Word, RDLC, Excel, and Custom./
Report 50102 is the custom report I have made. Then I have added a couple fields in a reportextension.
I have a feeling I get the error because the XML fields available in the report does not match the XML fields that have been added through the old method.
A side note is that I am allowed to preview the report when pressing Print/Send > Print Confirmation.
Does anyone have an idea of how I can get the right layout using Report Layouts, and how I can avoid getting the error when I try to send the order confirmation?
Even better would be a little guide on how to use the Report Layouts page exclusively to export current layout to get new XML fields if I add more later, because I can't seem to find a good way to do that.