Mikko,<br><br>You can do it by looking at the DataBase. Try some SQL that looks something like this:<br><br>select *<br>from ATTRIBUTES<br>where Name = 'SavedSearch'<br> and ObjectType = 'RT::Group';<br><br>
Then find the one that matches your saved search and the ObjectId will be the same as the Group ID. Look up the Group name by using that Group Id. Then you can go into RT, join that group, load/delete that search.<br><br>
Hope this helps.<br><br>Kenn<br>LBNL<br><br><div class="gmail_quote">On Sat, Apr 16, 2011 at 5:18 AM, Mikko Lehto <span dir="ltr"><<a href="mailto:mikko.lehto@setera.fi">mikko.lehto@setera.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi<br>
<br>
I recently managed to somehow create a saved search which contained<br>
invalid ticketSQL query. We are using RT 3.6.7.<br>
<br>
<br>
When the search was loaded, I was directed to advanced tab with message:<br>
"Error near <QUERY> I'm lost"<br>
<br>
When I correct the query, I am not able to save it with the same name<br>
as the Query Builder view does not contain the name of my search which<br>
I just loaded (when caming back from advanced tab with "Apply").<br>
Therefore deleting is also impossible from the web interface as I am immediately<br>
thrown to advanced tab after loading the search.<br>
<br>
I don't know how to reproduce this, it is possible that I changed userid<br>
in other browser tab while building the query.<br>
<br>
<br>
I didn't find quickly whether this is know issue or maybe fixed in some version,<br>
so I decided to delete the search from database and update wiki:<br>
<a href="http://requesttracker.wikia.com/wiki/RepairSearches#You_screwed_your_Saved_Search" target="_blank">http://requesttracker.wikia.com/wiki/RepairSearches#You_screwed_your_Saved_Search</a><br>
<br>
--<br>
<font color="#888888">Mikko<br>
</font></blockquote></div><br>