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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 341 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 312

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 262 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans