Question details

GetObject ambiguous error

When I try to do a System.GetObject by name for a unique object that is located in 2 different structures, I get a E_AFW_SNS_QUERY_RESULTS_AMBIGUOUS_OBJECT error. But the find tool has no problem and only returns one.

Rob,
I tried those tests before posting the original question. It is a single object, referenced in the control and functional structure and the name aspect shows it is unique. You are correct it shouldn't. The reason I am doing this is a customer add-on to BDM to get the ObjectID so they can quickly populate a 3rd party OPC client.

Hmm, OK well thats a problem I guess :)
Any third party OPC DA and HDA clients should be able to use the object name directly (as long as it is unique of course ) however, if you need the GUID then it seems you need to test for the ambiguous object error and retry the call with a structure. I agree this is not an ideal solution.