Hi,
restQuery returns data simplified to:
<FundDetail>
<TFN>
.....
<PhysicalAddress>
<AddressLine1>
<AddressLine1>
</PhysicalAddress>
</FundDetail>
The plan was to run restQuery several times with results variations to populate both the tree ( library .add "results", "FundDetail") and the branches (library .add "results", "FundDetail.PhysicalAddress").
However, in Excel 2010 this results in a VBA message: Run-time error "457". This key is already associated with an element of this collection.
I guess that this is due to having the same Request URL as all other parameters except user and password differ.
Even after deleting every component added to run .add "results", "FundDetail.PhysicalAddress", the message persists and now makes the original macro fail. Restarting Excel does not work. A complete system reboot is coming up next.
(Q1) is this due to using the library and should I construct the queries without using the library?
(Q2) is there a way to avoid the failure with some elegant coding?