I am using the Xray Rest API 2.0 to import test results (/import/execution) with the JSON format.
When trying to import with a custom field in the JSON I get an error (even though the custom field ID exists on the test - I checked with the /rest/api/2/issue/{issuekey}/editmeta endpoint).
Error:
"error": "Test Run Custom Field 14320 not found for Test Run or has been deleted."