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.
Why does the GetObject call see this name as ambiguous?
Not very well versed with this but still...
Right now from Your problem statement, I assume you are trying below:
GetObject(String): Returns the value of the specified string resource.
Can you try below:
GetObject(String, StructureInfo) : Gets the value of the specified string resource localized for the specified structure.
The structures really are only just ordered lists, if an object appears in 2 or more structures it is the same object.
Check all the possible names ( Object name, Controller Name, Relative name, NLS name etc) are all unique.
Try creating another dummy object. Add it to 2 structures, test if you get the same error.
Try removing the object from one structure ( delete the "Structure aspect" to do this)
Try using system.GetObject with the objects GUID instead of its name.