I have the following scenario:
From .NET (v3.5, c#) I connect to an OLAP Cube using the Microsoft.AnalysisServices namespace and objects in order to manage dinamycally the translations of dimensions, measures, attributes,etc.
A sample code updating an attribute caption translation looks like this:
fo开发者_JS百科reach (DimensionAttribute dimAttribute in dimension.Attributes)
{
dimAttribute.Translations.Add(1043, "Some caption") //language code
}
However, the above code throws an "InvalidOperationException" -- "The item type Translation is not valid"
Any ideas?
Thanks in advance
Irrelevant ... the code throwing the exception was elsewhere
精彩评论