We came to an issue whereby we have tester to use the D365 Web API.
He is getting below error:
{“error”:{“code”:”0x80060888″,”message”:”Property _prefix_fieldname_value cannot be updated to null. The reference property can only be deleted.”}}
The issue with this error is when he try to update one of the lookup value into null using PATCH method.
The request body is setting as “_prefix_fieldname_value”: null.
After further checking, it is because he is missing request header “Autodisassociate” : true.
By setting this in the request header, the PATCH method went through successfully with response 204.