Problems with dynamicDataset

Original question was answered and solved. If anyone has a similar issue please open a new thread and post the code you are using. Closing to avoid bumps.