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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

ODATA POST call using postman throws validations errors for D365 F&O entity

(0) ShareShare
ReportReport
Posted on by 515

Hi All,

I am trying to create new records using Postman and custom data entity but it always gives validation errors.E.g. We have custom entity for customer address.

Initially it gives the error as "insert is not allowed on CustomerLegalEntity filed." So, we changed AllowEditOnCreate Property value for this field.

Next error it is giving as "party number is mandatory.ValidateWrite failed on DirPartyTable"

In my custom entity we don't have PartyNumber field. Somehow it is checking validation of all tables linked with the entity.

With the same entity if import the same data in file from data management it works fine.Even If I create Enqueue request from Postman with FormData selected as Text file it processed the file without any error. 

But when I try to POST request with Raw data in JSAON format it starts giving me validation errors.

Ideally if it is working through file/API (Enqueue request) POST call should also be successful.

I am using below syntax for POST request   :

DynamicsURL/data/entityname

Is there any other way to give call? There are so many other entities which are also giving this kind of issues.For all these entries set based processing is set to TRUE.

Thanks ,

Shri

  

I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,020 Super User 2025 Season 2 on at

    Hi Shri,

    You mention that you have a custom data entity. When you mention that the Party number is not used, then check if there is x++ logic to retrieve the Party. An address is linked to the party, via a location and then the address. The address on customers are in fact also linked to the party.

    Why did you create a new custom entity as there is already an out of the box data entity for customer addresses?

  • AnithaEswaran Profile Picture
    2,032 on at

    Hi Shri,

    What are the data sources used in your custom data entity ?

    Regards,

    Anitha.E

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans