>
> On Oct 22, 2009, at 9:00 AM, Jonathan Fletcher wrote:
>
>> A couple developer friends of mine have come across an interesting
>> failure in FMPA10. They have not tested it in FMP10 or any earlier
>> versions, but one might expect similar results.
>>
>> The issue arose when they needed to do an import. They did not want
>> to re-fire all the lookups and updates so they turned that off in
>> the import. Still, they needed to re-serialize the results, so they
>> ran a subsequent Replace step to do that, setting it to reset the
>> field's autoenter serial number key field.
>>
>> What they found was that the next serial number setting was NOT
>> reset until the replace was entirely done. Any records created by
>> other users during the time that the Replace was running ended up
>> with duplicate keys.
>>
>> Now, some of you may read this and say, "Well, DUH!"
>>
>> This is for the rest on the list that don't think this is so obvious.
>>
>> You cannot rely on this technique in a multi-user environment. You
>> need to find a different way--lock the table during the Replace,
>> trap for new records, use only UUIDs, or something--besides relying
>> on FMP to take care of it for you.
>>
>> It won't.
>
> Hi Jonathan:
>
> Or, you can simply include the lookups and auto-enter fields in the
> import order and line them up with empty columns from the source.
> Then leave the Serial Number field out of the import order, and
> check the box to perform auto-updates on import. Only fields
> OUTSIDE the import order get their auto-updates executed. For those
> fields inside the import order, the imported data wins (even if it's
> empty).
>
> regards,
> Darren
>
> ******************************
> Darren Terry
[hidden email]
> Pacific Data Management, Inc.
http://www.pdm-inc.com/> 111 W. St. John St. Phone: (408) 283-5900 x303
> Suite 404 Fax: (408) 283-5903
> San Jose, CA 95113
> ***** FileMaker 10 Certified Developer *****
>
> _______________________________________________
> FMPexperts mailing list
>
[hidden email]
>
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au