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, ...
Answered

SalesOrderHeadersV2 validateField ContactPersonId failed

(1) ShareShare
ReportReport
Posted on by 3
I want to create order in Dynamics - Finance and Operations: SalesOrderHeadersV2 via API (now I test it by postman).
The problem occurs when i fill out field ContactPersonId. 
The error message: /Write failed for table row of type 'SalesOrderHeaderV2Entity'. Infolog: Warning: validateField failed on field 'SalesOrderHeaderV2Entity.ContactPersonId'./
I checked the ContactPersons table entry with the ContactPersonId and try to  use variouse ContactPersonId's but got the same error as a result.
Can anyone help me or give me a hint?
I have the same question (0)
  • Verified answer
    Judy Profile Picture
    Microsoft Employee on at
    Hi, for the error message, it indicates that the value you're providing for the ContactPersonId field is not valid or does not meet the required criteria.
    I have checked the code for the SalesOrderHeaderV2Entity, and there is indeed has some criteria, you need to make sure the parameter named ContactPerson is valid and ensuring that it corresponds to a valid entry in the ContactPersons table.
     
    Best Regards,
    Judy

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 611 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