We have an AfterCreate PowerShell script that creates remote Exchange mailboxes on our IQ servers, triggered after IDN creates an AD account. While it generally works well, we’ve noticed a few random instances where the process fails, and the mailbox creation script isn’t triggered.
Upon reviewing the logs, we encountered the error Error: Item = → Message = A local error has occurred. Out of 150 events, this error occurred only 3 times on this specific IQ server. We checked the IQtrace logs and Windows event logs but couldn’t find any related events.
I would check to see if this is occurring when there are multiple accounts being created simultaneously. Each account that needs to be created by an AfterCreate script will spawn its own instance of PowerShell with heap space for the script, if you have too many spawning at once, you can run out of memory on the server. Then, you could work with your server administrator to increase the allocated memory.
I would make sure that you are at least at the Recommended Hardware Requirement.
Thank you for your response. We meet the recommended hardware requirements, except for RAM, as our IQ servers only have 8 GB.
The number of accounts being created doesn’t seem to be an issue here; recent occurrences involved provisioning only 2 or 3 accounts simultaneously when we encountered the error. Interestingly, there have been instances where 5 accounts were created simultaneously without any errors.
We’ve had similiar issue with the log files getting locked up by parallel processing and the afterRules not getting triggered.
Take a look at the below thread and see if it helps. You may want to try modifying the rule script (the connector rule) with microseconds level logging to see if it helps.