Getting issue while trying to access Transcation item

When i am adding queue items in initialization and state and then i am trying to access those queue items in process state i have created this seperate sequence to add collection to webiste but i am consistently getting this error will someone take alook

Hi @prashant_maghade

Can you share how are the key names present in the queue. What is the syntax you have written.

Regards

While adding in init state whatever collection name given that name should be given inside the double quotes

@prashant_maghade,

Try this.

Out_TransactionItem.SpecificContent("""Collections""").ToString

If don’t wok, share Specific content screenshot to see how it’s stored.

Thanks,
Ashok :slight_smile:

this is the syntax i am using in add queue item activity under iteminformation


this is the for each row in data loop i am using to add these unique collections i have filtered from dt_input data table

this is the syntax i am using in add queue item activity under iteminformation

this is the for each row in data loop i am using to add these unique collections i have filtered from dt_input data table

Hi @prashant_maghade

You need to give Collections in double quotes. You can give it normally while add queue item

In Type Into

Out_TransactionItem.SpecificContent("Collections").ToString

Regards

@prashant_maghade,

I tried to replicate it and it was showing " at start if I pass "Collections in Add queue item. I’m able to retrieve it by this.

trItem.SpecificContent("""Collections").ToString

image

Thanks,
Ashok :slight_smile:

@prashant_maghade,

You should be adding queue item key as plain text like this.

If uses this below code will work.

Out_TransactionItem.SpecificContent("Collections").ToString

image

If you want to continue using your existing Add queue Item logic which I would not advise:

Use below code to get SpecificContent Collections:

Out_TransactionItem.SpecificContent("""Collections""").ToString

Thanks,
Ashok :slight_smile:

1 Like

Thank you it worked … But could you please help me with reason why i had to use trItem.SpecificContent(“”“Collections”“”).ToString si there any mistake i had made while adding queue ?

@prashant_maghade,

Glad it worked! Kindly close the thread by marking my answer as solution.

Yes, you are adding it incorrectly. Explained the difference here: Getting issue while trying to access Transcation item - #9 by ashokkarale

Thanks,
Ashok :slight_smile:

Thank you @ashokkarale I am new to UiPath Tool… Really Appreciate you efforts :).

1 Like

@prashant_maghade,

You are welcome. You can connect over LinkedIn as well. Lets learn together :smiley:

1 Like

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