# Troubleshooting

If you encounter any of the following issues or errors, SailPoint recommends that you follow the guidance provided below to resolve the error before contacting SailPoint Support.

For issues or errors that are not addressed in this connector guide, refer to the following resources for troubleshooting information:

- [SailPoint Identity Services Documentation](<https://documentation.sailpoint.com/saas/help/index.html>)
- [SailPoint Support Knowledge Base](<https://support.sailpoint.com/csm?id=kb_view2&amp;kb_id=05ff44289f011200550bf7b6077fcfa3>)
- [SailPoint Developer Community](<https://developer.sailpoint.com/>)

## Provisioning Failed with an Error Message

Provisioning fails with the following error message:

```text
Resource 'User' is malformed - Attribute urn:scim:schemas:core:1.0:alias is not defined for resource User
```

**Resolution**: Add alias attribute in the `skipSchemaAttributes` list, which is not supported by SCIM server.

## Create Account Fails for Salesforce SCIM Server with an Error Message

Create account fails for Salesforce SCIM server with the following error message:

```text
REQUIRED_FIELD_MISSING:user_must_have_one_entitlement_which_must_be_a_profileid;
```

**Resolution**: While performing create any new account with **Manage User Access**, select at least one valid entitlement.

## Create Account Operation Fails While Using Recommended Mappings in the Account Policy

The create account operation fails even though the recommended attribute mappings are used in the Account Policy.

**Resolution**: Ensure that the managed system is enabled to set the account attributes used by the Account Policy, then try the Create account operation again.

## Test Connection Fails for Salesforce SCIM Server with an Error Message

Test Connection fails for Salesforce SCIM server with the following error message:

```text
com.unboundid.scim.sdk.UnauthorizedException: Unauthorized
```

Test Connection fails due to the OAuth 2.0 bearer token generated from other machine.

**Resolution**: For OAuth 2.0 authentication, use the OAuth2 bearer token generated on the machine where IdentityIQ is hosted.

## Aggregation Error

Account and entitlement aggregation failed with following exception:

```text
Exception during aggregation. Reason: javax.ws.rs.ProcessingException: Error closing message content input stream
```

**Resolution**: Add the `connector_enableDefaultConnectorProvider` key in the source XML using APIs.

> [!NOTE]
>
> For more information on SailPoint's REST APIs, refer to [Best Practices: REST API Authentication](<https://developer.sailpoint.com/docs/api/authentication/>) and [REST API - Update Source (Partial)](<https://developer.sailpoint.com/docs/api/update-source-v-1/>) in the SailPoint Developer Community.
