Hey Annie
Are you sure you have the correct permissions setup on the Data Collection? This sometimes mess things and errors up a bit. And also check that you have the correct records in both live and sandbox so you know that the code itself have the same records to work with.
Then come back to me.
#datacollection #sandbox