Problem with GetSecureCredential

I have problem with getting data from Windows Credential.
When trying to get username and password through get secure credential activity, error below is thrown
"RemoteException wrapping System.Exception

  • at System.Activities.Statements.Throw.Execute(CodeActivityContext context)*
  • at System.Activities.CodeActivity.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)*
    — 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)*
    — 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)"*

Does anyone have the same expirience?

which Package Version on UiPath.Credential.Activities is used
in case of Version 2.0.0 upgraded / referenced to an existing XAML using this activities try following:

  • downgrade to an older version
    OR
  • remove existing activity and rebuild it with the activitiy offered from 2.0.0 package

@Olivera_Kalinic

Check below link for your reference

Hope this will help you

Thanks

I downgraded version of package, but don’t understand how to rebuild activity with the one from package 2.0.0 when then version is now older?

just run it and check it if it is working

Similar to:

I run it several times, there is not problem with activity acess, but with data returning. It can’t fetch username and password from Credential manager.