Apple events error: "Create failed. Invalid data was supplied" (-17007)
This error occurs if the user tries to create records with initial data that fails validation or access privileges checks. As a result of this failure, the new record will be deleted.
Note about serial numbers  If the record is set to auto-enter serial numbers On creation, the serial number increments as each record is created, but is not decremented at the time the records are deleted. This problem is avoided if serial numbers are set to be generated On commit, as serial numbers will begin from the last committed record. See Defining automatic data entry.