title: Microsoft Analysis Services Translations
body: <p>I have the following scenario:</p>
  
  <p>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.</p>
  
  <p>A sample code updating an attribute caption translation looks like this:</p>
  
  <pre><code>foreach (DimensionAttribute dimAttribute in dimension.Attributes)
  {
    dimAttribute.Translations.Add(1043, "Some caption") //language code
  }
  </code></pre>
  
  <p>However, the above code throws an "InvalidOperationException" -- "The item type Translation is not valid"</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks in advance</p>