Symptom
You try to update the subscription of a service agent in a POST Call for the EmployeeUserSubscriptionAssignmentCollection via C4C OData Console.
After entering ParentObjectID, UserTypeCode and UserSubscriptionTypeCode and executing it, the first error occurs.
First error: The server has not found any resource matching the Data Services Request URI.
When executing it again, the second error occurs.
Second error: Combination of User Type XXX and Subscription Type YYY already exists (where XXX is the UserType and YYY is the SubscriptionType).
Environment
SAP Cloud for Customer
Reproducing the Issue
- Go to Administrator work center
- Click on OData Service Explorer view
- Select EmployeeUserSubscriptionAssignmentCollection as Entity Set
- Select POST as Method
- Select Form
- Enter ParentObjectID
- Enter UserTypeCode
- Ente UserSubscriptionType Code
- Click on Execute
- Note: The first error occurs.
- Click on OK
- Click on Execute
- Note: The second error occurs.
Cause
Since it is a service agent, the collection EmployeeUserSubscriptionAssignmentCollection is not the correct entity set to use for this scenario. It is required to use BusinessUserSubscriptionAssignmentCollection.
Resolution
- Go to Adminsitrator work center
- Click on OData Service Explorer view
- Select c4codataapi
- Select BusinessUserSubscriptionAssignmentCollection as Entity Set
- Select POST as Method
- Enter a value for ParentObjectID, UserTypeCode, and UserSubscriptionTypeCode
- Click on Execute
Keywords
assign subscription, service agent, business user, OData, , KBA , AP-RC-ODF , OData framework (C4C Only) , Problem