I have created an Extension for the SAP Service Layer Script Engine. The javascript itself runs without issues on my server when put in /usr/sap/SAPBusinessOne/ServiceLayer/scripts/test
Now I want to upload it using the Extension Manager which seems to work fine, but when I try to call from Postman it gives and an 512.
{
"error": {
"code": 512,
"message": {
"lang": "en-us",
"value": "Script error: runtime error [ReferenceError: UsersByUserCode is not defined]."
}
}
}
To verify I uploaded it to a test server using Extension Manager. On the test server I can run it without any problems using the <server>/b1s/v1/<partner>/<scriptname> path.
The machine where the error occurs had recently had problem where the server ran out of disk space, I am not sure whether there is some connection here.
It would cool to this running without de- and reinstalling service layer.
Both servers I tried run with SAP Business One 9.2 pl8.