# Unable to Execute UI Path Connector

**URL:** <https://forum.camunda.io/t/unable-to-execute-ui-path-connector/46306>\
**Category:** Discussion & Questions\
**Tags:** connectors, postman-apis\
**Created:** [July 14, 2023, 11:55pm UTC](https://forum.camunda.io/t/unable-to-execute-ui-path-connector/46306 "2023-07-14T23:55:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hari\_kiran](https://forum.camunda.io/user_avatar/forum.camunda.io/hari_kiran/32/23982_2.png) [@hari\_kiran](https://forum.camunda.io/u/hari_kiran)\
**Post date:** [July 14, 2023, 11:55pm UTC](https://forum.camunda.io/t/unable-to-execute-ui-path-connector/46306/1 "2023-07-14T23:55:33Z")

</div>

Hi,

I am currently using SaaS offering of Camunda 8.  
I have a very simple model where I am trying to invoke the job on the UI Path side using the UI Path connector.

Process digram attached (with client id and secret being invalidated with random text.)  
[quick-start-api-orchestration.bpmn](https://forum.camunda.io/uploads/short-url/rBfS7ooUFuQ7czWS2aPMsb5ziuO.bpmn) (7.0 KB)

I see the below response:

```auto
java.lang.RuntimeException: java.lang.RuntimeException: io.camunda.connector.api.error.ConnectorException: 400 Bad Request

POST https://cloud.uipath.com/identity_/connect/token

{"error":"invalid_scope"}

at io.camunda.connector.runtime.outbound.jobhandling.SpringConnectorJobHandler.failJob(SpringConnectorJobHandler.java:80)

at io.camunda.connector.runtime.core.outbound.ConnectorJobHandler.handle(ConnectorJobHandler.java:118)

at io.camunda.connector.runtime.outbound.jobhandling.SpringConnectorJ...

```

Below is what I can see as being sent in the authentication part of the request (invalidated client id and secret for the post here with random text)

`> {"clientId":"ededds6b4a2-2730-4b2b-aecf-27a505758","oauthTokenEndpoint":"https://cloud.uipath.com/identity_/connect/token","scopes":"OR.Queues","clientAuthentication":"basicAuthHeader","clientSecret":"eddFMHPQ4sDHG7q7","type":"oauth-client-credentials-flow"}`

Request Body:

> {“itemData”:{“DeferDate”:null,“SpecificContent”:null,“Name”:“camunda”,“DueDate”:null,“Reference”:null,“Priority”:“High”}}

Headers: (invalidated OrganizationUnitId with random text for the post here)

> {“Content-Type”: “application/json”,“X-UIPATH-OrganizationUnitId”: “4344222”}

Operation Type:

> addQueueItem

Can you pls help me understand why this is failing ?

---

<div class="post-metadata">

**Author:** ![igpetrov](https://forum.camunda.io/letter_avatar_proxy/v4/letter/i/73ab20/32.png) [@igpetrov](https://forum.camunda.io/u/igpetrov)\
**Post date:** [July 24, 2023, 2:55pm UTC](https://forum.camunda.io/t/unable-to-execute-ui-path-connector/46306/2 "2023-07-24T14:55:56Z")

</div>

Hi @hari_kiran

Could you please check whether your UiPath client is authorized to manipulate queues?

You could also check whether request is passing via postman.
