Hi All,
Assume we have a REST API which gives a response. In the documentation for Response Samples - Error 500, there is an array for details.
Why does it show as an array?
Normally , it is a single record for a database triggered error.

Hi All,
Assume we have a REST API which gives a response. In the documentation for Response Samples - Error 500, there is an array for details.
Why does it show as an array?
Normally , it is a single record for a database triggered error.
Best answer by Trewon
Hi,
In IFS context, when you raise an error (Error_SYS.Record_General) you can only return a single error detail record. However it’s returned as an array through the rest endpoint in order to adhere to OData guidelines . Even though one detail is returned, it should be wrapped in an array to adhere to the OData protocol.
Thanks,
Trewon Weerasooriya
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.