Insert primary dataset before inserting dataset.