0

I am getting the following error when using the URL Trigger Plugin:

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.ThrowHelper.ThrowKeyNotFoundException() at System.Collections.Generic.Dictionary2.get_Item(TKey key) at FogCreek.Plugins.URLTrigger.CFilter.VariableOperatorValue.Match(Dictionary2 dictValues) at FogCreek.Plugins.URLTrigger.URLTrigger.ProcessEvent(nTriggerType nTrigger, Object hooked)

I have URL hardcoded to not use any variable and it looks something like: http://somesite/api.ashx?id=123456

The filter is set to: ProjectName="Testing"

EDIT: Ok I found if I remove the filter, the error goes away. Not sure why the filter doesn't work as there is a project name of 'Testing'.

flag
This bug and its relatives have been fixed in URLTrigger 1.0.3, which is now live on the Plugin Repository. – Jude Allred Oct 29 2009 at 22:36

1 Answer

1

Good find! Looks like ProjectName isn't being made properly available. I've reproduced your problem locally and am working on a fix.

In the meantime, use ProjectID. If you go to Admin->Projects and mouse over the project name 'Testing', you'll see the url that appears in the status bar will have an ixProject=Some Number at the end of it. Whatever that number is, you can use that in the filter. E.g. if Testing is project 5, set your filter to ProjectID="5". This will be equivalent to ProjectName="Testing", except that it will work. ;-)

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.