Hi i have encountered this error while converting from windows legacy to windows can anyone please help me with this
Can not assign ‘Split(OutDates(0).tostring.trim, Environment.NewLine())’ to ‘myarraystring’.
Hi,
Can you try to add Microsoft.VisualBasic.Strings. before Split as the following?
Microsoft.VisualBasic.Strings.Split(strVar,vbcrlf)
Regards,
Hi,
still throwing the same error
Multiple Assign: Can not assign ‘Microsoft.VisualBasic.Strings.Split(OutDates(0).ToString.Trim,Environment.NewLine())’ to ‘arrData’.
Hi ,
i did retype it is throwing the same error
Please share the input and expected output @Farooq_Syeda
Regards
Try this.
myarraystring = OutDates(0).ToString.Trim.Split(Environment.NewLine())
Thanks,
Ashok
Hi,
Can you check if OutDates has 1 or more item at LocalsPanel?
Or can you share content of $exceptionDetails in LocalsPanel when error occurs in debug mode?
Regards,
RemoteException wrapping System.InvalidOperationException: Can not assign ‘Microsoft.VisualBasic.Strings.Split(OutDates(0).ToString.Trim,Environment.NewLine())’ to ‘arrData’. —> RemoteException wrapping System.NullReferenceException: Object reference not set to an instance of an object.
at Namespace_7539.FGPRevenueCycle_Expressions.FGPRevenueCycle_Expressions_TypedDataContext14_ForReadOnly.__Expr54Get()
at Namespace_7539.FGPRevenueCycle_Expressions.FGPRevenueCycle_Expressions_TypedDataContext14_ForReadOnly.ValueType___Expr54Get()
at Namespace_7539.FGPRevenueCycle_Expressions.InvokeExpression(Int32 expressionId,
IList1 locations, ActivityContext activityContext) at Microsoft.VisualBasic.Activities.VisualBasicValue
1.Execute(CodeActivityContext context)
at System.Activities.Runtime.ActivityExecutor.ExecuteInResolutionContext[T](ActivityInstance parentInstance,
Activity1 expressionActivity) at System.Activities.InArgument
1.TryPopulateValue(LocationEnvironment targetEnvironment,
ActivityInstance activityInstance,
ActivityExecutor executor)
at System.Activities.ActivityInstance.InternalTryPopulateArgumentValueOrScheduleExpression(RuntimeArgument argument,
Int32 nextArgumentIndex,
ActivityExecutor executor,
IDictionary2 argumentValueOverrides, Location resultLocation, Boolean isDynamicUpdate) at System.Activities.ActivityInstance.ResolveArguments(ActivityExecutor executor, IDictionary
2 argumentValueOverrides,
Location resultLocation,
Int32 startIndex)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor,
BookmarkManager bookmarkManager,
Location resultLocation)
— End of inner exception stack trace —
at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance,
ActivityExecutor executor,
BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor,
BookmarkManager bookmarkManager,
Location resultLocation)
Check your OutDates isnot nothing first. As per error it seems OutDates is null.
Thanks,
Ashok
This means OutDates has no value.
Please check and fix it.
Regards,
Hi Syeda,
Please try this expression:
Split(CStr(OutDates(0)).Trim, Environment.NewLine)
Or
Split(Convert.ToString(OutDates(0)).Trim, Environment.NewLine)
Please confirm if it’s work and like…
Cheers…
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.