If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

VB.Net Automation

Started by Matt_Heinrich, 11 Jul 2014 07:47:28 AM

Previous topic - Next topic

Matt_Heinrich

Hello,

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?

Thanks,
Matt H