Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / SalesOrderHeadersV2 va...
Finance forum
Answered

SalesOrderHeadersV2 validateField ContactPersonId failed

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?
  • Verified answer
    Judy Profile Picture
    Judy Microsoft Employee on at
    SalesOrderHeadersV2 validateField ContactPersonId failed
    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

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,986 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,588 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans