Reporting Services - can't group by a column called "LanguageId"

Posted by marc_s on Stack Overflow See other posts from Stack Overflow or by marc_s
Published on 2010-06-01T20:40:51Z Indexed on 2010/06/01 20:43 UTC
Read the original article Hit count: 286

Folks,

I have a really odd behavior here: I have a SQL Server 2008 Reporting Services report which gets grouped and sorted dynamically. One of the column in my data set which I display is called LanguageId and I was trying to get a grouping going by this LanguageId field. I checked, double-checked and triple-checked the data being returned - it does contain my expected values for LanguageId and everything seems fine and dandy.

It just never worked - I didn't get the expected groups, I got things like a specific node actually changing its display value from one ID to another when expanding its subitems, and other really whacky stuff.

I discovered that grouping and sorting by LanguageCaption works just fine. It also started working fine after I renamed LanguageId to MyLanguageId.

So where on earth is this documented that LanguageId appears to be a system variable / reserved word / keyword of some sort in SQL Server Reporting Services that must be avoided at all costs?? I can't seem to find anything on that topic - even Mr. Google and Mrs. Bing came up empty so far....

© Stack Overflow or respective owner

Related posts about sql-server-2008

Related posts about reporting-services