Get Asset and Set Asset - Asset name is not picked properly

Hello All,

When using Get Asset or set Asset, I’m passing the asset name from config (i.e.) I’m not picking it from the list of Assets in drop down but using Advanced editor and passing the asset name from config. While doing this way, the value of the asset is picked as the Asset name.

For example, I have asset as below.
Asset Name: App_URL
Value: www.abc.com

Now when using Get Asset, am using the activity as below.

Code:

Config:
image

Orchestrator:

On executing, the error is thrown as below.
image

I’m not sure why the value “www.abc.com” is considered as Asset name here. It searches for the asset named “www.abc.com” and finds nothing. I am expecting the BOT to search for the asset “App_URL” here.

Can anyone please help with this?

Thank you.

Check Asset column of URL in config file Asset tab.

yes, the config is updated as same in orchestrator. But the error message shows as, BOT is searching for the asset named “www.abc.com

image

Check if you are connected to correct Orchstrator folder in studio, which is mention in your config file.

image

Check the Setting sheet. You may have an entry there with name “URL”

Hi

You have the value in the wrong config sheet/tab. Its currently in the sheet “Assets”

Move the below to “Settings” tab.
image

image

Another option:
Keep the config file as is, then skip the lookup Asset part (your 1st image) as you have already done that step (at the start of the process at Init).

Adding it to “Assets” tab = same as the “Get Asset” activity.

Hopefully this helps,

Cheers

Steve

Hey @shahidh.aqeel.shahul can you show us your config file in which sheet you are storing data.

Hi @singh_sumit

I’m storing it in the Assets sheet of config file…

Hi @Steven_McKeering

Thanks for your response. I would like to keep it in the Assets sheet as part of some coding standards.

Considering the second option you provided, yes that helps actually. But in case of updating a asset value, I would want to use the Set Asset activity. Is there a way I can update the asset value without using ‘Set Asset’ activity because ‘Set Asset’ activity also returns the same error as I have mentioned in the question.

Thank you.