Handling exception thrown when creating auto data.