Error code 9 - message "cannot add unique field to non-empty collection"
Explanation:
Unique fields can only be created for empty collections which ensures every record then created will contain the necessary unique value.
This error is thrown when attempting to create a unique field for a collection that already contains data.