Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Error Reading Metadata.
Finance forum
Unanswered

Error Reading Metadata.

Posted on by 110

ValidMetadata.png2.png

I am opening the customized element in D365FO in the code upgraded solution where I am finding the following error "Error reading metadata. Verify that metadata xml files are accessible and are in a consistent state. Metadata element names must be the same as the file names." as shown in the attached screenshot.

  • Sergei Minozhenko Profile Picture
    Sergei Minozhenko 23,089 on at
    RE: Error Reading Metadata.

    Hi Muhammad Bilal,

    What did you try: rename or delete and create new class?

  • RE: Error Reading Metadata.

    Hi Sergei,

    I tried this one but the issue is not solved, now I am moving all the XML files to my module after renaming and setting their references since the elements are present in the customized module of Application Suite.

  • Sergei Minozhenko Profile Picture
    Sergei Minozhenko 23,089 on at
    RE: Error Reading Metadata.

    Hi Muhammad Bilal,

    Unfortunately, the filename is not visible. If it's not the same as the class name, try to rename it and restart VS.

    Also you can copy file content somewhere to notepad and delete a class from VS project and create a new one with the correct name and copy the main method code from notepad.

  • RE: Error Reading Metadata.

    The name is okay I think but the problem is with the path may be, please look at the screenshot.

    XML-error.png

  • Sergei Minozhenko Profile Picture
    Sergei Minozhenko 23,089 on at
    RE: Error Reading Metadata.

    Hi Muhammad Bilal,

    Did you rename the class? Looks like a class name in XML and XML filename are not the same?

    Open XML file directly in notepad and check if class name is correct here. It can be found in K:\AosService\PackagesLocalDirectory\MyModel\MyModel\AxClass folder

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,263 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,112 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans