What is this number? Is that based on the current state of your local auto-increment counters? Usually I create a record, maybe savepoint it and than look at the id it assigned to the record.