# Coupa Connector Provisioning Issue

**URL:** <https://developer.sailpoint.com/discuss/t/coupa-connector-provisioning-issue/63271>\
**Category:** IIQ Discussion and Questions\
**Tags:** identityiq\
**Created:** [June 6, 2024, 5:31am UTC](https://developer.sailpoint.com/discuss/t/coupa-connector-provisioning-issue/63271 "2024-06-06T05:31:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![saloniGupta](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@saloniGupta](https://developer.sailpoint.com/discuss/u/saloniGupta)\
**Post date:** [June 6, 2024, 5:31am UTC](https://developer.sailpoint.com/discuss/t/coupa-connector-provisioning-issue/63271/1 "2024-06-06T05:31:56Z")

</div>

### Which IIQ version are you inquiring about?

Version 8.3

### Share all details related to your problem, including any error messages you may have received.

Hi Everyone,  
I am leveraging coupa connector ( Identity IQ 8.3P3 ) for provisiong , deprovisiong, account aggregation and group aggregation etc. While provisiioning the account my app team has requirement to pass “default-account-type” attribute as well.  
I am able to aggregate `default-account-type` in account aggregation an data is coming in `{id=2, name=PLL}` format.

While provisioning if I am passing `default-account-type` I am getting 400 error. Without `default-account-type` provisioning is working fine account is getting created.

```auto
TE_USER:: HTTP Failure status code :: 400 :: HTTP failure message :: {"errors":{"user":["An unexpected error occured while creating/updating this record: NoMethodError -- undefined method `only' for \"29\":String\n\n find_by_attributes = assoc_attributes.only(*unique_keys)\n ^^^^^"],"warnings":null}}
2024-04-30T14:41:46,737 ERROR https-jsse-nio-8443-exec-6 connector.coupa.service.CoupaService:94 - Create operation failed with exception : Failed to process the request for operation :: CREATE_USER :: Aggregated Errors after total retries of :: 1 Current attempt to execute request failed for operation :CREATE_USER:: HTTP Failure status code :: 400 :: HTTP failure message :: {"errors":{"user":["An unexpected error occured while creating/updating this record: NoMethodError -- undefined method `only' for \"29\":String\n\n find_by_attributes = assoc_attributes.only(*unique_keys)\n ^^^^^"],"warnings":null}}
java.lang.Exception: Failed to process the request for operation :: CREATE_USER :: Aggregated Errors after total retries of :: 1 Current attempt to execute request failed for operation :CREATE_USER:: HTTP Failure status code :: 400 :: HTTP failure message :: {"errors":{"user":["An unexpected error occured while creating/updating this record: NoMethodError -- undefined method `only' for \"29\":String\n\n find_by_attributes = assoc_attributes.only(*unique_keys)\n

```

I have tried lots of combination, by just passing id ( as integer), name ( as STring) and below options as well in the string format. But nothing is helping:

```auto
&lt;id type="integer"&gt;7&lt;/id&gt;
&lt;id type="integer"&gt;7&lt;/id&gt;
{id=2, name=PHL}
{"id":"2", "name":"PHL"}
{"id":2}
{"id":2, "name":"PHL"}
{\n \"id\": 2\n }

```

Please help to assist on the issue.

---

<div class="post-metadata">

**Author:** ![703hardik](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/703hardik/32/6937_2.png) [@703hardik](https://developer.sailpoint.com/discuss/u/703hardik)\
**Post date:** [June 6, 2024, 4:18pm UTC](https://developer.sailpoint.com/discuss/t/coupa-connector-provisioning-issue/63271/2 "2024-06-06T16:18:38Z")

</div>

Hi @saloniGupta ,

I researched about your issue its related to the “only” method as the assoc\_attributes expects an array or hash not a string or integer.

maybe try with:

```auto
{"id":["2"], "name":["PHL"]}

```

or similar combinations

---

<div class="post-metadata">

**Author:** ![saloniGupta](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@saloniGupta](https://developer.sailpoint.com/discuss/u/saloniGupta)\
**Post date:** [June 7, 2024, 3:39am UTC](https://developer.sailpoint.com/discuss/t/coupa-connector-provisioning-issue/63271/3 "2024-06-07T03:39:12Z")

</div>

Thanks for your response, while here the issue is sailpoint is passing the value as string. It doesnt matter what do we put as value.

While the expectation from the API is to pass it as json. But here there no option to pass the value as json.

Please suggest further if you have anything in mind.

---

<div class="post-metadata">

**Author:** ![703hardik](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/703hardik/32/6937_2.png) [@703hardik](https://developer.sailpoint.com/discuss/u/703hardik)\
**Post date:** [June 7, 2024, 5:23am UTC](https://developer.sailpoint.com/discuss/t/coupa-connector-provisioning-issue/63271/4 "2024-06-07T05:23:29Z")

</div>

@saloniGupta ,

It would help if I could take a look at the Create account provisioning policy you are using (also the provisioning rule if any)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [August 6, 2024, 5:24am UTC](https://developer.sailpoint.com/discuss/t/coupa-connector-provisioning-issue/63271/5 "2024-08-06T05:24:28Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
