After a command object has been used to create a dataset, it is not possible to modify the command specification and create another dataset by using the same command object unless the original dataset and associated rowsets (the axes rowsets, the range rowset, and the flattened rowset) are closed.
If the application wants to operate on the dataset to create a new dataset, it has to either close the original dataset before reusing the command or it has to create a new command object.