Reading the value from Queue item getting error (The key given value is not in the dictionary)

While reading data from queue getting error find below screenshot of Assigning the value of specific content :
image

Below is the screebshot data item in queue
image

Thanks in Advance…

1 Like

@mittal.abhishek

This is because of “Extra Space” in the Queue value.
It should be like –
in_TransactionItem.SpecificContent("INPUT_FILE_CRS>XLSX ").ToString
OR
in_TransactionItem.SpecificContent(“INPUT_FILE_CRS>XLSX”).ToString.Trim

Hey @mittal.abhishek

The below may help,

in_TransactionItem.SpecificContent("FileName").ToString.Trim

You will need to use field names as keys which will fetch the value.

Thanks
#nk

2 Likes

Hi @mittal.abhishek

You should give the key as “Filename”

instead you are calling directly the Value

In orchestrator it will be stored as shown in SS

INPUT_FILE_CRS.xlsx is assigned to Filename so you need to call filename in order to use the xlsx name

in_TransactionItem.SpecificContent(“FileName”).ToString.Trim

Regards
Gokul