SAP Knowledge Base Article - Public

2887033 - Unable to Update The Subscription of a Service Agent via OData Console

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

  1. Go to Administrator work center
  2. Click on OData Service Explorer view
  3. Select EmployeeUserSubscriptionAssignmentCollection as Entity Set
  4. Select POST as Method
  5. Select Form
  6. Enter ParentObjectID
  7. Enter UserTypeCode
  8. Ente UserSubscriptionType Code
  9. Click on Execute
  10. Note: The first error occurs.
  11. Click on OK
  12. Click on Execute
  13. 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

  1. Go to Adminsitrator work center
  2. Click on OData Service Explorer view
  3. Select c4codataapi
  4. Select BusinessUserSubscriptionAssignmentCollection as Entity Set
  5. Select POST as Method
  6. Enter a value for ParentObjectID, UserTypeCode, and UserSubscriptionTypeCode
  7. Click on Execute

Keywords

assign subscription, service agent, business user, OData, , KBA , AP-RC-ODF , OData framework (C4C Only) , Problem

Product

SAP Cloud for Customer add-ins all versions