Agile Central - Connectors: Log shows Unable to create a corresponding Rally item
search cancel

Agile Central - Connectors: Log shows Unable to create a corresponding Rally item

book

Article ID: 127580

calendar_today

Updated On:

Products

Rally On-Premise Rally SaaS

Issue/Introduction

Configuration mismatches between an external work item system and Agile Central can cause issues with creating work items within Agile Central.  When these mismatches occur, an example log entry is as follows:

[2019-02-20 01:22:56 Z] ERROR : RallyEIF::WRK::RallyConnection.rescue in create_internal - Unable to create a corresponding Rally item, 
Error on request - https://rally1.rallydev.com/slm/webservice/v2.0/defect/create?workspace=workspace/<WORKSPACE_OID> - 
{:errors=>["Validation error: Defect.FixVersion Value [ Option3 ] for field [ FixVersion ] is invalid.  Valid values are: {[Option1, Option2]}"], :warnings=>[]}


This article will point out some of the common occurrences as well as their solutions.

Environment

Jira
HP QC ALM
TFS / VSTS

Resolution

Value [ <value> ] for field [ <field name> ] is invalid



Example:




[2019-02-20 01:22:56 Z] ERROR : RallyEIF::WRK::RallyConnection.rescue in create_internal - Unable to create a corresponding Rally item, Error on request - https://rally1.rallydev.com/slm/webservice/v2.0/defect/create?workspace=workspace/<WORKSPACE_OID> - {:errors=>["Validation error: Defect.FixVersion Value [ Option3 ] for field [ FixVersion ] is invalid. Valid values are: {[Option1, Option2]}"], :warnings=>[]}



Cause:


This error is encountered when a dropdown or multi-select field in Agile Central does not contain the value that is coming from the external system.

Solution:


Add the value to the Agile Central field.
 

<field name> should not be null



Example:




[2019-02-20 01:22:58 Z] ERROR : RallyEIF::WRK::RallyConnection.rescue in create_internal - Unable to create a corresponding Rally item,
Error on request - https://rally1.rallydev.com/slm/webservice/v2.0/defect/create?workspace=workspace/<WORKSPACE_OID> -
{:errors=>["Validation error: Defect.Component should not be null"], :warnings=>[]}



Cause:


This occurs when there is a required field in Rally that is either not populated in the external system or it is not mapped in the XML config file.

Solution:


There are a few options to resolve this one

  1. Reconfigure the field in Rally so it is not required
  2. Ensure the field is populated in the external system
  3. Ensure there is a field mapping in the configuration file.



Object not found for Object ID: null



Example:




[2019-02-20 01:00:34 Z] ERROR : RallyEIF::WRK::RallyConnection.rescue in create_internal - Unable to create a corresponding Rally item,
Error on request - https://rally1.rallydev.com/slm/webservice/v2.0/defect/create?workspace=workspace/<WORKSPACE_OID> -
{:errors=>["Could not read: Object not found for Object ID: null"], :warnings=>[]}



Cause:


To resolve this error, it is necessary to look at the line above the error.  This can be caused by a preceding entry as follows:


[2019-02-20 01:00:34 Z] WARN : RallyEIF::WRK::RallyConnection.project_oid_for_name - project_name |Sample Project| is not unique within the Company Workspace workspace


Because the integration discovered multiple projects with the same name, it errs on the side of caution since it can't be certain which project to create the work item in.

Solution:


The solution is to ensure that there are no duplicate project names in the workspace.  To resolve this, rename one of the projects to a unique name.