Agile Central - HPQC: Connector Error Cannot find object to read

Document ID : KB000106183
Last Modified Date : 19/07/2018
Show Technical Document Details
Issue:
On the HP ALM (Quality Center) Connector for Agile Central, getting the below error:

[2018-07-12 17:25:35 Z] ERROR : RallyEIF::WRK::Connector.rescue in copy_to_other - Rally hierarchicalrequirement ID 236897202532 not copied to ALM (
Error on request - https://rally1.rallydev.com/slm/webservice/v2.0/user/236897211120?workspace=workspace/225193296416 - 
{:errors=>["Cannot find object to read"], :warnings=>[]})
[2018-07-12 17:25:35 Z] ERROR : RallyEIF::WRK::ConnectorRunner.exception - Message 
Error on request - https://rally1.rallydev.com/slm/webservice/v2.0/user/236897211120?workspace=workspace/225193296416 - 
{:errors=>["Cannot find object to read"], :warnings=>[]}
[2018-07-12 17:25:35 Z] ERROR : RallyEIF::WRK::ConnectorRunner.exception - Stack Trace
[2018-07-12 17:25:35 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.rb:335:in `rescue in copy_to_other'
[2018-07-12 17:25:35 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.rb:331:in `copy_to_other'
[2018-07-12 17:25:35 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:470:in `block in process_service_artifacts'
[2018-07-12 17:25:35 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rally_api-1.2.1/lib/rally_api/rally_query_result.rb:22:in `block in each'
[2018-07-12 17:25:35 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rally_api-1.2.1/lib/rally_api/rally_query_result.rb:21:in `each'
[2018-07-12 17:25:35 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rally_api-1.2.1/lib/rally_api/rally_query_result.rb:21:in `each'
[2018-07-12 17:25:35 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:467:in `process_service_artifacts'
[2018-07-12 17:25:35 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:409:in `process_service'
[2018-07-12 17:25:35 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:529:in `block in run_services'
[2018-07-12 17:25:35 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:528:in `each'
[2018-07-12 17:25:35 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:528:in `run_services'
[2018-07-12 17:25:35 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-07-12 17:25:35 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-07-12 17:25:35 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-07-12 17:25:35 Z] ERROR : RallyEIF::WRK::ConnectorRunner.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-07-12 17:25:35 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/bin/ca_agile_central2_hpalm_connector.rb:23:in `load'
[2018-07-12 17:25:35 Z] ERROR : RallyEIF::WRK::ConnectorRunner.block in exception - C:/Ruby22-x64/bin/ca_agile_central2_hpalm_connector.rb:23:in `<main>'
Cause:
This is caused by a work item in Agile Central being assigned to a user that has been deleted.  The reference to the non-existent user account remains in the work item and when the connector follows that reference to locate the user, it is not found.
Resolution:
The workaround for the error is to assign the work item to another user.

As a plan moving forward, prior to deleting the user, their work items should be reassigned to another user.
This can be accomplished using a Work View that is filtered for that User.
Then Bulk Edit can be used to quickly assign the work items to a different user.

This is best practice according to the documentation.
 
Additional Information:
Documentation: Deleting Users