I have added a custom field to PORECEIPTD table and created a custom version of Import Template YIMPORTPTH to override standard JSOPTHPTH Import Template - this new Template includes a reference to the custom field.
When I try to run a Mutation to create a new Purchase Receipt in the X3 Builder Sandbox, it fails and displays errors starting with
{
"errors": [
{
"message": "The purchase receipt was not created.",
"locations": [
{
"line": 39,
"column": 13
}
],
"path": [
"x3Purchasing",
"purchaseReceipt",
"create"
],
"extensions": {
"code": "operation-error",
"diagnoses": [
{
"severity": 3,
"path": [],
"message": "LBOI : Variable nonexistent"
},
{
"severity": 3,
"path": [],
"message": "GSTK_BASTAB : Variable nonexistent"
},
{
"severity": 3,
"path": [],
"message": "GSTK_TRSTYP : Variable nonexistent"
},
What's causing these errors?
This could be due to the custom Import Template not having the "Special template" field "ticked".
Please "tick" the "Special template" field, and re-validate the Template and run the Mutation test again.
If the issue is not resolved, please report this to the relevant Support Team for further investigations.