Synchronize Mapped Information job fails with Illegal character error
search cancel

Synchronize Mapped Information job fails with Illegal character error

book

Article ID: 267562

calendar_today

Updated On:

Products

Clarity PPM SaaS Clarity PPM On Premise

Issue/Introduction

The Clarity Rally OOTB job Synchronize Mapped Information fails with illegal character error message when there is a space in the name of the portfolio Item
 
STEPS TO REPRODUCE
 
  1. Login to a 16.1.1 Clarity machine and navigate to MUX
  2. Classic UX - Administration - Integration
  3. Create a Rally - Clarity Integration 
  4. Navigate to Rally Instance and create a Portfolio Item with the below name in such a way that there is a space between the name
  5. Name: Business Outcome
  6. Create an Integration Mapping in Clarity MUX using the Integration created in Step 3.  
  7. Run the job Import Integration Mappings
  8. Create the Object Mapping in the Clarity MUX under Step 5
  9. Ex: Clarity Business Outcome to Rally Business Outcome
  10. Create the field mappings for the Object Mapping from Step 7
  11. Create a few instances of Business Outcomes in Clarity MUX and select the Integration Mapping(Step 5) for the instances 
  12. Run the Synchronize Mapped Information job by passing the parameter created in step 5
  13. Portfolio Item is successfully created in Rally and Rally Object is populated in Clarity Business Outcome instances.
  14. Update a Clarity field which is used for mapping such that, the Rally should be updated after running the job.
  15. Run the Synchronize Mapped Information job again
 
Expected Results: The job completes successfully and Rally gets updated with the information in Clarity for the mapped fields.
 
Actual Results: The job fails with the below error message
 
ERROR 2023-06-06 21:23:06,640 [pool-4690-thread-1] systems.ExternalSystem (clarity:useremail:29401797__07D295F1-63F5-4DD0-B8D3-7D0CB97A0B8C:none) Exception while updating a ExternalObject:675375585531, for the internal object:5538795
java.lang.IllegalArgumentException: Illegal character in path at index 70: https://rallyurl/slm/webservice/v2.0/portfolioitem/business outcome/675375585531?fetch=ObjectUUID,ObjectID,Name&workspace=%2Fworkspace%2Fa46ba696-ca6c-4702-87df-65f38bbee490
 at java.base/java.net.URI.create(URI.java:883)
 at org.apache.http.client.methods.HttpPost.<init>(HttpPost.java:73)
 at com.ca.ppm.integrations.http.client.ExternalSystemHttpClient.processPOST(ExternalSystemHttpClient.java:123)
 at com.ca.ppm.integrations.systems.ExternalSystem.updateExternalObjectInstance(ExternalSystem.java:3955)
 at com.ca.ppm.integrations.systems.ExternalSystem.processUpdateExternalObjectFlow(ExternalSystem.java:3000)
 at com.ca.ppm.integrations.systems.ExternalSystem.processExternalInstances(ExternalSystem.java:4684)
 at com.ca.ppm.integrations.services.ExternalSystemManager$1.run(ExternalSystemManager.java:3127)
 at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736)
 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
 at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.net.URISyntaxException: Illegal character in path at index 70: https://rallyurl/slm/webservice/v2.0/portfolioitem/business outcome/675375585531?fetch=ObjectUUID,ObjectID,Name&workspace=%2Fworkspace%2Fa46ba696-ca6c-4702-87df-65f38bbee490
 at java.base/java.net.URI$Parser.fail(URI.java:2913)
 at java.base/java.net.URI$Parser.checkChars(URI.java:3084)
 at java.base/java.net.URI$Parser.parseHierarchical(URI.java:3166)
 at java.base/java.net.URI$Parser.parse(URI.java:3114)
 at java.base/java.net.URI.<init>(URI.java:600)
 at java.base/java.net.URI.create(URI.java:881)
 
 

Environment

Release : 16.1.1, 16.1.2 

Cause

DE70278 

Resolution

DE70278 fixed in 16.1.3 as well as backported to 16.1.2 patch 1 

Additional Information

The job fails because of a space in the portfolio Item in Rally. In this case Business Outcome.