Getting "Get Credential: Could not find an asset with this name. Error code: 1002" error while fetching the Asset value from dictionary

Hi,

I am trying to read a word document and store the values in a dictionary including the asset name.

And while fetching the value using Get Credential activity, its displaying “Get Credential: Could not find an asset with this name. Error code: 1002” error message.

Attaching the document which i am reading and my xaml file for your reference.
Test Doc 3.docx (13.3 KB)
Test1.xaml (8.2 KB)

Can someone help me out why am i getting this error ?

there should be same asset name in orchestrator which you are passing in get credential activity

Yes i checked, the Asset name value is same. When i hard code the asset name in Get Credentials activity its picking the right asset value from Orchestrator.

But in my flow the value is stored in a dictionary and i am calling the value using DictionaryVariable(“Key”).ToString.

use Dictionary_variable.Key.toString

image

this is how it works.