PARTNERS - Please join us for our upcoming webinar:
Leveraging Intelligent Recommendations for Operational Transformation.
AMS Partners click HERE | EMEA/APJ Partners click HERE

REST provisioning Illegal character error

shivmano
Regular Contributor III
Regular Contributor III

Hi Team - 

I am using the below json to make multiple calls for a RemoveAccessJSON and it seems to be throwing the below error. Please can someone advise. it seems to be throwing error at the start of $ sign for 2nd URL while the first URL seems to be handling $ just fine and returning records.

2024-07-30T14:22:32+05:30-ecm-worker--null-c6vlr--2024-07-30T08:52:32.754270014Z stdout F 2024-07-30 08:52:32,754 [quartzScheduler_Worker-6] DEBUG rest.RestUtilService - Got null response statusCode with erroMsg - [error:Error Illegal character in path at index 29: https://*****/${entitlementValue.entitlement_value}/_apis/userentitlements/${response.OrgNew1.value[0].id}?api-version=7.2-preview.4] 

RemoveAccessJSON:

{
"call": [{
"name": "OrgNew",
"connection": "userAuth",
"url": "https://*******/${entitlementValue.entitlement_value}/_apis/identities?searchFilter=General&filterValue=${account.name}&queryMembership=None&api-version=7.1-preview.1",
"httpMethod": "GET",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json"
},
{
"name": "OrgNew",
"connection": "userAuth",
"url": "https://******/${entitlementValue.entitlement_value}/_apis/userentitlements/${response.OrgNew1.value[0].id}?api-version=7.2-preview.4",
"httpMethod": "DELETE",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json"
}
]
}

 

[This message has been edited by moderator to disable URL hyperlink]

3 REPLIES 3

rushikeshvartak
All-Star
All-Star

Could you kindly provide a detailed snapshot of the information extracted from the logs, encompassing errors and other pertinent functionality details encountered during the execution of this process? Your assistance in furnishing this information would greatly aid in the analysis and resolution of any issues .



‼️‼️⚠️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.⚠️‼️‼️


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

shivmano
Regular Contributor III
Regular Contributor III

@rushikeshvartak , I have attached the error message as seen in logs already. Also, I have redacted the client URL and dont think there is any sensitive info attached 

Also, adding to this the value that is being sent for ${entitlementValue.entitlement_value} and ${response.OrgNew1.value[0].id} does not have any space or special characters 

I am looking for more logs in text file


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.