AnsweredAssumed Answered

Error Nintex Exchange Connector - Multible Error

Question asked by walk on Mar 5, 2015
Latest reply on May 15, 2016 by andrew.beals@nintex.com

I have multible troubles with Nintex Exchange connector on SharePoint 2010 / Nintex Workflow 2010 / Exchange 2010

 

First there is a bug in the EmailProvisioning.asmx file for Exchange 2007/2010.

There is a quote missing in the installed file at the end of the second line:

<%@ WebService Language="C#" CodeBehind="EmailProvisioning.asmx.cs" class="Nintex.Workflow.ExchangeConnectorService2007.EmailProvisioning" %>

<%@ Assembly Name="Nintex.Workflow.ExchangeConnectorService2007" %>

I fixed this, maybe it should also be fixed in the product...

 

Second the configuration of the database does not work in a Exchange 2010 enviroment, because the database is not stored in ad any more.

I just wrote the database name in the field without any ldap path, for example "DB01"

 

Third i get an error on executing the command, here ist the Exchange log:

 

ERROR1

Log Name:      Application
Source:        Nintex Workflow Exchange Connector
Date:          05.03.2015 11:10:04
Event ID:      0
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:     XXX.XXX.COM
Description:

An error occurred in the Nintex Workflow Exchange Connector Service
mailboxPath: DB
user: XXX\User
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Nintex Workflow Exchange Connector" />
    <EventID Qualifiers="0">0</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2015-03-05T10:10:04.000000000Z" />
    <EventRecordID>3679102</EventRecordID>
    <Channel>Application</Channel>
    <Computer>XXX.XXX.COM</Computer>
    <Security />
  </System>
  <EventData>
    <Data>
An error occurred in the Nintex Workflow Exchange Connector Service
mailboxPath: DB
user: XXX\USER</Data>
  </EventData>
</Event>

 

ERROR2

Log Name:      Application
Source:        Nintex Workflow Exchange Connector
Date:          05.03.2015 11:10:04
Event ID:      0
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      XXX.XXX.COM
Description:

System.Management.Automation.Runspaces.PSSnapInException: Cannot load Windows PowerShell snap-in Microsoft.Exchange.Management.PowerShell.E2010 because of the following error: The type initializer for 'Microsoft.Exchange.Data.Directory.Globals' threw an exception.
   at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.LoadCustomPSSnapIn(PSSnapInInfo mshsnapinInfo)
   at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.LoadPSSnapIn(PSSnapInInfo mshsnapinInfo)
   at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.LoadPSSnapIn(PSSnapInInfo mshsnapinInfo, PSSnapInException& warning)
   at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.DoAddPSSnapIn(String name, PSSnapInException& warning)
   at Nintex.Workflow.ExchangeConnectorService2007.EMS.MailboxEnableWithPowerShell(String theDatabase, String theIdentity, String emailAlias, String powerShellSnapin)
mailboxPath: DB
user: XXX\User
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Nintex Workflow Exchange Connector" />
    <EventID Qualifiers="0">0</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2015-03-05T10:10:04.000000000Z" />
    <EventRecordID>3679103</EventRecordID>
    <Channel>Application</Channel>
    <Computer>XXX.XXX.COM</Computer>
    <Security />
  </System>
  <EventData>
    <Data>
System.Management.Automation.Runspaces.PSSnapInException: Cannot load Windows PowerShell snap-in Microsoft.Exchange.Management.PowerShell.E2010 because of the following error: The type initializer for 'Microsoft.Exchange.Data.Directory.Globals' threw an exception.
   at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.LoadCustomPSSnapIn(PSSnapInInfo mshsnapinInfo)
   at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.LoadPSSnapIn(PSSnapInInfo mshsnapinInfo)
   at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.LoadPSSnapIn(PSSnapInInfo mshsnapinInfo, PSSnapInException&amp; warning)
   at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.DoAddPSSnapIn(String name, PSSnapInException&amp; warning)
   at Nintex.Workflow.ExchangeConnectorService2007.EMS.MailboxEnableWithPowerShell(String theDatabase, String theIdentity, String emailAlias, String powerShellSnapin)
mailboxPath: DB
user: XXX\User</Data>
  </EventData>
</Event>

 

ERROR3

Log Name:      Application
Source:        ASP.NET 4.0.30319.0
Date:          05.03.2015 11:10:04
Event ID:      1325
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      XXX.XXX.COM
Description:
An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/1/ROOT/Nintex.Workflow.ECSInstaller2007

Process ID: 5700

Exception: System.TypeInitializationException

Message: The type initializer for 'Microsoft.Exchange.Diagnostics.DiagnosticTraceLogging' threw an exception.

