开发者

Microsoft Analysis Services Translations

开发者 https://www.devze.com 2023-01-21 20:28 出处:网络
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,

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

精彩评论

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