# Getting a Specific value from QueueItems Variable Type without using For Each loop

**URL:** <https://forum.uipath.com/t/getting-a-specific-value-from-queueitems-variable-type-without-using-for-each-loop/301050>\
**Category:** Activities\
**Tags:** orchestrator, system, activities\
**Created:** [March 25, 2021, 11:12am UTC](https://forum.uipath.com/t/getting-a-specific-value-from-queueitems-variable-type-without-using-for-each-loop/301050 "2021-03-25T11:12:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jothin\_Paul](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/jothin_paul/32/183965_2.png) [@Jothin\_Paul](https://forum.uipath.com/u/Jothin_Paul)\
**Post date:** [March 25, 2021, 11:12am UTC](https://forum.uipath.com/t/getting-a-specific-value-from-queueitems-variable-type-without-using-for-each-loop/301050/1 "2021-03-25T11:12:19Z")

</div>

Same like  
myDT.Rows(0).Item(1).ToString  
for Datatable to get a specific value without for each loop

I want to get QueueItems specific value without for each loop

Purpose:  
Need to get all failed queueitems with a specific reference value and if the returned queueitems count is 1 then, I need to know whether that item is failed due to business exception or not.  
So, I’m looking to know the queue item status without a for each loop.

(ProcessingException.Reason)

Thank you

---

<div class="post-metadata">

**Author:** ![Pravin\_Patil1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/pravin_patil1/32/220854_2.png) [@Pravin\_Patil1](https://forum.uipath.com/u/Pravin_Patil1)\
**Post date:** [March 25, 2021, 11:20am UTC](https://forum.uipath.com/t/getting-a-specific-value-from-queueitems-variable-type-without-using-for-each-loop/301050/2 "2021-03-25T11:20:14Z")

</div>

@Jothin_Paul  
Like below?  
opQueues(0).ProcessingException.Reason

---

<div class="post-metadata">

**Author:** ![Jothin\_Paul](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/jothin_paul/32/183965_2.png) [@Jothin\_Paul](https://forum.uipath.com/u/Jothin_Paul)\
**Post date:** [March 25, 2021, 11:23am UTC](https://forum.uipath.com/t/getting-a-specific-value-from-queueitems-variable-type-without-using-for-each-loop/301050/3 "2021-03-25T11:23:03Z")

</div>

That’s working, Thank you Pravin!

---

<div class="post-metadata">

**Author:** ![Pravin\_Patil1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/pravin_patil1/32/220854_2.png) [@Pravin\_Patil1](https://forum.uipath.com/u/Pravin_Patil1)\
**Post date:** [March 25, 2021, 11:24am UTC](https://forum.uipath.com/t/getting-a-specific-value-from-queueitems-variable-type-without-using-for-each-loop/301050/4 "2021-03-25T11:24:07Z")

</div>

**Great and welcome community!** 🙂

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [March 28, 2021, 11:24am UTC](https://forum.uipath.com/t/getting-a-specific-value-from-queueitems-variable-type-without-using-for-each-loop/301050/5 "2021-03-28T11:24:34Z")

</div>

Closed on March 28, 2021, 11:24am UTC

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