StackTrace:    at Microsoft.Exchange.Diagnostics.SystemTraceControl.Update(Dictionary`2 componentDictionary, BitArray enabledTypes, Boolean anyExchangeTracingProvidersEnabled)
   at Microsoft.Exchange.Diagnostics.ExTraceConfiguration.UpdateTrace(ConfigurationDocument traceConfigDoc)
   at Microsoft.Exchange.Diagnostics.ExTraceConfiguration.TraceConfigFileChangeHandler()
   at Microsoft.Exchange.Diagnostics.FileHandler.FileChangeHandler()
   at Microsoft.Exchange.Diagnostics.FileSystemWatcherTimer.Callback(Object arg)
   at System.Threading.TimerCallback.Invoke(Object state)
   at Microsoft.Exchange.Diagnostics.SharedTimer.InternalCallback(Object arg)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.TimerQueueTimer.CallCallback()
   at System.Threading.TimerQueueTimer.Fire()
   at System.Threading.TimerQueue.FireNextTimers()

InnerException: System.NullReferenceException

Message: Object reference not set to an instance of an object.

StackTrace:    at Microsoft.Exchange.Diagnostics.ExTraceInternal.Trace[T0](Int32 lid, TraceType traceType, Guid componentGuid, Int32 traceTag, Int64 id, String format, T0 argument0)
   at Microsoft.Exchange.Diagnostics.DiagnosticTraceLogging.ReportFailure(String failure)
   at Microsoft.Exchange.Diagnostics.DiagnosticTraceLogging.Initialize(Assembly assembly)
   at Microsoft.Exchange.Diagnostics.SystemTrace.SafeInitialize(Assembly assembly)
   at Microsoft.Exchange.Diagnostics.DiagnosticTraceLogging..cctor()
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="ASP.NET 4.0.30319.0" />
    <EventID Qualifiers="49152">1325</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2015-03-05T10:10:04.000000000Z" />
    <EventRecordID>3679104</EventRecordID>
    <Channel>Application</Channel>
    <Computer>XXX.XXX.COM</Computer>
    <Security />
  </System>
  <EventData>
    <Data>An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/1/ROOT/Nintex.Workflow.ECSInstaller2007

Process ID: 5700

Exception: System.TypeInitializationException

Message: The type initializer for 'Microsoft.Exchange.Diagnostics.DiagnosticTraceLogging' threw an exception.

StackTrace:    at Microsoft.Exchange.Diagnostics.SystemTraceControl.Update(Dictionary`2 componentDictionary, BitArray enabledTypes, Boolean anyExchangeTracingProvidersEnabled)
   at Microsoft.Exchange.Diagnostics.ExTraceConfiguration.UpdateTrace(ConfigurationDocument traceConfigDoc)
   at Microsoft.Exchange.Diagnostics.ExTraceConfiguration.TraceConfigFileChangeHandler()
   at Microsoft.Exchange.Diagnostics.FileHandler.FileChangeHandler()
   at Microsoft.Exchange.Diagnostics.FileSystemWatcherTimer.Callback(Object arg)
   at System.Threading.TimerCallback.Invoke(Object state)
   at Microsoft.Exchange.Diagnostics.SharedTimer.InternalCallback(Object arg)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.TimerQueueTimer.CallCallback()
   at System.Threading.TimerQueueTimer.Fire()
   at System.Threading.TimerQueue.FireNextTimers()

InnerException: System.NullReferenceException

Message: Object reference not set to an instance of an object.

StackTrace:    at Microsoft.Exchange.Diagnostics.ExTraceInternal.Trace[T0](Int32 lid, TraceType traceType, Guid componentGuid, Int32 traceTag, Int64 id, String format, T0 argument0)
   at Microsoft.Exchange.Diagnostics.DiagnosticTraceLogging.ReportFailure(String failure)
   at Microsoft.Exchange.Diagnostics.DiagnosticTraceLogging.Initialize(Assembly assembly)
   at Microsoft.Exchange.Diagnostics.SystemTrace.SafeInitialize(Assembly assembly)
   at Microsoft.Exchange.Diagnostics.DiagnosticTraceLogging..cctor()</Data>
  </EventData>
</Event>

 

ERROR4

 

