Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Microsoft.OData.ODataException: Does not support untyped value in non-open type

(1) ShareShare
ReportReport
Posted on by 20
Hello,
 
I am attempting to use the createRecord function to create an entity record with a lookup value for another entity.
 
The logical name of the entity for the lookup is "new_employee", and the navigation property is "new_employeeid".
 
 

When I invoke the createRecord function passing the object above I receive the error: Microsoft.OData.ODataException: Does not support untyped value in non-open type.



I understand that this error may occur if a property name is miss spelled. I can confirm that the navigation property is correct, and the schema name for "new_employeeid" is also lowercase. 

I have been successful using the createRecord function for other entities having the same type of lookup with the same navigation property name so it is unclear why it exclusively fails for one entity. 

Any assistance would be greatly appreciated. Please respond if anything about my problem is unclear.
 
Thank you,
 
Scott
  • Suggested answer
    Amit Katariya007 Profile Picture
    10,407 Super User 2025 Season 1 on at
    Microsoft.OData.ODataException: Does not support untyped value in non-open type
    Hey User,
     
    Can you please use REST Builder from XRM Toolbox. And then test it once by providing input as lookup, also compare your request and REST builders request format.
     
    Thank you,
    Amit Katariya

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 671 Super User 2025 Season 1

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 167 Super User 2025 Season 1

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 138 Most Valuable Professional

Product updates

Dynamics 365 release plans