jijuoommen
(Jiju Oommen)
September 25, 2019, 11:17am
1
I’m new to RPA as well as Ui Path. I was following every instruction specified by the Academy.
However, while running the program, I did not get the desired output and got the “Exception Thrown[Assign]” message.
I double-checked each step again to verify what I did is right or not. Is something I need to check more
Kindly help me
2 Likes
What exactly the error @jijuoommen
cheers
Happy learning
2 Likes
sandeep13
(Sandeep Pathak)
September 25, 2019, 11:24am
3
@jijuoommen
Welcome to our community
can you share what exception is there?
2 Likes
jijuoommen
(Jiju Oommen)
September 25, 2019, 11:26am
4
2 Likes
jijuoommen
(Jiju Oommen)
September 25, 2019, 11:28am
5
Thank you @sandeep13
I got the following error. As I am new to this, I don’t have any idea where to check more details.
2 Likes
sandeep13
(Sandeep Pathak)
September 25, 2019, 11:29am
6
@jijuoommen
see left side of panel(locals panel) you can check there what exception is there
2 Likes
@jijuoommen
I think you are using substring with a null values your PN Variables is null so that it thrown error.Kindly check.
cheers
Happy learning
4 Likes
jijuoommen
(Jiju Oommen)
September 25, 2019, 11:32am
8
Thank you @sandeep13
Please see the following…
RemoteException wrapping 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.CodeActivity
1.InternalExecuteInResolutionContext(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.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, IDictionary
2 argumentValueOverrides,
Location resultLocation,
Int32 startIndex)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor,
BookmarkManager bookmarkManager,
Location resultLocation)
“Name”: “Assign”,
“Id”: “1.9”,
“InstanceId”: “5”,
“TypeName”: “System.Activities.Statements.Assign”
1 Like
sandeep13
(Sandeep Pathak)
September 25, 2019, 11:34am
9
@jijuoommen
@pattyricarte is right.you are using substring with a null values your PN Variables is null so that it thrown error.
3 Likes
jijuoommen
(Jiju Oommen)
September 25, 2019, 11:34am
10
Thank you @pattyricarte
In the tutorial, there is no mention of this.
Yes. I am using a substring. How to correct this (for me as a beginner)?
sandeep13
(Sandeep Pathak)
September 25, 2019, 11:40am
11
Before Using Sunstring make sure PN variable has value.
you can either using message box activity or Writeline activity to show the value of Pn Variable
Note: Writeline activity show in Output panel
3 Likes
@jijuoommen
Check first if your variable has a value on it before using the substring .
cheers
Happy learning
6 Likes
jijuoommen
(Jiju Oommen)
September 25, 2019, 12:19pm
13
Thanks @sandeep13
This was the solution given in the tutorial.
If I need to put value, what value should I use in the field initially, please guide me.
jijuoommen
(Jiju Oommen)
September 25, 2019, 12:45pm
14
I assigned 0 as inital value and this is working…
Thanks to @pattyricarte and @sandeep13
1 Like
system
(system)
Closed
September 28, 2019, 1:06pm
16
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.