Checking correct type of data unit when creating mapping. #1082