Problem using Application/Browser

Hi,
i’m trying to use the activity use application/browser into a workflow.
image
It’s only a try catch with the use application/browser that open chrome.
The problem is when i try to invoke that workflow (and i’m only trying to invoke the workflow)
image
image

The argument is a Dictionary config (in the other invoke does not give problems)

The error is :
RemoteException wrapping System.ArgumentException: -8,
-8,
1936,
1056 is not a valid value for Int32. (Parameter ‘value’) —> RemoteException wrapping System.FormatException: Input string was not in a correct format.
at System.Number.ThrowOverflowOrFormatException(ParsingStatus status,
TypeCode type)
at System.Number.ParseInt32(ReadOnlySpan1 value, NumberStyles styles, NumberFormatInfo info) at System.Int32.Parse(String s, NumberStyles style, IFormatProvider provider) at System.ComponentModel.Int32Converter.FromString(String value, NumberFormatInfo formatInfo) at System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) --- End of inner exception stack trace --- at System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) at System.Drawing.RectangleConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) at System.ComponentModel.TypeConverter.ConvertFrom(Object value) at DoganeDispatcher._02_ScaricoDogane._02_01_BrowseToDogane.GetImplementation() at System.Activities.Activity.OnInternalCacheMetadata(Boolean createEmptyBindings) at System.Activities.Activity.InternalCacheMetadata(Boolean createEmptyBindings, IList1& validationErrors)
at System.Activities.ActivityUtilities.ProcessActivity(ChildActivity childActivity,
ChildActivity& nextActivity,
Stack1& activitiesRemaining, ActivityCallStack parentChain, IList1& validationErrors,
ProcessActivityTreeOptions options,
ProcessActivityCallback callback)
at System.Activities.ActivityUtilities.ProcessActivityTreeCore(ChildActivity currentActivity,
ActivityCallStack parentChain,
ProcessActivityTreeOptions options,
ProcessActivityCallback callback,
IList1& validationErrors) at System.Activities.ActivityUtilities.CacheRootMetadata(Activity activity, LocationReferenceEnvironment hostEnvironment, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList1& validationErrors)
at System.Activities.WorkflowInspectionServices.GetActivities(Activity activity)+MoveNext()
at System.Linq.Enumerable.SelectManySingleSelectorIterator2.MoveNext() at System.Linq.Enumerable.ConcatIterator1.MoveNext()
at System.Linq.Enumerable.SelectManySingleSelectorIterator2.MoveNext() at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext()
at System.Linq.Set1.UnionWith(IEnumerable1 other)
at System.Linq.Enumerable.DistinctIterator1.FillSet() at System.Linq.Enumerable.DistinctIterator1.ToArray()
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at UiPath.Executor.Tracking.TrackingHelpers.GetVariableNames(Activity activity)
at UiPath.Executor.Tracking.TrackingHelpers.TrackVariables(TrackingProfile profile,
WorkflowInfo workflowInfo)
at UiPath.Executor.Tracking.DebugTrackingParticipant.RegisterWorkflow(WorkflowInfo workflowInfo)
at UiPath.Executor.DebuggerPlugin.UiPath.Executor.IDebuggerPlugin.RegisterWorkflowTracking(WorkflowInfo workflowInfo)
at UiPath.Executor.Tracking.WorkflowTracking.RegisterWorkflowTracking(WorkflowInfo workflowInfo)
at UiPath.Executor.RobotRunner.RegisterWorkflowTracking(WorkflowInfo workflowInfo)
at UiPath.Executor.WorkflowRuntime.RegisterWorkflow(WorkflowInfo workflowInfo)
at UiPath.Executor.InProcessRunner.<>c__DisplayClass6_0.g__StartWorkflow|1()
at UiPath.Executor.InProcessRunner.BeginExecute(AsyncCallback callback,
Object state)
at UiPath.Core.Activities.ExecutorInvokeActivity.BeginExecute(AsyncCodeActivityContext context,
AsyncCallback callback,
Object state)
at System.Activities.AsyncCodeActivity.InternalExecute(ActivityInstance instance,
ActivityExecutor executor,
BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor,
BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor,
BookmarkManager bookmarkManager,
Location resultLocation)

C# , Windows compatibility , Uipath studio 2021.10.4
I’m using these versions
image

what are you trying to do? you want to open browser with URL?

Yes.
Here i’m trying only to open chrome home.
The error appears when uipath it’s compiling the invoke workflow.

Looks like you have an Int32 parameter but are giving it a value that is not Int32.

Show us your Invoke Workflow parameters.

image

you can use open browser activity also you can select your browser Type in properties,

I hope this should work and help :slight_smile:

Well it’s not in the parameters but clearly somewhere you are passing an array, list, string or something like that to an int32:

Trying this
image

give me the problem only if inside test workflow there is the use application/browser activity.

Invoke Workflow File: 0, 0, 1920, 1080 is not a valid value for Int32. (Parameter ‘value’)
I’m passing the same config.

My dictionary it’s a string object and inside i have only strings, could be a problem with the new version of activity ?

First of all why do you have double \ in your path?

Anyway, you have to look inside test.xaml to find where you are trying to use “0,0,1920,1080” as Int32.

1 Like

You should get familiar with how to use Debug mode. It’ll stop on the activity that throws the error.

The double \ it’s automatic with the invoke workflow.

By the way i found the problem
image

Commenting this the invoke work correctly.

Why are you trying to assign a value to a constant (CultureInfo.CurrentCulture)? Don’t do that.

I was trying to change the entire culture info for the project for data parsing.

Thank you @postwick for your time !!!

Well if you want to do that, then your CultureInfo value in your config file must be something like “en-US” or “fr-LU” etc

I’m using it
image

Probablly i missed something

You have…

out_Config[“CultureInfo”]

…when it should be…

out_Config(“CultureInfo”)

You reference dictionary items with ( and ) not [ and ]

In C# you reference dictionary with [ . ]

In vb with ( ).

Ok so if i change the culture with en-US the problem doesn’t appear.

Oh, sorry, I didn’t realize you’re in C#

It seems like for some reason your out_Config[“CultureInfo”] is ending up with the value “-8,-8,1936,1056” instead of “it-IT”