# Array Indexing item return and remove element from array problems

**URL:** <https://community.glideapps.com/t/array-indexing-item-return-and-remove-element-from-array-problems/77275>\
**Category:** Ask for Help\
**Created:** [October 24, 2024, 1:24am UTC](https://community.glideapps.com/t/array-indexing-item-return-and-remove-element-from-array-problems/77275 "2024-10-24T01:24:21Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![tyler\_1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tyler_1/32/72341_2.png) [@tyler\_1](https://community.glideapps.com/u/tyler_1)\
**Post date:** [October 24, 2024, 1:24am UTC](https://community.glideapps.com/t/array-indexing-item-return-and-remove-element-from-array-problems/77275/1 "2024-10-24T01:24:21Z")

</div>

Anyone notice a bug currenty with ARRAYs and removing items. Specifically referring to the Trebuchet method?

---

<div class="post-metadata">

**Author:** ![tyler\_1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tyler_1/32/72341_2.png) [@tyler\_1](https://community.glideapps.com/u/tyler_1)\
**Post date:** [October 24, 2024, 2:18am UTC](https://community.glideapps.com/t/array-indexing-item-return-and-remove-element-from-array-problems/77275/2 "2024-10-24T02:18:07Z")

</div>

I have a remove ITEM from array but it simply not working. It removing the wrong item which then causes by update column Make Array to be innacurrate.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [October 24, 2024, 2:31am UTC](https://community.glideapps.com/t/array-indexing-item-return-and-remove-element-from-array-problems/77275/3 "2024-10-24T02:31:45Z")

</div>

Do you have screenshots showing what’s happening and how you have the remove array item column configured?

---

<div class="post-metadata">

**Author:** ![tyler\_1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tyler_1/32/72341_2.png) [@tyler\_1](https://community.glideapps.com/u/tyler_1)\
**Post date:** [October 24, 2024, 2:43am UTC](https://community.glideapps.com/t/array-indexing-item-return-and-remove-element-from-array-problems/77275/4 "2024-10-24T02:43:33Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/3/137edbd106eb06aea43fde00b1de478e3b5ee201.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/f/9f434c57a7ae912d4a9804c3c9b7f1808cb1bb63.png)

Then Trying to remove that element, but it doesn’t remove the correct element:

New Column B is the Joined listed of the second image of RemovedITEMQuoteBuild.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/0/e0e623cf7d1ca5067d1b0c8e2cce0defd4340ac1.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/a/fabe23cebbd98bd3ba4f0b87bccd0b5eb3907b8c.png)

Then it is missing the mark on all the JSON functions.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [October 24, 2024, 2:49am UTC](https://community.glideapps.com/t/array-indexing-item-return-and-remove-element-from-array-problems/77275/5 "2024-10-24T02:49:35Z")

</div>

Where does the Index come from? Are you considering that array indexes are zero based?

To further clarify, does the single value column contain the actual item you want to remove from the array, or is it maybe referring to the item following the one you want to remove.

---

<div class="post-metadata">

**Author:** ![tyler\_1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tyler_1/32/72341_2.png) [@tyler\_1](https://community.glideapps.com/u/tyler_1)\
**Post date:** [October 24, 2024, 3:05am UTC](https://community.glideapps.com/t/array-indexing-item-return-and-remove-element-from-array-problems/77275/6 "2024-10-24T03:05:19Z")

</div>

My indexing is base off that table using the row IDs starting at 0. Let me double check everything and respond back. Perhaps there is an index order I am missing but I swear I have checked a half dozen times.

---

<div class="post-metadata">

**Author:** ![tyler\_1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tyler_1/32/72341_2.png) [@tyler\_1](https://community.glideapps.com/u/tyler_1)\
**Post date:** [October 24, 2024, 4:10am UTC](https://community.glideapps.com/t/array-indexing-item-return-and-remove-element-from-array-problems/77275/7 "2024-10-24T04:10:15Z")

</div>

This is the Index Single Value Column:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/5/a5ee4efeb31360d8481ea36943e27efa30b3ff78.png)

Assigned from this column:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/e/1e3f00fd0af63328a7704e55b650621efba6683c.png)

The index value is row based:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/3/53a4d5668ffcab300d71cadef1e4291965060d81.jpeg)

Also, please forgive all of the crazy naming. I have been at my wits end trying to figure this out so I have revamped some naming so I knew where I already looked.

---

<div class="post-metadata">

**Author:** ![tyler\_1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tyler_1/32/72341_2.png) [@tyler\_1](https://community.glideapps.com/u/tyler_1)\
**Post date:** [October 24, 2024, 4:37am UTC](https://community.glideapps.com/t/array-indexing-item-return-and-remove-element-from-array-problems/77275/8 "2024-10-24T04:37:34Z")

</div>

Solved, thank you for even looking into this @Jeff_Hager. User error. I need to schedule breaks. It was actually working the way it should, the problem was what I had configured for visibility. And I used the wrong select for a URL path split. That single column finding the wrong destination in the URL path caused it.

However, I am squared away and there is no bug.

---

<div class="post-metadata">

**Author:** ![tyler\_1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tyler_1/32/72341_2.png) [@tyler\_1](https://community.glideapps.com/u/tyler_1)\
**Post date:** [October 24, 2024, 7:36pm UTC](https://community.glideapps.com/t/array-indexing-item-return-and-remove-element-from-array-problems/77275/9 "2024-10-24T19:36:59Z")

</div>

Just in case anyone else needs this.

I have a JSON object that was in question here for this application and it has a key/value pair of ‘url’: ‘’. I tested and verified what was being applied where by extracting the file name as needed using a JSON Query:

url.$substringBefore($split($decodeUrl(),“/”)[-1], “.”)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/7/17de9b93d9de097d33b1680946e0285fd91e4c01.png)

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [October 25, 2024, 12:16am UTC](https://community.glideapps.com/t/array-indexing-item-return-and-remove-element-from-array-problems/77275/10 "2024-10-25T00:16:31Z")

</div>

Great use of data transformation right in the Query JSON column.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [November 1, 2024, 12:16am UTC](https://community.glideapps.com/t/array-indexing-item-return-and-remove-element-from-array-problems/77275/11 "2024-11-01T00:16:32Z")

</div>

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