CSV Directory incremental import fails with the following error visible in the Okta dashboard:
Error while downloading all users: The Provisioning Agent call to downloadUsersPartial failed with an agent timeout. Please check and ensure Provisioning Agent is running.
- CSV Directory
- Import
- Incremental
- Error
The CSV agent logs show the following:
[ 2023-02-28 09:32:32.228 ] [ Thread-2 ] [RestClient] [ ] [INFO] - Waiting 5000ms before retrying [ 2023-02-28 09:32:37.408 ] [ Thread-2 ] [RestClient] [ ] [ERROR] - Error while making request: Cannot construct instance of `com.okta.agent.api.http.OktaErrorResponse` (although at least one Creator exists): no int/Int-argument constructor/factory method to deserialize from Number value (401)_ at [Source: (byte[])"401 UNAUTHORIZED "Unauthorized""; line: 1, column: 1] com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `com.okta.agent.api.http.OktaErrorResponse` (although at least one Creator exists): no int/Int-argument constructor/factory method to deserialize from Number value (401) at [Source: (byte[])"401 UNAUTHORIZED "Unauthorized""; line: 1, column: 1] at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:63) at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1455) at com.fasterxml.jackson.databind.DeserializationContext.handleMissingInstantiator(DeserializationContext.java:1081) at com.fasterxml.jackson.databind.deser.ValueInstantiator.createFromInt(ValueInstantiator.java:262) at com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.createFromInt(StdValueInstantiator.java:356) at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromNumber(BeanDeserializerBase.java:1359) at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:178) at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:166)at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4524)at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3527)at com.okta.agent.api.http.RestClient.makeRequestWithBackoff(RestClient.java:537)at com.okta.agent.api.http.RestClient.getNextAction(RestClient.java:204)at com.okta.agent.OktaAgent.fetchAction(OktaAgent.java:138)at com.okta.agent.OktaAgent.access$100(OktaAgent.java:34)at com.okta.agent.OktaAgent$1.run(OktaAgent.java:96)at java.lang.Thread.run(Thread.java:748)
- Uninstall the previous Okta Provisioning Agent.
- To reuse the existing configuration, choose not to delete the OPP Configuration/API Token. Choosing to delete will remove the agent configuration data and the API Token from the hard drive. The API token for the server is still valid in Okta.
- Install the Okta Provisioning Agent again by following the Install the Okta Provisioning Agent documentation.
- In the Admin Console, go to Dashboard > Agents. Confirm that the reinstalled Okta Provisioning Agent appears in the list.
- Click the Activate drop-down menu of the old provisioning agent and then select Deactivate. The status changes to Inactive.
NOTE: There might also be the need to select the agents for the CSV Directory again by following these steps:
- On the left-side menu, select Directory > Directory Integrations.
- Select CSV Directory.
- Go to the Provisioning tab.
- On the Provisioning menu, select Integration.
- On the Integration tab, click the Edit button.
- Select the Agents that should be connected to the Imports.
- Click Save at the bottom of the page.
