# API /cc/api/source/reset not working as expected

**URL:** <https://developer.sailpoint.com/discuss/t/api-cc-api-source-reset-not-working-as-expected/19283>\
**Category:** SHF Discussion and Questions\
**Tags:** sailpoint-identity-security, apis\
**Created:** [October 18, 2023, 3:57am UTC](https://developer.sailpoint.com/discuss/t/api-cc-api-source-reset-not-working-as-expected/19283 "2023-10-18T03:57:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaileeM](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/shaileem/32/15314_2.png) [@shaileeM](https://developer.sailpoint.com/discuss/u/shaileeM)\
**Post date:** [October 18, 2023, 3:57am UTC](https://developer.sailpoint.com/discuss/t/api-cc-api-source-reset-not-working-as-expected/19283/1 "2023-10-18T03:57:14Z")

</div>

Hi All,

We are facing some errors when using API /cc/api/source/reset/:id

JSON response is as below -

```auto
{
    "msg_template": "Source '<Connector Name>' is currently in use.",
    "slpt_error_code": "SLPT-1209",
    "formatted_msg": "(SLPT-1209) Source '<Connector Name>' is currently in use.",
    "exception_id": "18B40E4E965",
    "error_code": 1209,
    "exception_class": "com.cloudmasons.exceptions.SLPTSourceInUseException",
    "exception_detail": {
        "file": "SourceService.groovy",
        "method": "reset",
        "line_number": 2140,
        "sourcesOwnedByUsersFromThisSource": [
            "IdentityNow Admins",
            "<Source 1>",
            "<Source 2>",
            "<Source 3>",
            "<Source 4>"
        ],
        "class": "com.cloudmasons.SourceService"
    },
    "http_response_code": 400,
    "timestamp": "2023-10-18 03:47:05.701",
    "exception_message": "(SLPT-1209) Source '<Connector Name>' is currently in use."
}

```

We have changed the URL of the connection string in the connector deliberately, as it is one of our use cases that we dont want to impact the target source in any way when we reset the source at IDN.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![sharvari](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@sharvari](https://developer.sailpoint.com/discuss/u/sharvari)\
**Post date:** [October 18, 2023, 4:29am UTC](https://developer.sailpoint.com/discuss/t/api-cc-api-source-reset-not-working-as-expected/19283/2 "2023-10-18T04:29:14Z")

</div>

You are not able to reset this source because the source owner identity on the following sources(highlighted) is part of the source itself that you are trying to reset.

“sourcesOwnedByUsersFromThisSource”: [  
**“IdentityNow Admins”,**  
**“\<Source 1\>”,**  
**“\<Source 2\>”,**  
**“\<Source 3\>”,**  
**“\<Source 4\>”**  
]

Please modify the owner on these sources to some other user not belonging to this source and then try the reset, I am sure it will work

---

<div class="post-metadata">

**Author:** ![shaileeM](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/shaileem/32/15314_2.png) [@shaileeM](https://developer.sailpoint.com/discuss/u/shaileeM)\
**Post date:** [October 18, 2023, 4:52am UTC](https://developer.sailpoint.com/discuss/t/api-cc-api-source-reset-not-working-as-expected/19283/3 "2023-10-18T04:52:42Z")

</div>

Okay, let me try this.

---

<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:** [December 17, 2023, 4:53am UTC](https://developer.sailpoint.com/discuss/t/api-cc-api-source-reset-not-working-as-expected/19283/4 "2023-12-17T04:53:36Z")

</div>

Closed on December 17, 2023, 4:53am UTC

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