Error refreshing queries - "Changes ...have caused the underlying query to be modified"

Last post 03-28-2007, 2:56 PM by JBuys. 5 replies.
Sort Posts: Previous Next
  •  03-27-2007, 12:06 PM 123

    Error refreshing queries - "Changes ...have caused the underlying query to be modified"

    I recently modified some Team Queries using Team Explorer. When users attempt to refresh the queries, they see the following error message:
    ---------------------------
    Changes you have made in this view have caused the underlying query to be modified. Would you like to save the changes to the query?
    ---------------------------

    If the user chooses "No," it appears the query is refreshed successfully. If the user chooses "Yes," they see an error message such as the following:
    ---------------------------
    Message: The given key was not present in the dictionary.
    Source: mscorlib
    StackTrace:    at System.ThrowHelper.ThrowKeyNotFoundException()
       at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
       at c.a(List`1 A_0, List`1 A_1, List`1 A_2)
       at c.a(TLQueryFolder2 A_0)
       at TeamlookPro.TLExplorerWrapper.m()
    MethodName: ThrowKeyNotFoundException
    ---------------------------
     
    Any ideas on how to fix this?


     
  •  03-27-2007, 12:59 PM 124 in reply to 123

    Re: Error refreshing queries - "Changes ...have caused the underlying query to be modified"

    Rick,

    Thanks for the feedback on this issue.  We are trying to repro this internally but are having problems.  Which version of the following applications are you using: TeamLook, Outlook, and Windows?

    Are you closing Outlook before you see this problem?  Or does the problem show up when users just click Refresh after they have been connected to TFS (via TeamLook)?

    We look forward to helping you solve this problem!

    Cheers,
    ~Joe

  •  03-27-2007, 4:51 PM 125 in reply to 124

    Re: Error refreshing queries - "Changes ...have caused the underlying query to be modified"

    Thanks for the quick reply, Joe.

    I'm using v 1.5.11.105 with Windows XP SP2 and MS Office Professional 2003.

    Another user reported the problem to me, and I was able to reproduce it. I can't confirm which versions of TeamLook/Office/Windows she is using, but her setup should be the same as mine as other user installs are done by our help desk.

    The problem occurs when a user clicks on a query in the Outlook folder tree, and also when the refresh button is clicked when a query is already displayed.

    In the past, I've created Team Queries for our users via the TeamLook Query Manager, and have not run into this problem. To create these particular Team Queries, however, I work a little differently... I used Team Explorer to create one of the queries, then copied/pasted/renamed that query to create another (i.e. with the same columns but with different query criteria). I created nine Team Queries in this fashion yesterday, and they all exhibit this behavior. But I also modified a couple of existing Team Queries and see this behavior in those as well...

    Interestingly, I tried to remove that particular team project from TeamLook with the hope the problem would go away once I added the team project again. But that resulted in my losing the entire TeamLook toolbar and drop-down menu, and rendered TeamLook unusable (even after closing and reopening Outlook). I had to uninstall/reinstall TeamLook to get the toolbar and drop-down menu back, and the query problem still exists.

    Is there any other info I can gather to help troubleshoot this? Thx, Rick

  •  03-27-2007, 4:59 PM 126 in reply to 124

    Re: Error refreshing queries - "Changes ...have caused the underlying query to be modified"

    Joe, one other note about the behavior of this problem... that error message also is displayed when a user clicks on their Inbox in the Outlook folder tree, but only if the user clicks directly from one of the offending Team Queries to their Inbox. In other words, first I click on a Team Query (and get the error message), then I click on my Inbox (and get the error message again).

    The error message is not displayed on subsequent clicks of my Inbox, nor is it displayed if I have first looked at any other query that does not generate this error message, then click on my Inbox...

  •  03-28-2007, 2:49 PM 133 in reply to 124

    Re: Error refreshing queries - "Changes ...have caused the underlying query to be modified"

    Joe -

    I might have isolated the problem. We added a field called "Sub-State" to the Bug work item in our process template. When that field is included in the list of columns returned by a query, we see this error. When I remove that field from the column list, no error.

    This error occurs only when using TeamLook. It does not occur when running these same queries from Team Explorer.

    Is it possible the hyphen in the field name "Sub-State" could be the source of the problem?

    Thx,

    Rick

  •  03-28-2007, 2:56 PM 134 in reply to 133

    Re: Error refreshing queries - "Changes ...have caused the underlying query to be modified"

    Rick,

    Thanks for the continued updates.  This may in fact help us narrow down the problem.  Just out of curiosity, do you have TFS SP1 client installed on your machines?  And if so, are you able to see this customized field in the Work Item Viewer (you can open a specific bug by using the 'Go To WorkItem...' option from the TeamLook menu). 

    There is a known issue that we are working on a fix for regarding customized fields in the Work Item Form (it requires TFS SP1 to use).

    I will keep you posted regarding our ability to repro this bug.

    Cheers,
    ~Joe

View as RSS news feed in XML
Welcome!   Sign in | Join | Help