Home > Forum > Plugins > Docusign SDK - checking envelopes not working ?

Docusign SDK - checking envelopes not working ?
0

Hi there
I implemented the docusign sdk and transferring docs to sign works like a breeze.
BUT: checking if sent enevlopes are signed and then sending the workflow along the specified path is simply not working.
I followed the docs according to this:
https://community.webcon.com/posts/post/docusign-digital-signatures-in-webcon-bps/36

I do get the following error(s):


WebCon.WorkFlow.Model.Common.WorkFlowException: Plugin 13 load error.: Object reference not set to an instance of an object., at WebCon.WorkFlow.BusinessLogic.DataHelpers.SDK.SDKPluginsActivator.CreatePluginInstance[T](Int32 pluginID), at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at WebCon.WorkFlow.BusinessLogic.DataHelpers.SDK.SDKPluginsActivator.CreatePluginInstance[T](Int32 pluginID)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.Evaluators.ActionEvaluator.GetPluginExecutionType(IWFAction wfAction, IWorkFlowObject wfObject, IAuthenticationProvider authenticationProvider)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.Evaluators.ActionEvaluator.GetActionExecutionType()
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.Evaluators.ActionEvaluator.<EvaluateAsync>d__23.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.Evaluators.ActionEvaluator.EvaluateAsync()
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.Evaluators.ActionEvaluator.<ExecuteEvaluationAsync>d__21.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.Evaluators.ActionEvaluator.ExecuteEvaluationAsync()
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.AutomationEngine.<RunAutomationOperationsAsync>d__27.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.AutomationEngine.RunAutomationOperationsAsync(List`1 operations, AutomationEvaluationParameters evaluationParameters, IAutomationWithParameters automationWithParameters)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.AutomationEngine.<RunAutomationWithoutResultCleanAsync>d__24.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.AutomationEngine.RunAutomationWithoutResultCleanAsync(IAutomationWithExecutionContext automation, AutomationEvaluationParameters parameters)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.Evaluators.AutomationEvaluator.<EvaluateAsync>d__6.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.Evaluators.AutomationEvaluator.EvaluateAsync()
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.Interfaces.AutomationEvaluatorAbstract.<ExecuteEvaluationAsync>d__8.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.Interfaces.AutomationEvaluatorAbstract.ExecuteEvaluationAsync()
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.AutomationEngine.<RunAutomationOperationsAsync>d__27.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.AutomationEngine.RunAutomationOperationsAsync(List`1 operations, AutomationEvaluationParameters evaluationParameters, IAutomationWithParameters automationWithParameters)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.AutomationEngine.<RunAutomationWithoutResultCleanAsync>d__24.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.AutomationEngine.RunAutomationWithoutResultCleanAsync(IAutomationWithExecutionContext automation, AutomationEvaluationParameters parameters)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.AutomationEngine.<RunAutomationAsync>d__30.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.AutomationEngine.RunAutomationAsync(IAutomationWithExecutionContext automation, AutomationEvaluationParameters parameters)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.AutomationCoordinator.<RunRecurrentAsync>d__21.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.AutomationCoordinator.RunRecurrentAsync(IWFRecurrentActionsDefinition recurrentActionDefinition)
at WebCon.WorkFlow.Service.Context.ServiceExecuteWithTimeout.<>c__DisplayClass5_0`1.<<ExecuteAsync>g__ExecuteAndCatchInnerExceptionAsync|0>d.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
at WebCon.WorkFlow.Service.Context.ServiceExecuteWithTimeout.<>c__DisplayClass5_0`1.<ExecuteAsync>g__ExecuteAndCatchInnerExceptionAsync|0()
at WebCon.WorkFlow.Service.Context.ServiceTask.<>c__DisplayClass1_0`1.<<Run>b__0>d.MoveNext()
at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
at WebCon.WorkFlow.Service.Context.ServiceTask.<>c__DisplayClass1_0`1.<Run>b__0(Object <p0>)
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.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at WebCon.WorkFlow.Service.Context.ServiceTask.<Run>d__1`1.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
at WebCon.WorkFlow.Service.Context.ServiceTask.Run[T](String connectionString, IServiceFarmLogger logger, Func`1 action, Boolean logThreadAbortException)
at WebCon.WorkFlow.Service.Context.ServiceThreadPool.<>c__DisplayClass10_0`1.<<RunAsync>b__0>d.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
at WebCon.WorkFlow.Service.Context.ServiceThreadPool.<>c__DisplayClass10_0`1.<RunAsync>b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
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.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at System.Threading.ThreadPoolWorkQueue.Dispatch() ---> System.NullReferenceException: Object reference not set to an instance of an object.
at WebCon.WorkFlow.BusinessLogic.DataHelpers.SDK.SDKPluginsActivator.CreatePluginInstance[T](Int32 pluginID)
--- End of inner exception stack trace ---
at WebCon.WorkFlow.BusinessLogic.DataHelpers.SDK.SDKPluginsActivator.CreatePluginInstance[T](Int32 pluginID)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.Evaluators.ActionEvaluator.GetPluginExecutionType(IWFAction wfAction, IWorkFlowObject wfObject, IAuthenticationProvider authenticationProvider)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.Evaluators.ActionEvaluator.GetActionExecutionType()
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.Evaluators.ActionEvaluator.<EvaluateAsync>d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.Evaluators.ActionEvaluator.<ExecuteEvaluationAsync>d__21.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.AutomationEngine.<RunAutomationOperationsAsync>d__27.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.AutomationEngine.<RunAutomationWithoutResultCleanAsync>d__24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at WebCon.WorkFlow.BusinessLogic.Automations.Engine.Evaluators.AutomationEvaluator.<EvaluateAsync>d__6.MoveNext()

In reply to: Raluca-Mirabela Lupu

Hi,
I used the sdk for signing the documents with AdobeSign.
I didn't encounter any errors. Could you please send a screenshot of the SDK configuration?
The error is very generic, and I can't determine the cause from this error message.
I recommend adding a try-catch block to each function in the SDK and using specific error messages.

Thanks,
Raluca

sure thing.
as stated: actually sending and signing in docusign works perfectly.
what is not working is the automation "checkalldocumentstatus"

attached is the actual function-config as a screenshot.
I have all revelant parameters stored as process constants.
since other docusign-functions work, its definitely not those.

it has to be the workflow part thats not working for whatever reason.
its configured as stated in the sdk config (at least thats what I think)

thank you in advance

WEBCON
In reply to: Raluca-Mirabela Lupu

Hi,
I recommend entering the source code of the SDK and adding try-catch blocks to identify more precisely where the error occurs.
The error received is found in many cases.

Thanks,
Raluca

Hi
This error is caused by a related error when instantiating the plugin (should be in EventLog): Could not load file or assembly 'Microsoft.IdentityModel.JsonWebTokens, Version=6.12.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
Loading WebTokens.dll error is results from the implementation on the WEBCON BPS Service- it will be fixed in the next 2023.1.2 version, which will be released this or next week.