I’m in the midst of doing the assignment to calculate client security hash but keep encountering the issue with filtering the list of extracted work items and assign it to transaction data.
The code works fine with i’m extracting the data but goes haywire when i tried to use invoke workflow in init.
An ExceptionDetail,
likely created by IncludeExceptionDetailInFaults=true,
whose value is:
System.NullReferenceException: Object reference not set to an instance of an object.
at lambda_method(Closure ,
ActivityContext )
at Microsoft.VisualBasic.Activities.VisualBasicValue1.Execute(CodeActivityContext context) at System.Activities.CodeActivity1.InternalExecuteInResolutionContext(CodeActivityContext context)
at System.Activities.Runtime.ActivityExecutor.ExecuteInResolutionContext[T](ActivityInstance parentInstance,
Activity1 expressionActivity) at System.Activities.InArgument1.TryPopulateValue(LocationEnvironment targetEnvironment,
ActivityInstance activityInstance,
ActivityExecutor executor)
at System.Activities.RuntimeArgument.TryPopulateValue(LocationEnvironment targetEnvironment,
ActivityInstance targetActivityInstance,
ActivityExecutor executor,
Object argumentValueOverride,
Location resultLocation,
Boolean skipFastPath)
at System.Activities.ActivityInstance.InternalTryPopulateArgumentValueOrScheduleExpression(RuntimeArgument argument,
Int32 nextArgumentIndex,
ActivityExecutor executor,
IDictionary2 argumentValueOverrides, Location resultLocation, Boolean isDynamicUpdate) at System.Activities.ActivityInstance.ResolveArguments(ActivityExecutor executor, IDictionary2 argumentValueOverrides,
Location resultLocation,
Int32 startIndex)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor,
BookmarkManager bookmarkManager,
Location resultLocation)
Screenshots showing the argument and variables of the relevant workflow are as follows:
My select query previously was:
dt_ExtractedWorkItems.Select(“[Type]=‘WI5’ And [Status] = ‘Open’”) as i read through some of the other thread that this seem to help some solve their issue.
May I also understand why the suggestion to convert the variable from data array to datatable?
single quotes are not proper in select query. And also you unchecked Add headers option in Write Range activity.
I modified your workflow as sent to me personally. please find the same there.