For God’s sake… this kind of questions have their answer on Google on the FIRST link… Giving answers in here encourages people not to search anymore… not to study anymore…
I’m running a process using the below If statement.
It works fine within one part of the process (Update Invoice Data) but when i use it again in another part of the process it fails (Update Country Data). I receive the following message: Source: Assign Message: Index and length must refer to a location within the string. Parameter name: length Exception Type: System.ArgumentOutofRangeException
An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is: System.ArgumentOutOfRangeException: Index and length must refer to a location within the string. Parameter name: length
at System.String.Substring(Int32 startIndex, Int32 length)*
at lambda_method(Closure , ActivityContext )*
at Microsoft.VisualBasic.Activities.VisualBasicValue`1.Execute(CodeActivityContext context)*
at System.Activities.CodeActivity`1.InternalExecuteInResolutionContext(CodeActivityContext context)*
at System.Activities.Runtime.ActivityExecutor.ExecuteInResolutionContext[T](ActivityInstance parentInstance, Activity`1 expressionActivity)*
at System.Activities.InArgument`1.TryPopulateValue(LocationEnvironment targetEnvironment, ActivityInstance activityInstance, ActivityExecutor executor)*