ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Field not updated in Rally API even though an object is shown in the response body

book

Article ID: 239696

calendar_today

Updated On:

Products

CA Agile Central SaaS (Rally) Rally Perpetual Hosted CA Agile Central On Premise (Rally)

Issue/Introduction

When using the Rally web services API (WSAPI) to update an object, the payload contains the updated value, however, there is an object in the response body that does not show the field being updated.

Cause

This can be caused when there is an error reported by the API.  All API transactions are treated as atomic transactions and if there is a validation error, then the entire transaction is aborted and an error reported.

The response body will differ depending on whether the validation is failing on an internal field versus a custom field.  A custom field may show a response body of the target object and this should not be taken as an indication of update success.

Resolution

Resolve the offending validation error reported in the error object in the JSON response and retry the request.