cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Not applicable

Workflow failed at 'Assign Flexi task' action

We are using "Nintex Workflow 2013 (3.1.5.0) - English" in our project server environment. One of our state machine workflow is failing intermittently at some state and particularly at "Assign Flexi Task" action .

We have investigated the logs and could find the below exceptions.

  • Nintex.Workflow.NWException: Could not get DirectorySearcher from SharePoint. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Specified value is not supported for the domainName parameter. at Microsoft.SharePoint.Utilities.SPUserUtility.GetDomainControllerToSearch(SPWebApplication webApp, String domainName) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Nintex.Workflow.Ldap.GetDirectorySearcher(SPWebApplication webapp, String domain) at Nintex.Workflow.Ldap.GetManager(SPWebApplication webApp, SPUser u, String& displayName, String& username) --- End of inner exception stack trace --- (Build:3150)

  • Unable to get domain DNS or forest DNS for domain SHAREPOINT. ErrorCode=1355
  • SPAce PrincipalName found  account renamed to NULL SID. Using new name.
  • Error establishing database connection.: System.Threading.ThreadAbortException: Thread was being aborted.     at SNIReadSyncOverAsync(SNI_ConnWrapper* , SNI_Packet** , Int32 )     at SNINativeMethodWrapper.SNIReadSyncOverAsync(SafeHandle pConn, IntPtr& packet, Int32 timeout)     at System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()     at System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()     at System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()     at System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value)     at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)     at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)     at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)     at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)     at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)     at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()     at Nintex.Workflow.Administration.Database.ExecuteNonQuery(SqlCommand command, Boolean useTransaction) (Build:3150)
  • System.Threading.ThreadAbortException: Thread was being aborted.     at SNIReadSyncOverAsync(SNI_ConnWrapper* , SNI_Packet** , Int32 )     at SNINativeMethodWrapper.SNIReadSyncOverAsync(SafeHandle pConn, IntPtr& packet, Int32 timeout)     at System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()     at System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()     at System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()     at System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value)     at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)     at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)     at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)     at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)     at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)     at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()     at Nintex.Workflow.Administration.Database.ExecuteNonQuery(SqlCommand command, Boolean useTransaction)     at Nintex.Workflow.HumanApproval.MultiOutcomeTask.Save()     at Nintex.Workflow.Activities.ApprovalHeaderActivity.codeActivity1_ExecuteCode(Object sender, EventArgs e)     at System.Workflow.ComponentModel.Activity.RaiseEvent(DependencyProperty dependencyEvent, Object sender, EventArgs e)     at System.Workflow.Activities.CodeActivity.Execute(ActivityExecutionContext executionContext)     at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)     at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)     at System.Workflow.Runtime.Scheduler.Run()     at System.Workflow.Runtime.WorkflowExecutor.RunScheduler()     at System.Workflow.Runtime.WorkflowExecutor.RunSome(Object ignored)     at System.Workflow.Runtime.Hosting.DefaultWorkflowSchedulerService.WorkItem.Invoke(WorkflowSchedulerService service)     at System.Workflow.Runtime.Hosting.ManualWorkflowSchedulerService.RunOne(Guid workflowInstanceId)

Any help on this issue is highly appreciated.

Thanks in advance.

Jagadish

Labels: (1)
0 Kudos
Reply
7 Replies
fhunth
Nintex Newbie

Re: Workflow failed at 'Assign Flexi task' action

Is your production server balanced?

Reply
Not applicable

Re: Workflow failed at 'Assign Flexi task' action

Hi Fernando, Thanks for your reply..This is development server which is balanced.

Reply
dinos
Nintex Newbie

Re: Workflow failed at 'Assign Flexi task' action

Hi Jagadish,

I am facing exactly the same issue:

: Nintex.Workflow.NWException: Could not get DirectorySearcher from SharePoint. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Η καθορισμένη τιμή δεν υποστηρίζεται για την παράμετρο domainName.   

at Microsoft.SharePoint.Utilities.SPUserUtility.GetDomainControllerToSearch(SPWebApplication webApp, String domainName)   

- -- End of inner exception stack trace ---   

at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)   

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)   

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)   

at Nintex.Workflow.Ldap.GetDirectorySearcher(SPWebApplication webapp, String domain)   

at Nintex.Workflow.Ldap.GetManager(SPWebApplication webApp, SPUser u, String& displayName, String& username)   

- -- End of inner exception stack trace --- (Build:3160)

Did you  manage to find a solution?

Thanks,

Dinos.

Reply
Not applicable

Re: Workflow failed at 'Assign Flexi task' action

Hi all,

I'm using SP2013 with Nintex Workflow 3.1.7

I'm getting this error as well:

: Nintex.Workflow.NWException: Could not get DirectorySearcher from SharePoint. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Specified value is not supported for the domainName parameter.   

at Microsoft.SharePoint.Utilities.SPUserUtility.GetDomainControllerToSearch(SPWebApplication webApp, String domainName)    -

-- End of inner exception stack trace ---   

at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)   

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)   

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)   

at Nintex.Workflow.Ldap.GetDirectorySearcher(SPWebApplication webapp, String domain)   

at Nintex.Workflow.Ldap.GetManager(SPWebApplication webApp, SPUser u, String& displayName, String& username)    -

-- End of inner exception stack trace --- (Build:3170)

And this one:

Unable to get domain DNS or forest DNS for domain SHAREPOINT. ErrorCode=1355

Whay does it say domain SHAREPOINT? My domain is not called sharepoint, so where does this come from?

Many thanks in advance for any help you can provide.

Regards,

Wouter

Reply
dinos
Nintex Newbie

Re: Workflow failed at 'Assign Flexi task' action

Jagadish R,

I spotted "Nintex.Workflow.Ldap.GetManager()" in the stack trace.

Our AD does not have the "Manager" property populated. So I guess this error comes from that.

Do you use this property?

Dinos.

Reply
Not applicable

Re: Workflow failed at 'Assign Flexi task' action

Hi,

In our AD we do have the Manager property filled. In SharePoint, I filter the PeoplePicker list to show only people who have a manager.

That is all I do with the manager property.

In my workflow I do nothing with this property.

In addition, I tried to use .Net Reflector to debug through the Nintex code, but unfortunately, the Nintex dll cannot be decompiled by .net reflector. It seems to be obfuscated (it has an assembly attribute [assembly: ObfuscatedByAgileDotNet]).

Is there any chance I could get an unobfuscated version of Nintex.Workflow.dll?

I'm stuck here, and my logs are filling up with these messages. Im getting about 400 of these log entries just starting up my workflow until a task is created and an email is sent.

Any help would be greatly appreciated!

kind regards,

Wouter

0 Kudos
Reply
dinos
Nintex Newbie

Re: Workflow failed at 'Assign Flexi task' action

Apparently, I found a pretty credible explanation here --> 

Unable to get domain DNS or forest DNS for domain SHAREPOINT. ErrorCode=1355 – atsomepoint108 

As such, some of your workflows would also be run as the SharePoint\System account and when the workflow attempts to query a property of the account e.g manager name, it attempts to query the domain Sharepoint, which fails.

0 Kudos
Reply