Author Topic: VB.Net Automation  (Read 1585 times)

Offline Matt_Heinrich

  • Associate
  • **
  • Join Date: Jul 2014
  • Posts: 1
  • Forum Citizenship: +0/-0
VB.Net Automation
« on: 11 Jul 2014 07:47:28 am »

I am working on an app that automatically apply security to cubes. So far I a have been able to create a custom view and attach it to the cube and save the model. But when I am try to generate categories I am running into a casting error.

Here is my code:

Dim datasource As DataSource = model.DataSources.Item(1)

Here is the error I receive:

Unable to cast COM object of type 'System.__ComObject' to interface type 'TransformerSDKLib.DataSource'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{DD2E91F2-C772-11D2-8B0C-0008C7B242DB}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

We are using Cognos 10.2 Transformer.

Has anyone seen this or know of a solution?

Matt H