Catch errors making 2d datasets