Symptom
You can see following error when trying to run an ODATA created for a Custom Business Object created from SAP Cloud Applications Studio (SDK).
- Not Authorized
- Check Authorization Restriction for the User
Environment
- SAP Cloud for Customer
- SAP Cloud Applications Studio
Reproducing the Issue
- Go to Administration work center.
- Go to OData Service Explorer.
- Select Custom OData Services.
- Click on Test.
- Insert URL.
- Click on Test.
- You can see an error.
Cause
These errors might happen when you have an Original and Patch solution into your system and you have created OData Service by using solution which is not activated (e.g. you have created OData by pointing to work center view of Original solution and then you have enabled Patch solution). Such mismatch cannot be interpreted and the system says user does not have proper assignment.
Resolution
You need to ensure you have selected PDI Work Center of Enabled solution within OData Service Explorer. You may follow these steps:
- Go to Administration work center.
- Go to OData Service Explorer.
- Select Custom OData Services.
- Click to Edit.
- On Work Center View field, please ensure you have selected Work Center View from Enabled Solution.
By ensuring you have selected work center view from solution which is enabled into your tenant, you should not face those issues when running OData.
Keywords
odata, error, PDI, custom business object, service explorer, Not Authorized, Check Authorization Restriction for the User , KBA , LOD-CRM-INT-API , OData API (C4C Only) , AP-RC-BDS-LM , ByDesign Studio Lifecycle Management , AP-RC-BDS-BO , ByDesign Studio BO definition/generation , How To