Generic API-1004 Error When Running JSON In Process Gel Script
search cancel

Generic API-1004 Error When Running JSON In Process Gel Script

book

Article ID: 392371

calendar_today

Updated On:

Products

Clarity PPM SaaS Clarity PPM On Premise

Issue/Introduction

When running a JSON update in a process gel script, there is a consistent error API-1004  Invalid resource identifier XXXXXX

Details of the process message error shows: HTTP 404

The APP error is:

ERROR 2025-03-27 07:23:14,877 [https-jsse-nio2-8043-exec-150] ppm.rest (clarity:user:session:PPM_REST_API) (6acceefb-acb0-4ba5-a1a5-8b19260ded6b) 
com.ca.ppm.rest.exception.NotFoundException: API-1004 : Invalid resource identifier 5309342


Retrying with a patch call works.

 

Resolution

Use a PUT call instead of a PATCH call as the PUT request is intended to replace the entire target resource with the data provided in the request body.
All required attributes must be sent for the resource, even if changing only one as it is an overwrite.

Change the gel script to use HttpPut instead of HttpPatch