cancel
Showing results for 
Search instead for 
Did you mean: 

Automation error while using GetHierarchy

Former Member
0 Kudos

Hi

I have a hierarchical table name "Organization" in my MDM repository. I am using the following VB code to get the hierarchy. The system gives me "Automation error" (cat object is successfully initialized)

Dim oNode As TreeNode

oNode = cat.GetHierarchy("Organization")

The code works only with Taxonomy tables. I've tried GetBranchFromNode and GetResultTree methods but all of them give me "Automation error" with my hierarchical table. They work fine with Taxonomy tables. Please help me how can have the tree structure of my hierarchy table.

I am using MDM 5.5 SP4 Patch01.

Thanks & Regards,

Yasir Rizwan Saqib

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Sorry the code i'm using is:

Dim oNode As TreeNode

Set oNode = cat.GetHierarchy("Organization")

Please provide your views on the problem.

Regards,

Yasir Rizwan Saqib

Former Member
0 Kudos

I've added some error handling code also. The description in the error object says that the table i want to access doesnot exist! It works fine with Taxonomy tables but somehow it doesnot see my hierarchy tables.

-yasir

Former Member
0 Kudos

well ... its like answering myself

the code given to a table is used to identify it. Use the code instead the name in API calls and it works. I now find it handy to have the same code as the name of the table. It is decieving that API documentation asks for table name as the argument when what they really need is the code.

-yasir