Agile Central - HPQC: Connector Error undefined method gsub for nil:NilClass

book

Article ID: 103483

calendar_today

Updated On:

Products

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

Issue/Introduction

Requirements do not sync, however other work items have no problems.

The following error is seen in the logs:

[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.rescue in run_services - Unexpected exception occurred
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.exception - Message undefined method `gsub' for nil:NilClass
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.exception - Stack Trace
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rally_hp_alm_api-1.0.3/lib/rally_hp_alm_api/fields/hp_fields_collection.rb:28:in `block in find_by'
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rally_hp_alm_api-1.0.3/lib/rally_hp_alm_api/fields/hp_fields_collection.rb:28:in `each'
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rally_hp_alm_api-1.0.3/lib/rally_hp_alm_api/fields/hp_fields_collection.rb:28:in `find'
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rally_hp_alm_api-1.0.3/lib/rally_hp_alm_api/fields/hp_fields_collection.rb:28:in `find_by'
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rally_hp_alm_api-1.0.3/lib/rally_hp_alm_api/fields/hp_fields_collection.rb:52:in `translate_field_identifier'
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rally_hp_alm_api-1.0.3/lib/rally_hp_alm_api/fields/hp_fields_collection.rb:57:in `get_name_for_field_identifier'
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rally_hp_alm_api-1.0.3/lib/rally_hp_alm_api/query/hp_query-conditions.rb:40:in `transform_condition'
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rally_hp_alm_api-1.0.3/lib/rally_hp_alm_api/query/hp_query-conditions.rb:22:in `block in build_query_conditions'
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rally_hp_alm_api-1.0.3/lib/rally_hp_alm_api/query/hp_query-conditions.rb:21:in `map'
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rally_hp_alm_api-1.0.3/lib/rally_hp_alm_api/query/hp_query-conditions.rb:21:in `build_query_conditions'
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rally_hp_alm_api-1.0.3/lib/rally_hp_alm_api/query/hp_query-conditions.rb:14:in `construct_query_statement'
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rally_hp_alm_api-1.0.3/lib/rally_hp_alm_api/query/hp_query.rb:47:in `query_statement'
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rally_hp_alm_api-1.0.3/lib/rally_hp_alm_api/query/hp_query.rb:23:in `construct_query_url'
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rally_hp_alm_api-1.0.3/lib/rally_hp_alm_api/client/hp_client.rb:187:in `find'
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rally_hp_alm_api-1.0.3/lib/rally_hp_alm_api/client/hp_client-requirements_folders.rb:9:in `find_root_requirements_folder'
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rallyeif-qc-4.8.0/lib/rallyeif/qc/qc_connection/qc_connection.rb:147:in `setup_requirements_info'
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rallyeif-qc-4.8.0/lib/rallyeif/qc/qc_connection/qc_connection.rb:131:in `connect'
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rallyeif-wrk-1.3.0/lib/rallyeif/wrk/connector_runner.rb:513:in `run_services'
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rallyeif-wrk-1.3.0/lib/rallyeif/wrk/connector_runner.rb:347:in `block in run'
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rallyeif-wrk-1.3.0/lib/rallyeif/wrk/connector_runner.rb:286:in `each'
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rallyeif-wrk-1.3.0/lib/rallyeif/wrk/connector_runner.rb:286:in `run'
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rallyeif-qc-4.8.0/bin/ca_agile_central2_hpalm_connector.rb:12:in `<top (required)>'
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/bin/ca_agile_central2_hpalm_connector.rb:23:in `load'
[2018-06-26 21:46:48 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/bin/ca_agile_central2_hpalm_connector.rb:23:in `<main>'

Cause

It is believed that this issue is a result of having, at some time, had version control enabled on a project in the ALM system.

Once version control has been enabled, it appears that a field in an ALM requirement is sent without a field name, thus resulting in an unexpected condition in the connector.

Environment

HP ALM Connector v4.8.0

Resolution

This has been resolved in the 4.8.2 and higher builds of the connector.

Please contact support for a copy of the connector.