Jason,

A procedure has been explicitly described by Ilyse Kazar on FMExperts in a thread
"Transactional Commit in FMP [HERE'S A GOOD BUG]" recently:

OK, here's another heads up, a bug that will affect attempts to completely revert entry of new records via a portal from an uncommitted Parent record. The bug messes not only with relational integrity but also causes completely repeatable index corruption (at least when working standalone).

Try this with a file on your local computer:

1. Create a simple file with Parent-<Child, allow creation, cascade delete. (Serial PK's upon record creation of course.)

2. Draw a portal from Parent to Child. Turn auto-save off for the layout (just in case you click on the background). Put a button on the portal row configured to call the Delete Portal Row command.

3. Create a new parent record. Without committing it, enter some rows in the portal. Now delete one or two portal rows (i.e., with the whole shebang still uncommitted).

4. Revert the parent record. Check the child table. What do you see? Perhaps most interesting: navigate to the last record in Child and check out the x of y count in the status area.
,,,



Winfried
www.fmdiff.com


On 29.01.2008, at 22:59, Jason L DeLooze wrote:

Winfried,

Do you have a definitive procedure which creates this dangling index entry? I'd like to see the bug myself.

Best wishes,
Jason L. DeLooze
Annapolis, MD  USA


On 1/29/08 at 10:45 PM +0100, Winfried Huslik wrote:
Sue,

A question mark in all fields means that record does not exist (new in FM9)!

You only see this after performing a Find or a GTRR, never when showing all records. If you try to delete that record, chances are you delete a "good one" instead.

This behavior is induced by a dangling index entry (an entry pointing to a non-existent record).

The cause for such an entry is a programming flaw in FileMaker. The index is created even for a record that has not (yet) been committed. If that record is never committed but deleted again, the index is NOT removed.

To avoid such a situation, script the creation of records and include a commit. Deleting that record later will also remove the index entries for that record.

To correct the existing index, switch indexing for that field/key off. Close and reopen the file and switch indexing back on. Check whether calculations depending in that field have to be indexed as well and switch on their index options if required.


Winfried
www.fmdiff.com

Reply via email to