emit an error in case data or data.clock aren't defined