I'm getting an error message when invoking ACME_Open workflow

I’m working on assignment one anmd i’m getting an error message when I run my project.
The given key was not present in the dictionary.
Exception type: System.Collections.Generic.KeyNotFoundException
21.10.5+Branch.support-v21.10.Sha.369f46199a0fa6287d86ab2534b6896019db01bc

Source: Invoke ACME_Open workflow

Message: The given key was not present in the dictionary.

Exception Type: System.Collections.Generic.KeyNotFoundException

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)
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at UiPath.Executor.BaseRunner.EndExecute(IAsyncResult result)
at UiPath.Executor.InProcessRunner.EndExecute(IAsyncResult result)
at UiPath.Core.Activities.ExecutorInvokeActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Hi @Andrew_Spence ,

Few questions to understand a bit better the situation:

  • Does it start and at some point it crashes with the message above? or is it complaining and preventing you from even starting?
  • Did you try to Debug instead of Run? If so, can you send a screenshot of the activity that fails? (if its not the case mentioned above preventing you to start)

Thanks!

It’s starting and straight away it is opening then closing then showing the error message.
Can I attach my files here. I’m not sure how.

I’ve run the project in debug mode and got stuck on the following. I can see that the arguments showing are not the same as in my project. How can this be?

As the error message indicates, somewhere you’re using a dictionary and the key you’ve specified doesn’t exist. Post a screenshot of the arguments you see when you click the Import Arguments button.

This post has been removed

in_Config is a dictionary. Confirm that both of those keys (ACMEApplicationPath and ACMECredentials) exist in the dictionary, which is read from an Excel file so check the Excel file to make sure you have those in there. Spelling is exact.

Also, I can tell by the error message that you’re on old versions of things. Newer versions tell you which key is missing.

What version of Studio and UiPath.System.Activities are you on?

I’m using an enterprise version of Studio 2021.10.5 and 2021.10.4 for UiPath.System.Activities. I can’t upgrade it sadly.

I had missed the _ in the ACME path. I’m using credential manager. Now I’m getting this error.

The error message is pretty clear, it didn’t find an Asset with that name. You said you’re using credential manager - that’s a Windows thing and is different from an Asset (which would be in Orchestrator).

I’m not using orchestrator so i’m not sure why it is saying that?

Because you used the Get Credential activity which pulls the username and password from a credentials Asset in Orchestrator.

If you want to use credential manager, that’s the Get Secure Credential activity.

Thank you this is what i need.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.