I have a process running, I recently added 2 more machines to a machine template and they are connected to the orchestrator, but when I try to run the processes on the new machines it does not allow me to run them and I receive an error when reading the Assets.
The given key was not present in the dictionary.
RemoteException wrapping System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary2.get_Item(TKey key) 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, IDictionary`2 argumentValueOverrides, Location resultLocation, Int32 startIndex)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
If issue was related reading assets that means wherever you are executing bot like if you are execution from production then bot refers production folder to get the assets but when you are referring other folder if that folder dont have assets then these issues will face.
check properly where bot is executing and assets are there or not in the asset as well
check the config file also if you are using, any default value was updated or not.
The error indicates that your process is trying to retrieve an Asset that it cannot find. This usually happens when the Asset name is misspelled, doesn’t exist in Orchestrator, or is not available to the robot running the process.
Since you added new machines, make sure those robots are in the correct folder or environment, and that the Asset is accessible to them. Also, confirm the Asset name in your workflow exactly matches what’s in Orchestrator.
Add logs into your bot and found out which activity is failing. Once you get it you can solve the problem by checking if the values bot is looking for is available or not.
Hey @marcos.reyes check the logs in the orchestrator .where you can find the Exact location where your bot is failing.or you can run your process in studio in debug mode which give you the activity where your process got failed.
As per my understanding, the robot or the machine where you are running the process in unattended mode does not have the required folder (Orchestrator) permissions for the folder where the assets were created. That’s why, when the bot tries to read the asset, it throws an error.
This error typically means that the code is trying to access a value in a dictionary using a key that doesn’t exist within the dictionary.
This error can occur in various scenarios, such as 1)when accessing a variable or parameter that was not properly initialized or when the input data is incorrect.
2)The key used to access the dictionary value might be misspelled or not exactly match the key used when the value was added to the dictionary.
3)The key might not exist in the dictionary at all, either due to an error in the code that should have added the key or because the key was removed before being accessed.
first thing where is the config file? if it is in package it should be fine but if it is in any common location make sure you give the location properly
second are other machines/users have access as the first one on the ochestrator folder?
The thing is, if I run the process on the machines I originally had in the orchestrator, the processes I have work fine, but when I try to run it on another of the machines I recently added/connected, they don’t work. And that’s where I’m getting this error.
The machines are connected and associated with the same template machine; they use the same robot (user account).
It’s worth mentioning that I’m trying to run them on unattended robots.