Hi
I'm trying to educate myself on using workflows within RPA - and have been following the sample process in the documentation
Creating a workflow file and integrating it into a script
And this all works. But thought I'd enhance this with trying to get the instance information to persist on the SaaS control center. So, as according to the documentation I added the 'Create Storage Adapter (server) to the script and then add the reference to the adapter to the Load Workflow step. See the wal file in the attached zip.
Now when it gets to the step to Create Workflow Instance - it fails with:
WDG.Http.HttpException: An error occurred calling /v1.0/en-US/workflow/storage/instance. Details:
The entity or complex type 'WDG.Automation.Data.WorkflowInstanceVariableState' cannot be constructed in a LINQ to Entities query.
---> System.Exception: Status=InternalServerError. ReasonPhrase=Internal Server Error
--- End of inner exception stack trace ---
at WDG.Http.HttpClientExtensions.<ThrowWhenUnsuccessful>d__0.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 WDG.Automation.Api.V10.WorkflowStorageService.<WDG-Automation-Api-IWorkflowStorageService-CreateInstance>d__10.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 WDG.Automation.Base.ServerWorkflowInstanceStorage.<Create>d__10.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 WDG.Workflow.Storage.WorkflowStorage`1.<LoadOrCreate>d__57.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 WDG.Automation.Runtime.WorkflowVariant.<LoadOrCreateInstance>d__69.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 WDG.Automation.Base.CreateWorkflowInstanceCommand.<Execute>d__21.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at WDG.Automation.Language.CommandInterpreter.<Run>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at WDG.Automation.Language.ScriptInterpreter.<RunCore>d__17.MoveNext()
Is anyone able to explain what the issue is here? Am I doing something wrong?
------------------------------
Richard Aitchison
------------------------------