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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Metadata error in the ...
Power Apps
Unanswered

Metadata error in the Dataverse Odata API for File Columns

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello Community,

i unfortunatly found an error in the Odata Metadata endpoint of Dataverse. File Columns have the Odata Type EDM.Binary, but are in fact a GUID. This trips up Odata Clients that validate the metadata.

Metadata :

SebastianAtWork_0-1646320798497.png

(this is in a custom table, im very new to the topic so i couldnt find a build in example)

SebastianAtWork_1-1646320864666.png

 

I have the same question (0)
  • Guido Preite Profile Picture
    1,490 Super User 2024 Season 1 on at

    if you get the columns from the XML metadata (like https://yourinstance.crm.dynamics.com/api/data/v9.0/$metadata) you are getting an Edm.Guid and if you query that column you still get a Guid value because that is what is stored inside Dataverse. The binary content is actually stored outside Dataverse and to retrieve the content exist specific platform messages (here a link with some information https://docs.microsoft.com/en-us/powerapps/developer/data-platform/file-attributes).

    If your goal is to display the binary content as part of that row I believe is not possible (opposite to image fields where you can retrieve the base64 encoded value), if you explain your goal maybe there is a workaround or something else

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yeah thats the problem, since Odata Clients cant be generated out of the metadata without modification (changing the Edm.Binary to Edm.Guid). That means a normal generated Client (and even a vanilla DataServiceContext) will throw an exception since it checks the Metadata. My goal is to report that bug or inconsistency.. Is there a Bugtracker for this product? I kinda tought this would be it.

  • Guido Preite Profile Picture
    1,490 Super User 2024 Season 1 on at

    can you provide more details? like the software you are using to generate the classes, the language used, etc etc? I am sure which exact way you can submit this behavior issue but if you provide more details is better

    Thanks

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I can do that, also the Problem is already there with just the Odata Api through Postman for example. I use C# with the Odata Connected Service Visual Studio 2019 extension.

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 Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard