Cause: You attempted to create new detail records without first creating a master record.
Action: Create a master record, and then add the detail records.