Get asset Error in Level 3 Assignment 1


#1

hi guys,

I am getting this error when execute my framework, its assignment 1 in level 3.

when I execute workflow separately its working fine,

I am facing this issue with initallsettings workflow…
Error message:
{
“message”: “Loading asset System1_Credential failed: Invalid asset type. For credentials use Get Credential activity”,
“level”: “Warning”,
“logType”: “User”,
“timeStamp”: “20:14:01”,
“processVersion”: “1.0.6783.36418”,
“fileName”: “InitAllSettings”,
“jobId”: “f6fcff8c-3ca0-413f-940c-4d79f871a3da”,
“robotName”: “yoganandareddy”
}


#2

what I observed in debug mode is they have used Get Asset activity for credentials,

so this is the reason I guess it is throwing error.

can someone explain this


#3

I tried to remove asset data from config excel file,

when I execute my framework is giving the error.

{
“message”: “System error at initialization: The given key was not present in the dictionary. at Source: mscorlib”,
“level”: “Fatal”,
“logType”: “User”,
“timeStamp”: “08:16:51”,
“processVersion”: “1.0.6784.14903”,
“fileName”: “Main”,
“jobId”: “23a2ca04-e5fe-49c2-b30b-7fc2cb0517d6”,
“robotName”: “yoganandareddy”
}


#4

You are using Get asset activity for credentials.

You need to use Get Credential activity where you will pass your asset name in it from Config and it will give you Username and Password as output.


#5

If you are saving the credentials in the Assets sheet in Config.xlsx, then you might be wrong.

Double check if you have done these :
1 . Store the credential variable on the Settings sheet.
Name - System1_Credential
Value - your credential (asset) name as in orchestrator

  1. Your System1_Login.xaml workflow should be accepting an argument for Credentials. You should be using that argument within that workflow to get the credentials from orchestrator using Get Credential activity

  2. While invoking the System1_Login.xaml workflow you should be passing the argument for credentials, the one that you saved in Config.xlsx

This should clear your confusions I believe.


#6

Hi @kaderms

I have done settings just like you said.

but now I am not getting any error on assets, the error is as follows once I execute my framework

{
“message”: “System error at initialization: The given key was not present in the dictionary. at Source: mscorlib”,
“level”: “Fatal”,
“logType”: “User”,
“timeStamp”: “08:16:51”,
“processVersion”: “1.0.6784.14903”,
“fileName”: “Main”,
“jobId”: “23a2ca04-e5fe-49c2-b30b-7fc2cb0517d6”,
“robotName”: “yoganandareddy”
}


#7

There should be a mismatch in the way that you have mentioned the variable name in the Config.xlsx sheet and when you are using the variable to pass it on to a workflow.
Possibly check for white spaces before and after the variable names.


#8

thank you @kaderms

its working now, due variable name mismatch, uppercase and lowercase:sweat_smile::sweat_smile:


#9

Finally…! :smile:

Btw mark this one as the solution, as the thread started with a different problem :