Log Name:      Application
Source:        .NET Runtime
Date:          05.03.2015 11:10:04
Event ID:      1026
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      XXX.XXX.COM
Description:
Application: w3wp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.TypeInitializationException
Stack:
   at Microsoft.Exchange.Diagnostics.SystemTraceControl.Update(System.Collections.Generic.Dictionary`2<System.Guid,System.Collections.BitArray>, System.Collections.BitArray, Boolean)
   at Microsoft.Exchange.Diagnostics.ExTraceConfiguration.UpdateTrace(Microsoft.Exchange.Diagnostics.ConfigurationDocument)
   at Microsoft.Exchange.Diagnostics.ExTraceConfiguration.TraceConfigFileChangeHandler()
   at Microsoft.Exchange.Diagnostics.FileHandler.FileChangeHandler()
   at Microsoft.Exchange.Diagnostics.FileSystemWatcherTimer.Callback(System.Object)
   at System.Threading.TimerCallback.Invoke(System.Object)
   at Microsoft.Exchange.Diagnostics.SharedTimer.InternalCallback(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.TimerQueueTimer.CallCallback()
   at System.Threading.TimerQueueTimer.Fire()
   at System.Threading.TimerQueue.FireNextTimers()

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name=".NET Runtime" />
    <EventID Qualifiers="0">1026</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2015-03-05T10:10:04.000000000Z" />
    <EventRecordID>3679105</EventRecordID>
    <Channel>Application</Channel>
    <Computer>XXX.XXX.COM</Computer>
    <Security />
  </System>
  <EventData>
    <Data>Application: w3wp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.TypeInitializationException
Stack:
   at Microsoft.Exchange.Diagnostics.SystemTraceControl.Update(System.Collections.Generic.Dictionary`2&lt;System.Guid,System.Collections.BitArray&gt;, System.Collections.BitArray, Boolean)
   at Microsoft.Exchange.Diagnostics.ExTraceConfiguration.UpdateTrace(Microsoft.Exchange.Diagnostics.ConfigurationDocument)
   at Microsoft.Exchange.Diagnostics.ExTraceConfiguration.TraceConfigFileChangeHandler()
   at Microsoft.Exchange.Diagnostics.FileHandler.FileChangeHandler()
   at Microsoft.Exchange.Diagnostics.FileSystemWatcherTimer.Callback(System.Object)
   at System.Threading.TimerCallback.Invoke(System.Object)
   at Microsoft.Exchange.Diagnostics.SharedTimer.InternalCallback(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.TimerQueueTimer.CallCallback()
   at System.Threading.TimerQueueTimer.Fire()
   at System.Threading.TimerQueue.FireNextTimers()
</Data>
  </EventData>
</Event>

 

ERROR 5

 

Log Name:      Application

Source:        Application Error

Date:          05.03.2015 11:10:05

Event ID:      1000

Task Category: (100)

Level:         Error

Keywords:      Classic

User:          N/A

Computer:      XXX.XXX.COM

Description:

Faulting application name: w3wp.exe, version: 7.5.7601.17514, time stamp: 0x4ce7afa2

Faulting module name: KERNELBASE.dll, version: 6.1.7601.18409, time stamp: 0x5315a05a

Exception code: 0xe0434352

Fault offset: 0x000000000000940d

Faulting process id: 0x1644

Faulting application start time: 0x01d0572c8bd200d7

Faulting application path: c:\windows\system32\inetsrv\w3wp.exe

Faulting module path: C:\Windows\system32\KERNELBASE.dll

Report Id: cafb5e48-c31f-11e4-b0c1-001b214b2ec1

Event Xml:

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">

  <System>

    <Provider Name="Application Error" />

    <EventID Qualifiers="0">1000</EventID>

    <Level>2</Level>

    <Task>100</Task>

    <Keywords>0x80000000000000</Keywords>

    <TimeCreated SystemTime="2015-03-05T10:10:05.000000000Z" />

    <EventRecordID>3679106</EventRecordID>

    <Channel>Application</Channel>

    <Computer>XXX.XXX.COM</Computer>

    <Security />

  </System>

  <EventData>

    <Data>w3wp.exe</Data>

    <Data>7.5.7601.17514</Data>

    <Data>4ce7afa2</Data>

    <Data>KERNELBASE.dll</Data>

    <Data>6.1.7601.18409</Data>

    <Data>5315a05a</Data>

    <Data>e0434352</Data>

    <Data>000000000000940d</Data>

    <Data>1644</Data>

    <Data>01d0572c8bd200d7</Data>

    <Data>c:\windows\system32\inetsrv\w3wp.exe</Data>

    <Data>C:\Windows\system32\KERNELBASE.dll</Data>

    <Data>cafb5e48-c31f-11e4-b0c1-001b214b2ec1</Data>

  </EventData>

</Event>

 

Any suggestion to resolve the problem?

 

Last an other question: How do i use this action in an Exchange 2013 enviroment? There is nothing written in the documentation.

Outcomes