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.
[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 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.
Add the value to the Agile Central field.
[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=>[]}
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.
There are a few options to resolve this one
[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=>[]}
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.
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.