# Query Builder Load From File error

**URL:** <https://forums.toadworld.com/t/query-builder-load-from-file-error/53518>\
**Category:** Toad Data Point & Toad Intelligence Central\
**Created:** [August 23, 2021, 5:05pm UTC](https://forums.toadworld.com/t/query-builder-load-from-file-error/53518 "2021-08-23T17:05:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DMP](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@DMP](https://forums.toadworld.com/u/DMP)\
**Post date:** [August 23, 2021, 5:05pm UTC](https://forums.toadworld.com/t/query-builder-load-from-file-error/53518/1 "2021-08-23T17:05:54Z")

</div>

I need to load a list from a file for an IN condition. When I load these values the Query builder adds multiple sets of single quotes. Can we get this fixed? I need to load a pretty long list of values.

 ![LoadFromFileError](https://global.discourse-cdn.com/quest/original/2X/8/85ee81f8e6d2af8bf055c778baf3952fe6f24708.png)

---

<div class="post-metadata">

**Author:** ![DMP](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@DMP](https://forums.toadworld.com/u/DMP)\
**Post date:** [August 23, 2021, 5:17pm UTC](https://forums.toadworld.com/t/query-builder-load-from-file-error/53518/2 "2021-08-23T17:17:16Z")

</div>

And to make it worse, when I edit out the extra quotes I have to use the visualize button and that puts everything into a Global Where Clause (which I am trying to avoid.....)

---

<div class="post-metadata">

**Author:** ![dkienenberger](https://avatars.discourse-cdn.com/v4/letter/d/ea666f/32.png) [@dkienenberger](https://forums.toadworld.com/u/dkienenberger)\
**Post date:** [August 27, 2021, 7:23pm UTC](https://forums.toadworld.com/t/query-builder-load-from-file-error/53518/3 "2021-08-27T19:23:03Z")

</div>

If you are pulling the list from a CVS/or spreadsheet, I can give you a workaround. Grab Notepad++ (windows). Copy the column with the data, paste it into a blank Notepad++ doc. Then do a find and replace using Find What: \r\n Replace: ',' Use "Replace All"

![Capture](https://global.discourse-cdn.com/quest/original/2X/e/e435559b60d3715c0c90cd8ad6ad3e3a78afc9d3.png)

That will give you a list like this:  
1234','2345','3456','4567

Just add the single quote to the beginning and end of your line. Not an ideal solution, but it will let you move forward.

---

<div class="post-metadata">

**Author:** ![Julie\_Hyman](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/julie_hyman/32/13709_2.png) [@Julie\_Hyman](https://forums.toadworld.com/u/Julie_Hyman)\
**Post date:** [September 15, 2021, 11:51pm UTC](https://forums.toadworld.com/t/query-builder-load-from-file-error/53518/4 "2021-09-15T23:51:02Z")

</div>

Hi - I tried to recreate but was not able to - can you share the text file you are trying to use?

---

<div class="post-metadata">

**Author:** ![DMP](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@DMP](https://forums.toadworld.com/u/DMP)\
**Post date:** [September 29, 2021, 4:18pm UTC](https://forums.toadworld.com/t/query-builder-load-from-file-error/53518/5 "2021-09-29T16:18:21Z")

</div>

Thanks for the work around. Unfortunately the Analyst I am building this Query Builder file will not have the patience to use that work around. But let me experiment a bit more. Maybe your discovery might trigger a different work around.

---

<div class="post-metadata">

**Author:** ![DMP](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@DMP](https://forums.toadworld.com/u/DMP)\
**Post date:** [September 29, 2021, 4:31pm UTC](https://forums.toadworld.com/t/query-builder-load-from-file-error/53518/6 "2021-09-29T16:31:52Z")

</div>

The issue starts with having a Query Builder file that I have already selected an IN list from the drop down. The list of items is correctly formatted.

WHERE (AL2.ttk IN ('01817',  
'02369',  
'10834',  
'20235'))  
If I then go and read from a file it makes the multiple quotes. If I edit it and revisualize then everything goes into a Where clause and I can't load from file anymore. (Grrhhh)

So if I load from a file it puts quotes around each entry and shows them in the Where condition edit box. Like below.  
'01817', '02369', '10834', '20235'  
If I do nothing else the where condition window will close and the values will be triple quoted.  
BUT if I choose the drop down to manually select the values after I have loaded the file, this strips the list of the quotes. If I can get the Where window to strip the quotes I can close it and the IN list is properly formatted with only surrounding single quotes.  
I have attached my input file to see if that helps you reproduce. [ttk\_List.txt](https://forums.toadworld.com/uploads/short-url/uokPzvdSxqrg3ztYdKVUTNbS3ao.txt) (26 Bytes)

Again, I am building this Query Builder file for others that are less proficient with SQL and applications so fixing this would be very important. 😀 Please confirm you can reproduce and there is a fixit ticket for this.
