It's all about the answers!

Ask a question

RQMCopyUtility 702 General REST Exception: RestException executing: PUT, RC: 400 ERROR


Mohanraj Ragupathi (54418) | asked Nov 15 '21, 2:12 a.m.

 We are using RQM 702 in server and RQMCopyUtility 702 version is being used to copy the artifacts (around 20k+) from IBM cloud environment to our ELM environment. In both places the template, version and everything set in sync.


Then  the the following command was executed.

java -Dcom.ibm.team.repository.transport.client.protocol="TLSv1.2" -jar RQMCopyUtility.jar -s=https://my-cloud-host:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/ProjectA -us=ADMIN -pws=ADMIN -d=https://my-local-elm-host2:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/ProjectB -ud=ELM-ADMIN -pwd=ELM-ADMIN -f -l=log.txt

It ran for 5-6  days and copied 80% of the artifacts. In the logs we have seen the below log before termination on 7th day.

The first ERROR mentioned below is getting repeated through out the copy. BUT it didn't break the execution. It is saying 
RestException executing: PUT, RC: 400  ---  Approval descriptor already has an approval with the same approver
The Last ERROR before the script got terminated has the following.
General REST Exception: RestException executing: PUT, RC: 400,  --- 
Error

How to resolve the first issue? what is the rootcause? And how to solve the second issue and complete the entire migration.


13 Nov 2021 08:38:44,645+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Starting: objective urn:com.ibm.rqm:objective:com.ibm.rqm.planning.objectives._158153929169962126
13 Nov 2021 08:38:44,645+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Already Added: objective urn:com.ibm.rqm:objective:com.ibm.rqm.planning.objectives._158153929169962126
13 Nov 2021 08:38:44,645+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Finishing: objective urn:com.ibm.rqm:objective:com.ibm.rqm.planning.objectives._158153929169962126
13 Nov 2021 08:38:46,223+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Error received: 400, retry #: 0
13 Nov 2021 08:38:50,083+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Error received: 400, retry #: 1
13 Nov 2021 08:38:53,083+0530 [main] ERROR com.ibm.rqm.ct.CopyUtil: RestException executing: PUT, RC: 400, message: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><ns2:Error xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns1="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns4="http://purl.org/dc/elements/1.1/" xmlns:ns3="http://schema.ibm.com/vega/2008/" xmlns:ns6="http://jazz.net/xmlns/alm/v0.1/" xmlns:ns20="http://jazz.net/xmlns/alm/qm/styleinfo/v0.1/" xmlns:ns5="http://jazz.net/xmlns/prod/jazz/process/0.6/" xmlns:ns8="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" xmlns:ns7="http://purl.org/dc/terms/" xmlns:ns13="http://www.w3.org/2002/07/owl#" xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/v0.1" xmlns:ns12="http://jazz.net/xmlns/prod/jazz/rqm/process/1.0/" xmlns:ns11="http://open-services.net/ns/qm#" xmlns:ns10="http://open-services.net/ns/core#" xmlns:ns21="http://www.w3.org/1999/XSL/Transform" xmlns:ns17="http://jazz.net/xmlns/alm/qm/v0.1/catalog/v0.1" xmlns:ns16="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1" xmlns:ns15="http://jazz.net/xmlns/alm/qm/qmadapter/task/v0.1" xmlns:ns14="http://jazz.net/xmlns/alm/qm/qmadapter/v0.1" xmlns:ns18="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/"><ns2:statusCode>400</ns2:statusCode><ns2:message>Approval descriptor already has an approval with the same approver</ns2:message></ns2:Error>
13 Nov 2021 08:38:53,083+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Finishing: testplan urn:com.ibm.rqm:testplan:60
13 Nov 2021 08:38:54,036+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Starting: copyTestPhases for testplan urn:com.ibm.rqm:testplan:60
13 Nov 2021 08:38:54,036+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Reading feed for artifact type: testphase
13 Nov 2021 08:38:57,098+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Done reading feed for artifact type: testphase
13 Nov 2021 08:38:57,801+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Error received: 400, retry #: 0
13 Nov 2021 08:39:01,286+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Error received: 400, retry #: 1
13 Nov 2021 08:39:04,286+0530 [main] ERROR com.ibm.rqm.ct.CopyUtil: General REST Exception: RestException executing: PUT, RC: 400, message: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><ns2:Error xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns1="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns4="http://purl.org/dc/elements/1.1/" xmlns:ns3="http://schema.ibm.com/vega/2008/" xmlns:ns6="http://jazz.net/xmlns/alm/v0.1/" xmlns:ns20="http://jazz.net/xmlns/alm/qm/styleinfo/v0.1/" xmlns:ns5="http://jazz.net/xmlns/prod/jazz/process/0.6/" xmlns:ns8="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" xmlns:ns7="http://purl.org/dc/terms/" xmlns:ns13="http://www.w3.org/2002/07/owl#" xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/v0.1" xmlns:ns12="http://jazz.net/xmlns/prod/jazz/rqm/process/1.0/" xmlns:ns11="http://open-services.net/ns/qm#" xmlns:ns10="http://open-services.net/ns/core#" xmlns:ns21="http://www.w3.org/1999/XSL/Transform" xmlns:ns17="http://jazz.net/xmlns/alm/qm/v0.1/catalog/v0.1" xmlns:ns16="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1" xmlns:ns15="http://jazz.net/xmlns/alm/qm/qmadapter/task/v0.1" xmlns:ns14="http://jazz.net/xmlns/alm/qm/qmadapter/v0.1" xmlns:ns18="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/"><ns2:statusCode>400</ns2:statusCode></ns2:Error>
13 Nov 2021 08:39:04,286+0530 [main] ERROR com.ibm.rqm.ct.CopyUtil: FAILURE!
13 Nov 2021 08:39:04,286+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Disconnecting from the source IBM Engineering Test Management server.
13 Nov 2021 08:39:05,114+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Disconnecting from the destination IBM Engineering Test Management server.



 


Comments
Ralph Schoon commented Nov 15 '21, 3:11 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

There is no question in the question.  


David Honey commented Nov 15 '21, 4:15 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I see:
How to resolve the first issue? what is the rootcause? And how to solve the second issue and complete the entire migration.


Mohanraj Ragupathi commented Nov 18 '21, 2:33 a.m.

Any Clue on this? 


Ralph Schoon commented Nov 18 '21, 6:18 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I can read the error message and it complains about approvals, so I would check if there are target items that have the same approval already. I have no experience with the tool. You can also open a case with support. 

One answer



permanent link
Don Yang (7.5k2195130) | answered Nov 21 '21, 5:08 p.m.
For the first error "Approval descriptor already has an approval with the same approver", this is caused when an approval contains two (or more) of the same approvers. Please check if the affected artifacts have this duplicated approvers in formal review section's approval. If not, you may remove the source artifact's approval altogether and see if that helps in copying the artifacts.

For the 2nd error, it seems to be related to test plan 60 > test phase "
13 Nov 2021 08:38:53,083+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Finishing: testplan urn:com.ibm.rqm:testplan:60
13 Nov 2021 08:38:54,036+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Starting: copyTestPhases for testplan urn:com.ibm.rqm:testplan:60
13 Nov 2021 08:38:54,036+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Reading feed for artifact type: testphase
13 Nov 2021 08:38:57,098+0530 [main]  INFO com.ibm.rqm.ct.CopyUtil: Done reading feed for artifact type: testphase"
It is likely that you have timeline in test schedule of test plan 60 and those timeline is not defined in the target project area or the timeline/team area is not enabled on the target project area at all.

I hope these help to move on.

Regards
Don

Your answer


Register or to post your answer.