It looks like you need to use the Datasetscollection method LinkTerritories().
Methods for loading a dataset (for example, to create pie charts and shaded area maps) are a bit of a hairy area in the MapPoint API. With their many parameters, they are easily mistaken, and the error message received is less than useful - usually this is just a "bad parameter". So be careful!
source
share