Agile Central - HPQC: HP ALM Connector Error undefined method `elements'

Document ID : KB000113537
Last Modified Date : 11/09/2018
Show Technical Document Details
Issue:
Importing a configuration file from an old version of the connector into a new version causes an undefined method `elements' error in the log file as follows:
[2018-09-04 18:46:14 Z] ERROR : RallyEIF::WRK::ConnectorRunner.initialize - undefined method `elements' for #<Hash:0x00000003db7948>
[2018-09-04 18:46:14 Z] ERROR : Object.exception - Message undefined method `elements' for #<Hash:0x00000003db7948>
[2018-09-04 18:46:14 Z] ERROR : Object.exception - Stack Trace
[2018-09-04 18:46:14 Z] ERROR : Object.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rallyeif-wrk-1.3.0/lib/rallyeif/wrk/connection.rb:371:in `assemble_filters'
[2018-09-04 18:46:14 Z] ERROR : Object.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rallyeif-wrk-1.3.0/lib/rallyeif/wrk/connection.rb:342:in `read_config'
[2018-09-04 18:46:14 Z] ERROR : Object.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rallyeif-wrk-1.3.0/lib/rallyeif/wrk/rally_connection/rally_connection.rb:92:in `read_config'
[2018-09-04 18:46:14 Z] ERROR : Object.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rallyeif-wrk-1.3.0/lib/rallyeif/wrk/rally_connection/rally_connection.rb:56:in `initialize'
[2018-09-04 18:46:14 Z] ERROR : Object.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rallyeif-wrk-1.3.0/lib/rallyeif/wrk/connector_runner.rb:342:in `new'
[2018-09-04 18:46:14 Z] ERROR : Object.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rallyeif-wrk-1.3.0/lib/rallyeif/wrk/connector_runner.rb:342:in `block in run'
[2018-09-04 18:46:14 Z] ERROR : Object.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-09-04 18:46:14 Z] ERROR : Object.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-09-04 18:46:14 Z] ERROR : Object.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rallyeif-qc-4.8.2/bin/ca_agile_central2_hpalm_connector.rb:12:in `<top (required)>'
[2018-09-04 18:46:14 Z] ERROR : Object.block in exception - C:/Ruby22-x64/bin/ca_agile_central2_hpalm_connector.rb:23:in `load'
[2018-09-04 18:46:14 Z] ERROR : Object.block in exception - C:/Ruby22-x64/bin/ca_agile_central2_hpalm_connector.rb:23:in `<main>'
Cause:
This is caused by a <PreCopyFilters> entry in the configuration.  This tag has been deprecated and should no longer be used.
Resolution:
The solution is to convert the <PreCopyFilter> tags to <CopySelector> tags of equivalent capability.

For example, if you had the following <PreCopyFilter>
<PreCopyFilters>
    <linked_object_field_check>
        <LinkField>WorkProduct.ScheduleState</LinkField>
        <Value>Accepted</Value>
    </linked_object_field_check>
</PreCopyFilters>

An equivalent <CopySelector> might appear as follows:
<CopySelectors>
    <CopySelector>
        WorkProduct.ScheduleState = Accepted
    </CopySelector>
</CopySelectors>
Additional Information:
keywords: rally, agile central, HPQC, hp alm, quality center,