RQM Copy Utility: fails with errorCode 400
RQM Copy utility fails with the following error...
I used the following command, and the user has all the rights. Can anyone please suggest what I can do?
java -jar RQMCopyUtility.jar -s="https://clm.jkebanking.net:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE Banking (Quality Management)" -us=clmadmin -pws=clmadmin -ud=clmadmin -pwd=clmadmin -d=https://clm.jkebanking.net:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TEST -l=importlog.txt
12 6 2018 17:18:49,570+0900 [main] INFO com.ibm.rqm.ct.CopyUtil: Attempting to create SSL_TLS context
12 6 2018 17:18:50,148+0900 [main] ERROR com.ibm.rqm.ct.CopyUtil: SSL_TLS SSLContext not available
12 6 2018 17:18:50,148+0900 [main] INFO com.ibm.rqm.ct.CopyUtil: Unable to create SSL_TLS context, trying SSLv3
12 6 2018 17:19:38,945+0900 [main] INFO com.ibm.rqm.ct.CopyUtil: Starting processing of artifact type: builddefinition
12 6 2018 17:19:39,007+0900 [main] INFO com.ibm.rqm.ct.CopyUtil: Reading feed for artifact type: builddefinition
12 6 2018 17:19:42,570+0900 [main] INFO com.ibm.rqm.ct.CopyUtil: Done reading feed for artifact type: builddefinition
12 6 2018 17:19:42,570+0900 [main] INFO com.ibm.rqm.ct.CopyUtil: Ending processing of artifact type: builddefinition
12 6 2018 17:19:42,570+0900 [main] INFO com.ibm.rqm.ct.CopyUtil: Starting processing of artifact type: buildrecord
12 6 2018 17:19:42,570+0900 [main] INFO com.ibm.rqm.ct.CopyUtil: Reading feed for artifact type: buildrecord
12 6 2018 17:19:42,757+0900 [main] INFO com.ibm.rqm.ct.CopyUtil: Done reading feed for artifact type: buildrecord
12 6 2018 17:19:42,757+0900 [main] INFO com.ibm.rqm.ct.CopyUtil: Ending processing of artifact type: buildrecord
12 6 2018 17:19:42,757+0900 [main] INFO com.ibm.rqm.ct.CopyUtil: Starting processing of artifact type: configuration
12 6 2018 17:19:42,757+0900 [main] INFO com.ibm.rqm.ct.CopyUtil: Reading feed for artifact type: configuration
12 6 2018 17:20:05,492+0900 [main] INFO com.ibm.rqm.ct.CopyUtil: Done reading feed for artifact type: configuration
12 6 2018 17:20:05,507+0900 [main] INFO com.ibm.rqm.ct.CopyUtil: Starting: configuration TE1
12 6 2018 17:21:15,617+0900 [main] INFO com.ibm.rqm.ct.CopyUtil: Error received: 400, retry #: 0
12 6 2018 17:21:18,789+0900 [main] INFO com.ibm.rqm.ct.CopyUtil: Error received: 400, retry #: 1
12 6 2018 17:21:21,789+0900 [main] ERROR com.ibm.rqm.ct.CopyUtil: RestException executing: PUT, RC: 400, message: {"errorMessage":"Unknown catalog type with externalId: null","errorClass":"java.lang.IllegalArgumentException","errorCode":400}
12 6 2018 17:21:21,789+0900 [main] ERROR com.ibm.rqm.ct.CopyUtil: General REST Exception: RestException executing: PUT, RC: 400, message: {"errorMessage":"Unknown catalog type with externalId: null","errorClass":"java.lang.IllegalArgumentException","errorCode":400}
12 6 2018 17:21:21,789+0900 [main] ERROR com.ibm.rqm.ct.CopyUtil: FAILURE!
12 6 2018 17:21:21,789+0900 [main] INFO com.ibm.rqm.ct.CopyUtil: Disconnecting from the source IBM Rational Quality Manager server.
12 6 2018 17:21:21,836+0900 [main] INFO com.ibm.rqm.ct.CopyUtil: Disconnecting from the destination IBM Rational Quality Manager server.
2 answers
You might be stumbling over http://www-01.ibm.com/support/docview.wss?uid=swg1PI12526
It seems to me the error is caused by project area alias is not used which is required by copy utility.
you may try to run
https://clm.jkebanking.net:9443qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/projects
to see the project area alias for your source and target projects and use them in the command and see what happens.