index > Team Foundation Server - Work Item Tracking > Error TF50304 when creating project alert

Error TF50304 when creating project alert


In the released VS Team Explorer accessing the released TFS server, the project alert "My work item is changed by others" throws the error "TF50304: There is a syntax error in the subscription statement. Check the syntax." when clicking OK after selecting the alert and typing the email address. The other alerts can be set without error. How can I resolve this problem.




Michael J. O'Connell
Michael J. O.
It seems an error with the filter the alert uses, but it's strange it gives it, as it is predefined event from the product, maybe you changed your process template and the filter is referring to a work item field which doesn't exists in the new template?


Luis Fraile - MCSD.NET - http://luisfraile.spaces.live.com/
Luis Fraile

We have changed the temaplate. Would you be able to let me know what fields the filter is using? In the mean time we will see if we can locate the error.

Thanks




Michael J. O'Connell
Michael J. O.

I have validated the web config file and the template. I am a TFS and Windows administrator. Another admin is able to create the alert successfully. I get the error using the Team Foundation Client on both my client PC and on the server.

I am unable to restart the server at this time to see if it clears this up. What else do you recommend.

Thanks

Michael




Michael J. O'Connell
Michael J. O.

Let's see, first of all to check the filter the alert is using, you can just create the alert with the user is working, and check the subscription data in the database "TfsIntegration" in the table "tbl_subscription".

Second, with that, you can try to create the subscrition in the command line using bissubscribe.exe, with the same filter and user, to check if the problem is in the Visual Studio IDE, or in the user, Team Foundation or something else.

I think you should try this, as it seems pretty strange this problem




Luis Fraile - MCSD.NET - http://luisfraile.spaces.live.com/
Luis Fraile

The default work item subscription only uses system fields, System.AssignedTo and System.AuthorizedAs. Customizing the process template cannot remove them.

The AssignedTo value is based on your display name. Do you have any wierd characters in your display name that might be causing the parser to blow up?

Also, make sure that you didn't accidentally delete the schema of the WorkItemChanged event. The schema is used to parse the filter string (and the event), and it's located here:

..\Microsoft Team Foundation 2005\Web Services\Services\v1.0\Transforms




Sam Heald (MSFT)
Sam Heald

If I register for 'My work items are changed by others', I also get the error "TF50304: There is a syntax error in the subscription condition. Check the syntax."

What is the solution to this problem.




Frank O'Rourke
Frank ORourke

That's strange. Were you able to create a work item changed subscription previously? It may be a permission issue.

Pete Sheill MSFT

Is this something to do with the single quote character in my surname O'Rourke? If I look at another users registration in the tbl_subscriptions table it contains the following:

"PortfolioProject" = 'MyProjectName' AND ("CoreFields/StringFields/Field[ReferenceName='System.AssignedTo']/OldValue" = 'Surname, Firstname' OR "CoreFields/StringFields/Field[ReferenceName='System.AssignedTo']/NewValue" = 'Surname, Firstname') AND "CoreFields/StringFields/Field[ReferenceName='System.AuthorizedAs']/NewValue" <> 'Surname, Firstname'

If this is the case how do I get the server to work with my user name?




Frank O'Rourke
Frank ORourke
reply 9

You can use google to search for other answers

 

More Articles

how to query work items using wild cards
Start a task and assign worked time
Linked Work Items
Should Tasks map to other Work Items or be their own?
Setting "CreatedBy" field programatically
Work Item Tracking Transistions: Automatic Field Fills
Team Queries in Custom project template referencing iteration pat...
Publishing to TFS improperly changes Saved property of Project fi...
Another MS Project Integration Question
Print Work Item Per Page
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Emergency: Deleting Custom Work Item Type
webservice subscription: URL authorizati…
Localized web server instance not launch…
Team Projects sharing same Source Control
VSTS and Excel integration
Project field mapping questions
FROZEN rule behaviour
Customize the e-mail notification message
Work item type for new feature requests?
Cannot Open Microsoft Project
Estimate Extensibility
Customize Work Item to block few groups …
Publishing to TFS from Project 2003 rese…
Attach a note to a work item
Work Item Access control based on Work I…

Hot Articles

Making work items forms read-only for a …
has anybody created a conversion tool th…
Why there is no Date related fields when…
getting selected item
Using Microsoft Project with TFS Work It…
TF80070 after updating FieldMapping.xml …
Query using Contains Operator
Cannot Open Microsoft Project
Problem with Workitem access control - d…
End Date for Iterations
Office table Pivot
WorkItemStore null reference
Excel Plug-in for Office 12
TF80071 connecting MPP to Team project
Upload Bugs Database

Recommend Articles

Mapping of TFS text fields on MS Project…
TF54000: Cannot update data because the …
Work Item Add/Updates Not In Reports
Customizing Team Explorer
Automate "Add solution to Source co…
Problem mapping OutlineNumber
Witimport - Replace or add... or an easi…
Used witimport and now getting 'Item has…
How to allow to modify a field during sp…
Looking for RASK Requirements Authoring.…
Set permission to some specific group to…
Customize the e-mail notification message
Unhelpful witexport errors. What's actua…
Resource Names in Project empty
make Task Link tab as a required field