# Error importing identity profile

**URL:** <https://developer.sailpoint.com/discuss/t/error-importing-identity-profile/5220>\
**Category:** SHF Discussion and Questions\
**Created:** [August 2, 2022, 12:42pm UTC](https://developer.sailpoint.com/discuss/t/error-importing-identity-profile/5220 "2022-08-02T12:42:27Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidloone](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/davidloone/32/452_2.png) [@davidloone](https://developer.sailpoint.com/discuss/u/davidloone)\
**Post date:** [August 2, 2022, 12:42pm UTC](https://developer.sailpoint.com/discuss/t/error-importing-identity-profile/5220/1 "2022-08-02T12:42:27Z")

</div>

I’m using SP import/export API. I have the orchestration working, all objects exported. I can import most objects however IDENTITY\_PROFILE objects which returns an error (also having problem with TRIGGER\_SUBSCRIPTION objects, but that looks like a different syndrome).

When I try to import an identity profile on its own (as the only object in the import), I get an error saying it couldn’t resolve the corresponding SOURCE objects. But when I add the corresponding SOURCE object to the import (_ie_ two objects in the import), I get an error like:  
An error occurred while importing Identity Profile with name 'UoN-HR-Source  
That’s all the info I’m getting, so it doesn’t tell me much about what went wrong.

A few things:

- This is only happening for IDENTITY\_PROFILE objects, all the other object types seem to be importing ok, including the corresponding SOURCE object…
- It’s happening identically with all my SOURCE/IDENTITY\_PROFILE pairs.
- If I just import the IDENTITY\_PROFILE, I get an error saying it cannot resolve the SOURCE.
- If I **either** import the corresponding SOURCE in the same import, **or** include a defaultReferences stanza, it **doesn’t** give the unresolved reference error, but **does** give this (rather less helpful) error. That is, both those mechanisms seem to resolve the reference, but still get this error.
- In preview mode, importing just the IDENTITY\_PROFILE gives the unresolved reference error, but when I import the SOURCE as well, it **doesn’t** return any error. That is, preview mode works, but non-preview doesn’t for the same configuration.

The full error response looks like:

```auto
{
  "results": {
    "SOURCE": {
      "infos": [],
      "warnings": [],
      "errors": [],
      "importedObjects": [
        {
          "name": "XXX-HR-Source",
          "id": "2c9180848222e8fc01825d17f9d84bed",
          "type": "SOURCE"
        }
      ]
    },
    "IDENTITY_PROFILE": {
      "infos": [],
      "warnings": [],
      "errors": [
        {
          "key": "IDENTITY_PROFILE_IMPORT_FAILED",
          "text": "An error occurred while importing Identity Profile with name 'XXX-HR-Source'",
          "detail": {
            "exceptionMessage": null
          }
        }
      ],
      "importedObjects": []
    }
  }

```

Is there any way of getting better debugging info? Is there anything different I have to do to import IDENTITY\_PROFILE objects?

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [August 3, 2022, 5:59pm UTC](https://developer.sailpoint.com/discuss/t/error-importing-identity-profile/5220/3 "2022-08-03T17:59:12Z")

</div>

Welcome to the developer community David.

There’s a possible bug at work here, but can you try something first to help narrow down the issue? Try exporting the sources and the identity profiles into separate files. Then, import the sources file first. Once that is complete, then import the identity profile file. See if that produces any errors.

---

<div class="post-metadata">

**Author:** ![davidloone](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/davidloone/32/452_2.png) [@davidloone](https://developer.sailpoint.com/discuss/u/davidloone)\
**Post date:** [August 4, 2022, 12:45am UTC](https://developer.sailpoint.com/discuss/t/error-importing-identity-profile/5220/4 "2022-08-04T00:45:05Z")

</div>

Hi Colin. Thanks for the response.

That’s what has been done already, The SOURCE objects have been imported (not operational, haven’t given them passwords yet). When I import just a single corresponding IDENTITY\_PROFILE object I get the error:

```auto
Unable to resolve reference for object [type: SOURCE, id: XXX, name: UoN-HR-Source [source]]

```

If I either include the source in the import, **or** add the `defaultReferences` stanza then that goes away and I get the error I documented.

The export is from our dev environment into our UAT environment. I have a framework that does a bunch of processing in the middle (environment-specific data, etc), but for testing this issue I’m ensuring that I just export/import essentially the same file (filter the export using the includeTypes then just fix up the tenancy for import).

---

<div class="post-metadata">

**Author:** ![jothinvallathol](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jothinvallathol](https://developer.sailpoint.com/discuss/u/jothinvallathol)\
**Post date:** [August 4, 2022, 12:50am UTC](https://developer.sailpoint.com/discuss/t/error-importing-identity-profile/5220/5 "2022-08-04T00:50:31Z")

</div>

I had the same problem, it turned out that I had an attribute reference from another source which had the old ID in it, I changed that and it processed the import correctly. Maybe resolution errors on attribute sources are not captured correctly.

---

<div class="post-metadata">

**Author:** ![davidloone](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/davidloone/32/452_2.png) [@davidloone](https://developer.sailpoint.com/discuss/u/davidloone)\
**Post date:** [August 4, 2022, 2:48am UTC](https://developer.sailpoint.com/discuss/t/error-importing-identity-profile/5220/6 "2022-08-04T02:48:23Z")

</div>

Thanks Jothin.

Yes, I found that my IDENTITY\_PROFILE has references to two SOURCE objects. So I tried importing that SOURCE object in the same import as well (so my import now contains one IDENTITY\_PROFILE and two SOURCE objects), but same result.

Just to be clear though, the import file contains ids of the **source** system from which it was exported, not the target that I’m importing into. This seems weird to me, and my first inclination was to strip them out (so we’re not saving env specific data in our VCS) but was told to not do so.

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [August 4, 2022, 6:25pm UTC](https://developer.sailpoint.com/discuss/t/error-importing-identity-profile/5220/7 "2022-08-04T18:25:41Z")

</div>

@davidloone I believe this to be a bug. I tried exporting and importing a simple identity profile and also get an error. I’m going to raise this to the engineering team for investigation.

---

<div class="post-metadata">

**Author:** ![davidloone](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/davidloone/32/452_2.png) [@davidloone](https://developer.sailpoint.com/discuss/u/davidloone)\
**Post date:** [August 5, 2022, 5:57am UTC](https://developer.sailpoint.com/discuss/t/error-importing-identity-profile/5220/8 "2022-08-05T05:57:30Z")

</div>

Thanks Colin. We’re eagerly awaiting some news on this as our deadline to get these imported is nigh.

I notice the v3 import and beta individual create of identity profiles are broken as well (v3 import with an error that looks he same, and beta individual create POST with a HTTP 500 error), is that the same root cause?

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [August 5, 2022, 1:05pm UTC](https://developer.sailpoint.com/discuss/t/error-importing-identity-profile/5220/9 "2022-08-05T13:05:37Z")

</div>

This all appears to be related, with the root issue being something with the Identity Profiles API and not the SP-Config API. I have alerted the PM and hope to have a response soon.

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [August 8, 2022, 1:37pm UTC](https://developer.sailpoint.com/discuss/t/error-importing-identity-profile/5220/10 "2022-08-08T13:37:51Z")

</div>

@davidloone This bug is now being tracked by engineering. Work will start later this week.

---

<div class="post-metadata">

**Author:** ![glenwickert](https://avatars.discourse-cdn.com/v4/letter/g/7993a0/32.png) [@glenwickert](https://developer.sailpoint.com/discuss/u/glenwickert)\
**Post date:** [August 8, 2022, 11:25pm UTC](https://developer.sailpoint.com/discuss/t/error-importing-identity-profile/5220/11 "2022-08-08T23:25:57Z")

</div>

Confirming I also have the exact same issue and tried various things (like stripping IDs etc).

Curiously @davidloone you will find that changing the authoritativeSource reference from (for example)

```auto
"authoritativeSource": {
                    "type": "SOURCE",
                    "id": "<id>",
                    "name": "SNOW Role Based Account **[source]**"
                }

```

to

```auto
"authoritativeSource": {
                    "type": "SOURCE",
                    "id": "<id>",
                    "name": "SNOW Role Based Account"
                }

```

Will remove the misleading SOURCE resolution error. Then you’re just left with the unhelpful null error message.

Very keen @colin_mckibben to hear progress on this as we have 7 profiles with a hundred or so attributes (not all used for each profile, but a lot to configure) and a deadline of yesterday to release our config. I’ll need to manually re-create our profiles which is quite error prone.

Glen.

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [September 19, 2022, 1:48pm UTC](https://developer.sailpoint.com/discuss/t/error-importing-identity-profile/5220/12 "2022-09-19T13:48:19Z")

</div>

A post was split to a new topic: [403 Error when Importing Identity Profile](https://developer.sailpoint.com/discuss/t/403-error-when-importing-identity-profile/5849)

---

<div class="post-metadata">

**Author:** ![Beatriz](https://avatars.discourse-cdn.com/v4/letter/b/f9ae1b/32.png) [@Beatriz](https://developer.sailpoint.com/discuss/u/Beatriz)\
**Post date:** [October 18, 2022, 9:52am UTC](https://developer.sailpoint.com/discuss/t/error-importing-identity-profile/5220/13 "2022-10-18T09:52:54Z")

</div>

> [@colin\_mckibben](#):
>
> now being tracked by engineering. Work will start later

Hello Colin,

Im facing the same error when I try to import the Identity Profiles in a new tenant. Is the bug fixed?

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [October 18, 2022, 1:45pm UTC](https://developer.sailpoint.com/discuss/t/error-importing-identity-profile/5220/14 "2022-10-18T13:45:07Z")

</div>

According to the ticket, it should be fixed. If you are still facing issues, please open a support ticket with steps to reproduce the issue.

---

<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:** [July 19, 2023, 2:23pm UTC](https://developer.sailpoint.com/discuss/t/error-importing-identity-profile/5220/15 "2023-07-19T14:23:23Z")

</div>


