Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / D365 FO SSRS metadata ...
Finance forum
Suggested answer

D365 FO SSRS metadata error in devops

Posted on by 458

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
    vicky1234 458 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
    Martin Dráb 225,588 Super User 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
    Komi Siabi 12,401 Super User 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
    vicky1234 458 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
    Martin Dráb 225,588 Super User 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
    vicky1234 458 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
    Martin Dráb 225,588 Super User 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
    vicky1234 458 on at
    RE: D365 FO SSRS metadata error in devops

    Hi Ivan.

    Yes it was done in VS

  • Suggested answer
    id365font Profile Picture
    id365font 400 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.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,986 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,588 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans