cancel
Showing results for 
Search instead for 
Did you mean: 

Extension for SBO's Service Layer's Script Engine gives error 512

former_member547648
Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member547648
Participant
0 Kudos

Now it works without me changing anything.

former_member547648
Participant
0 Kudos

Now it works without me changing anything.