Exception reading Credential asset from Orchestrator.Pls help

I am using REF which comes with built in sequence to read Assets sheet of Config file and then reading those Assets from Orchestrator through Get Asset activity, inside InitAllSettings.xaml.

I could see its fetching the assets of type Text just fine. But throws below exception while reading Asset of type Credential. Not sure whats wrong here. I double checked the Asset name in Config and in Orchestrator are matching. I see o/p variable of Get Asset activity i.e AssetValue is of type Generic. So does it work for reading credential type assets at all? Please guide me here.

/******************************************************************/

RemoteException wrapping System.Exception: Invalid asset type was specified for asset ’
{
0
}'.
at UiPath.Core.Activities.BaseAssetActivity.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)

@Sachingoudar

You need to write the Credential Asset in Settings sheet but not under Assets sheet. You can write all other Assets in Asset sheet except asset of type Credential.

6 Likes

@lakshman Thank you for that input. That resolved my problem. So now I can fetch Credential Asset value through Get Asset activity under login activity.

1 Like

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