SAP Knowledge Base Article - Public

3634732 - Unable to update description field based on the note ID created - SAP Sales and Service Cloud Version 2

Symptom

  • Creating notes via /note-service/notes works as expected.
  • Creating a case with an associated note successfully reflects the note content.
  • However, performing a PATCH update on the case to modify the description content does not update the corresponding note.
  • Attempting to PATCH the case using a new noteId fails with the following error:
    • Validation failed: INVALID_ARGUMENT: Note type cannot be created S001. Maximum allowed notes exceeded.

Environment

  • SAP Service Cloud Version 2 1.0
  • SAP Sales Cloud Version 2 1.0 

Reproducing the Issue

  1. Create a new note using the Hyper Notes API (/note-service/notes).
  2. Attach the new noteId when creating the case using a POST method.
  3. The case is created successfully, and the description field is updated as expected.
  4. Attempt to update the description field using a PATCH call:
    1. Modify the description content.
    2. Include the same noteId in the PATCH request body.
  5. The PATCH call executes successfully, but the description content is not updated.
  6. Trying to use a new noteId for the update results in the error:
    "error": {
      "code": "case.20003",
      "message": "Validation failed: INVALID_ARGUMENT: Note type cannot be created S001. Maximum allowed notes exceeded."
    }

Cause

  • The Case API does not support direct updates to existing note content or description fields via PATCH when using noteId.
  • The error occurs due to system limitations on the number of notes of a specific type (e.g., S001), and attempting to create a new note of that type exceeds the limit.

Resolution

  • To update the description or note content for a case, use the Notes API directly.
  • Pass the existing noteId and the updated content in the request body to modify the note.
  • Refer to KBA 3521580 - How to Use the Sales and Service Cloud V2 - Case API on SAP API Business Hub 

See Also

Keywords

note creation, case creation, PATCH update, validation error, INVALID_ARGUMENT, note type S001, allowed notes exceeded, SAP Sales Cloud Version 2, description field update, API hub case service , KBA , CEC-CRM-CAS , Case Management for SAP Sales/Service Cloud , Problem

Product

SAP Service Cloud Version 2 all versions