# 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/>)

## Role assignment fails with an error message

All the roles assigned to the users are not getting aggregated.

**Resolution**: Ensure that all the roles that need to be managed by the SAP Portal source must have the scope assigned that was created in the Register a Client Application phase. Refer to the [Prerequisites](<https://documentation.sailpoint.com/connectors/sap/portal/va/help/index.html#prerequisites>) section.

## Aggregation Fails with an Error Message

- During aggregation when SAP Portal Server is connected to Active Directory/LDAP Server, the following error message appears:

  ```text
  Reason: java.lang.NullPointerException
  ```

  **Resolution**: Undeploy the existing `sailpoint_ume.sda` file and deploy the new `sailpoint_ume.sda` file. For more information, see [Prerequisites](<https://documentation.sailpoint.com/connectors/sap/portal/va/help/index.html#prerequisites>).
- Aggregation fails with the following error message:

  ```text
  Connector failed, sailpoint.connector.ConnectorException: Error while testing connection. sailpoint.connector.ConnectorException: Invalid request
  ```

  This error message appears due to `.sda` file version mismatch.

  **Resolution**: Ensure that the versions of `.sda` file matches the versions according to IdentityIQ version. For more information, see [Prerequisites](<https://documentation.sailpoint.com/connectors/sap/portal/va/help/index.html#prerequisites>).

## Test Connection Fails with an Error Message

Test Connection fails with the following error message:

```text
Failed to retrieve client for current request
```

**Resolution**: Ensure that the URL configured is in the `http://host:port` format.

## Roles Assigned to Users Are Not Aggregated (OAuth 2.0 Authentication Type Only)

**Resolution**: Ensure that the all the roles that must be managed by SailPoint should have the scope assigned that was created under [Register a Client Application](<https://documentation.sailpoint.com/connectors/sap/portal/va/help/configuring_for_integration.html#register-a-client-application>).
