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 64

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

  • vicky1234 Profile Picture
    64 on at
    RE: D365 FO SSRS metadata error in devops

    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

  • Martin Dráb Profile Picture
    231,979 Most Valuable Professional on at
    RE: D365 FO SSRS metadata error in devops

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

  • Suggested answer
    Komi Siabi Profile Picture
    12,789 Most Valuable Professional on at
    RE: D365 FO SSRS metadata error in devops

    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 .

  • vicky1234 Profile Picture
    64 on at
    RE: D365 FO SSRS metadata error in devops

    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

  • Martin Dráb Profile Picture
    231,979 Most Valuable Professional on at
    RE: D365 FO SSRS metadata error in devops

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

  • vicky1234 Profile Picture
    64 on at
    RE: D365 FO SSRS metadata error in devops

    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
    231,979 Most Valuable Professional on at
    RE: D365 FO SSRS metadata error in devops

    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
    64 on at
    RE: D365 FO SSRS metadata error in devops

    Hi Ivan.

    Yes it was done in VS

  • Suggested answer
    id365font Profile Picture
    398 on at
    RE: D365 FO SSRS metadata error in devops

    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.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,278 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,979 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans