The following error occurs if an OU path in AD is longer than 255 characters: Failed to generate import data. Insufficient memory to continue the execution of the program.

book

Article ID: 170475

calendar_today

Updated On:

Products

Management Platform (Formerly known as Notification Server)

Issue/Introduction

If the name of an Organizational Unit (or multiple names together) in AD are longer than 255 characters, the  following error occurs during the AD import:
"Failed to generate import data. Insufficient memory to continue the execution of the program. [System.OutOfMemoryException @ mscorlib]""

Steps to repro:
1. Create an OU in ad or multiple that together are longer than 255 characters
2. Create at least one computer in the OU
3. Create an import rule or modify an existing one to import the newly created OU and Computer
4. wait for the error

Failed to generate import data. Insufficient memory to continue the execution of the program.[System.OutOfMemoryException @ mscorlib]

Cause

The fault was in resource key parsing for long paths, which leads to endless XML writing.

Environment

ITMS 8.0
ITMS 8.1

Resolution

This issue has been addressed with ITMS 8.1 RU4 release.