RestApi For Employees Getting error
I am Getting an error when I try to send a patch request for the Employee
Very Simple body request, this is my first time working with the Employee records, but I have worked with inventoryItem records before without issue.
My Body json
{
“firstName”: “Glen”
}
Below is the Response Iam getting when I try to send.
{
“type”: “https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1”,
“title”: “Bad Request”,
“status”: 400,
“o:errorDetails”: [
{
“detail”: “Error while accessing a resource. TypeError: Cannot read property \”length\” from null (NLRecordScripting.scriptInit$lib#800).”,
“o:errorCode”: “USER_ERROR”
}
]
}
I am just testing to see if I can update some fields from our ADP data. But the simple test I am getting is telling me we have a script somewhere that is causing a failure. But I have no idea how to debug the issue.
I agree that this looks like a script error.
You can see the list of scripts deployed to a record under Customization > Scripting > Scripted Records.



