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

Edm.Int64 and EnumType Fields data population via Odata API

(0) ShareShare
ReportReport
Posted on by

Hi Everyone

I am trying to populate Edm.Int64 and EnumType fields in some MS D365 FnO tables like BudgetScenario and PurchaseOrderLinesV2. Problem is I am not able to figure out how to pass the values in JSON format to odata service using Postman. 

Look at the Request I used and corresponding responses I received.

BudgetScenarios -> Request - 

{
    "Name": "some sample name here",
    "Description": "random desc",
    "UnitOfMeasureClass": "1"
}   
Error in response -> 
 "innererror": {
            "message": "Write failed for table row of type 'BudgetPlanScenarioEntity'. Infolog: Warning: Field 'Unit of measure' must be filled in.; Warning: validateWrite failed on data source 'BudgetPlanScenario (BudgetPlanScenario)'.",       ----------------------> Removed some part of error as stacktrace is huge.
PurchaseOrderLinesV2 -> After some googling and documentation reading. I used IEEE754Compatible=true in content-type header and still did not work for Edm.Int64 value.
Request : 
{
    "PurchaseOrderNumber":"1234567802",
    "LineNumber": "10",
    "dataAreaId":"dat"
}
Response : Error Message when LineNumber is -------> "10"
"message": "Write validation failed for table row of type 'PurchPurchaseOrderLineV2Entity'. Infolog: .",
            "type": "Microsoft.Dynamics.Platform.Integration.Services.OData.AxODataValidateWriteException",
Response : Error message when LineNumber is -------------> "10.00"
"message": "Cannot convert the literal '10.00' to the expected type 'Edm.Int64'.",
                "type": "System.InvalidOperationException",
 
Can anybody help in identifying where I went wrong with this.
If there is any documentation for this somewhere on how to send field specific info to FnO Odata then please provide the link. BTW I tried to send Enum value in the format it is used for querying like Microsoft.Dynamics.DataEntities.UnitOfMeasureClass'VALUE'. no results.
Any help is appreciated.
Thanks
I have the same question (0)
  • WillWU Profile Picture
    22,363 on at

    Hi A.D.I.T.Y.A,

    Please try to change 10 to 10L.

    Please let us know the result.

    Hope this helps.

  • Community Member Profile Picture
    on at

    Hi Will,

    It did not work. Any other suggestions that I can try. I am also trying out different permutations and combinations but nothing working so far, also using IEEE754Compatible=true in content-type header but that is also not working out.

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 660

#2
André Arnaud de Calavon Profile Picture

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

#3
CP04-islander Profile Picture

CP04-islander 557

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans