• Error when deleting alerts with double quotes

    By Ulrich Krause 2 decades ago

    Assume you have the following alert as described in the Google alert FAQ



    "Max Mustermann" -site:twitter.com



    When you try to delete this alert from the iwatch weg GUI, you receive the following error message.



    Exception

    Error while executing JavaScript action expression

    Script interpreter error, line=4, col=49: [TypeError] Exception occurred calling method NotesDatabase.search(string, null, number) null



    JavaScript code



    1: var tempDoc:NotesDocument = requestsVar.getDocument();

    2: var tempSearch = tempDoc.getItemValueString("geSearchterm");

    3:

    4: var itemColl:NotesDocumentCollection = database.search('form="frmNews" & niCategory="'+ tempSearch +'"',null,0)

    5: itemColl.removeAll(true);

    6:

    7: var memoColl:NotesDocumentCollection = database.search('form="Memo" & @Contains(subject;"'+ tempSearch +'")',null,0)

    8: memoColl.removeAll(true);

    9:

    10: try {

    11: var googleURL:java.net.URL = new java.net.URL(tempDoc.getItemValueString("geURLRemove"));

    12:

    13: var urlConn:java.net.HttpURLConnection = googleURL.openConnection();

    14: urlConn.setDoInput (true);

    15: urlConn.setDoO



    To workaround this, you have to delete the alert manually from the "Verification - processed" view and in your Google alert list.