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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Error Reading Metadata.

(0) ShareShare
ReportReport
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.

I have the same question (0)
  • Sergei Minozhenko Profile Picture
    23,097 on at

    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

  • Muhammad Bilal 17 Profile Picture
    110 on at

    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
    23,097 on at

    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.

  • Muhammad Bilal 17 Profile Picture
    110 on at

    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
    23,097 on at

    Hi Muhammad Bilal,

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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 802

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 636 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 534

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans