<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
Error Registering AD Agent: "Unexpected status code 500 InternalServerError"
Okta Classic Engine
Directories
Okta Identity Engine
Overview

The following error shows up when registering the Okta AD agent: 

 

Unexpected status code 500 InternalServerError for URL https://<subdomain>.okta.com/api/1/internal/app/activedirectory/

 

Okta AD agent error message

Applies To
  • Directories
  • AD Agent
  • LDAP Agent
Cause

 Agent registration is blocked when there are duplicate AD / LDAP app instances.

Solution

The duplicate inactive AD instance must be removed. 

  1. On the Directory Integrations page, select the directory in the Inactive list.
    Directory integrations 

AD

  1. Select the dropdown next to Inactive at the top of the window and click Delete.


To verify the AD instance via the API:

GET /api/v1/apps/<duplicate AD instance Id>


To remove the duplicate AD instance ID via the API: 

DELETE /api/v1/apps/<duplicate AD instance Id>
Loading
Error Registering AD Agent: "Unexpected status code 500 InternalServerError"