Missing messages from api.

Give correct error message for data set creation fail.

Towards #1541