SAP B1 Service Layer - Internal Error (-5002) When Using PATCH Request with Super User"

1 month ago 10

Hello SAP Community,

@ANKIT_CHAUHAN 

I americium presently moving with the SAP Business One mentation for SAP Hana 10.0 FP2108 Service Layer and encountering an contented portion making PATCH requests. Here is the scenario:

  1. I americium utilizing Postman to interact with the SAP B1 Service Layer.
  2. When I log successful with the archetypal superuser (SuperUser1), I americium capable to marque a PATCH petition to update Users sanction successfully.
  3. However, erstwhile I log successful with a 2nd superuser (SuperUser2) and effort PATCH petition to update Users name, I person the pursuing mistake response: 
{ "error": { "code": -5002, "message": { "lang": "en-us", "value": "Internal mistake (-5002) occurred" } } } ​
  • Payload Example:

    Here is the JSON payload I americium utilizing :

    staseeb_0-1735124585079.png
  • Troubleshooting Steps I Have Tried:

    • Confirmed some users person identical superuser privileges successful SAP B1.
    • Verified that the league is progressive and decently authenticated for some users.
    • Re-checked the payload for the PATCH request; it is identical successful some cases.
    • Restarted the Service Layer but the contented persists.
    Please enactment that the contented is coming connected aged users who were their astatine the clip of migration from 9.3 to 10.0 4 years backmost , for recently created users Patch petition works arsenic expected
Read Entire Article