开发者

Microsoft Analysis Services Translations

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