We are using ADSync and see that whenever the Delta Import job runs, it returns Stopped-extension-dll-exception and logs event 6801. All other jobs show as success.
This is not a permission error. Every time I search for this error with event id 6081 it's always about permissions, but we do not see any permissions errors. One of our engineers reset the permissions just in case but it did not fix the problem.
We also get event 6803
Log Name: Application
Source: ADSync
Date: 20/01/2020 7:35:46 a.m.
Event ID: 6803
Task Category: Management Agent Run Profile
Level: Error
Keywords: Classic
User: N/A
Computer: APP5.net.cial.co.nz
Description:
The management agent "CHCInternational.onmicrosoft.com - AAD" failed on run profile "Delta Import" because the server encountered errors.
and event 019
Log Name: Application
Source: Directory Synchronization
Date: 20/01/2020 7:35:46 a.m.
Event ID: 109
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: APP5.net.cial.co.nz
Description:
Failure while importing entries from Windows Azure Active Directory. Exception: System.ArgumentException: Log entry string is too long. A string written to the event log cannot exceed 32766 characters.
The event 6801...
Log Name: Application
Source: ADSync
Date: 20/01/2020 8:05:50 a.m.
Event ID: 6801
Task Category: Server
Level: Error
Keywords: Classic
User: N/A
Computer: APP5.net.cial.co.nz
Description:
The extensible extension returned an unsupported error.
The stack trace is:
"System.ArgumentException: Log entry string is too long. A string written to the event log cannot exceed 32766 characters.
at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName)
at System.Diagnostics.EventLogInternal.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
at Microsoft.Azure.ActiveDirectory.Client.Framework.Tracer.TypeDependencies.EventLogWriteEntry(String eventSource, EventLogEntryType eventLogEntryType, Int32 eventId, String message)
at Microsoft.Azure.ActiveDirectory.Client.Framework.Tracer.TraceToEventLog(EventLogEntryType eventLogEntryType, Int32 eventId, Func`1 traceMessageProvider)
at Microsoft.Azure.ActiveDirectory.Client.Framework.Tracer.TraceInformation(Int32 eventId, String messageFormat, Object[] args)
at Microsoft.Azure.ActiveDirectory.Connector.Connector.GetImportEntriesCore()
at Microsoft.Azure.ActiveDirectory.Connector.Connector.GetImportEntries(GetImportEntriesRunStep getImportEntriesRunStep)
Azure AD Sync 1.1.110.0"
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="ADSync" />
<EventID Qualifiers="49152">6801</EventID>
<Level>2</Level>
<Task>3</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2020-01-19T19:05:50.000000000Z" />
<EventRecordID>5623766</EventRecordID>
<Channel>Application</Channel>
<Computer>APP5.net.cial.co.nz</Computer>
<Security />
</System>
<EventData>
<Data>System.ArgumentException: Log entry string is too long. A string written to the event log cannot exceed 32766 characters.
at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName)
at System.Diagnostics.EventLogInternal.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
at Microsoft.Azure.ActiveDirectory.Client.Framework.Tracer.TypeDependencies.EventLogWriteEntry(String eventSource, EventLogEntryType eventLogEntryType, Int32 eventId, String message)
at Microsoft.Azure.ActiveDirectory.Client.Framework.Tracer.TraceToEventLog(EventLogEntryType eventLogEntryType, Int32 eventId, Func`1 traceMessageProvider)
at Microsoft.Azure.ActiveDirectory.Client.Framework.Tracer.TraceInformation(Int32 eventId, String messageFormat, Object[] args)
at Microsoft.Azure.ActiveDirectory.Connector.Connector.GetImportEntriesCore()
at Microsoft.Azure.ActiveDirectory.Connector.Connector.GetImportEntries(GetImportEntriesRunStep getImportEntriesRunStep)
Azure AD Sync 1.1.110.0</Data>
</EventData>
</Event>