search cancel

Rally: Custom integrations return errors or fail to update work items


Article ID: 199512


Updated On:


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


When integrating with the Rally API, sometimes the integration will throw unexpected errors, or you'll find that an update does not occur even though you received a 200 HTTP response back.
When using Java, for example, a java.lang.NullPointerException is seen and the execution of the application is ended.


This is caused by when the API returns an unexpected condition to the integration.


It is best practice to examine the HTTP response code for non-200 responses and including some logic to deal with that situation.

Additionally it is best practice to examine the Error object of the JSON response even if a 200 HTTP response is received.

A Rally WSAPI JSON response will always include an Error object as highlighted below and if the API encounters a problem with fulfilling the request, it will populate that object with an error

  "_rallyAPIMajor": "2",
  "_rallyAPIMinor": "0",
   "Could not read: Could not read Defect 2037775838845 to update."


Additional Information

Keywords: Agile Central Webservices WS-API WSAPI