<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
Microsoft Office 365 Import displays error "Incorrect result size: expected 1, actual 2"
Okta Integration Network
Okta Classic Engine
Okta Identity Engine
Overview

When running an import from the Microsoft Office 365 integration in Okta, the following error is received:

An error occurred during import 
Incorrect result size: expected 1, actual 2

O365

 

 

 

Applies To
  • Microsoft Office 365 (M365)
  • Okta Integration Network (OIN)
  • Imports
Cause

This is typically caused by a custom object or a license being imported twice from the Application side. 

Solution

To resolve the error, please re-authenticate the API credentials for the affected integration to generate a data refresh from the Application side into Okta. 

  1. Navigate to the affected integration in the Okta Admin Dashboard by going to Applications > Applications > Microsoft Office 365.
  2. Click on the Provisioning tab > Integration > Edit Re-authenticate with Microsoft Office 365 Save.
  3. After the re-authentication is completed, run a new Import from Microsoft Office 365

 

Another method to perform a refresh of the Custom Objects is to Refresh the Application Data

The Refresh Application Data feature in Okta serves a crucial purpose in ensuring that the latest roles, profiles, and group data from app integrations are retrieved and used by the system. By doing so, Okta can accurately create new users in those app integrations, streamlining the user provisioning process. Moreover, this function can also update various product licenses, attributes, roles, and groups from downstream applications, providing a comprehensive and up-to-date view of the user’s access rights and privileges.

Steps to perform Refresh Application Data: 

  1. Navigate to the Okta Admin Dashboard.
  2. Click on Applications > Applications.
  3. Click on the dropdown arrow More.
  4. Hit the Refresh Application Data option.

    Apps  

After any of the above steps are completed, try running another import from Microsoft Office 365. 

If the issue persists, please contact Okta Support

Loading
Microsoft Office 365 Import displays error "Incorrect result size: expected 1, actual 2"