web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

D365 FO SSRS metadata error in devops

(0) ShareShare
ReportReport
Posted on by 66

HI,

I am getting below error in devops build after doing checkin of the code.

 error : Fatal: dynamics://Report/VKSalesInvoice(0,0) - A metadata error occurred. File 'K:\AosService\PackagesLocalDirectory\Extension\ABCExtension\AxReport\VKSalesInvoice.xml' cannot be deserialized as 'Microsoft.Dynamics.AX.Metadata.MetaModel.AxReport'. Ensure the xml is valid. There was an error deserializing the object of type Microsoft.Dynamics.AX.Metadata.MetaModel.AxReport. Invalid character in the given encoding. Line 112342, position 12. Invalid character in the given encoding. Line 112342, position 12

On checking the line number by comparing the file the expression was very simple one in fact its a static text as below

=" Please submit your copy".

I have checked the report output and error screen and there is no error and reports also gets deployed in the dev environment.

The report is not giving any error in dev environment on build and deploy . I even did a  full build of the model.

Can anyone suggest what can be the issue.

Thanks,

VK

I have the same question (0)
  • Suggested answer
    id365font Profile Picture
    398 on at

    Hello VK,

    just one question. Did you do this change in the AOT in Visual Studio or directly in Source Control Explorer?

    It's important because sometimes if you change something directly on the file many more changes are done, such as formatting (UTF-8, UTF-8 BOM, etc).

    Please review it.

  • vicky1234 Profile Picture
    66 on at

    Hi Ivan.

    Yes it was done in VS

  • Martin Dráb Profile Picture
    237,967 Most Valuable Professional on at

    Not all characters are visible. There may be a control character, a special type of space, a character that can't be visualized by your current editor and so on.

  • vicky1234 Profile Picture
    66 on at

    Thanks Martin .

    How do I find the buggy character because it fails only in the devops build pipeline and not in the local build.

    The overall lines of the code is more than 200k lines for this custom report.

    Is there a way I can find out the exact issue by some validation.

  • Martin Dráb Profile Picture
    237,967 Most Valuable Professional on at

    The error messages says where exactly the character is, doesn't it?

  • vicky1234 Profile Picture
    66 on at

    Thanks for the reply Martin.

    I have already checked that position as shown below ..I dont understand what is the issue in the below xml.

    pastedimage1659016839450v1.png

    And the problem is that it only fails in the devOps build.
    I also copied the whole xml and validated online for syntax and it was successful but it still gives an error in devops.

    Thanks,

    VK

  • Suggested answer
    Komi Siabi Profile Picture
    13,109 Most Valuable Professional on at

    Just like Martin said, 

    A character or space would be the reason.

    For troubleshooting, I suggest you remove The expression =" Please submit your copy" then try check in. 

    This would tell you if your expression is the issue .

  • Martin Dráb Profile Picture
    237,967 Most Valuable Professional on at

    I'm not sure why you show us lines 247850-247859 if - according to information from yourself - the problematic character is at line 112342.

  • vicky1234 Profile Picture
    66 on at

    Nice catch Martin.
    Actually I had copied the code and somehow the line number was replaced with some other values while posting the error 
    pastedimage1659101475438v1.png

    The error started at  247853 as shown below,

    ". Invalid character in the given encoding. Line 247853, position 63. Invalid character in the given encoding. Line 247853, position 63. [C:\DynamicsSDK\Metadata\BuildMetadata.proj]"

    Thanks,

    VK

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 428 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans