7 Replies Latest reply on Mar 18, 2014 7:32 AM by philmodjunk

    Importing suddenly stopped working



      Importing suddenly stopped working


           I have been using a simple script to import one field from a csv file using a serial number as the matching field. This has worked fine for a couple of years and suddenly stopped working about a week ago. The importing dialogue box comes up but the import doesn't progress at all. The imported file is fine as it works with previously saved copies of my database. The script and fields are exactly the same and it also fails on a manual import. The only difference is I have added a number of additional fields to the database. I also tried the import manually using newly created fields to no avail.
           This has me stumped. Any ideas?

        • 1. Re: Importing suddenly stopped working

               What found set do you have at the time that your import your records? Is the matching field present in your found set? To be sure that this is the case, do a Show All Records before you import.

          • 2. Re: Importing suddenly stopped working

                 The first line of the script is Show All Records.

            • 3. Re: Importing suddenly stopped working

                   What version of FileMaker are you using?

                   There's a bug that can affect this in older versions when using a script, but the bug should not affect a manual import.

                   Since this works with backup copies, either there is some change to your file for which you are not aware or you file might be damaged in some way that is keeping the import from working.

                   You might try running a recover on this file, or recent back up copy of it to check for damage. The recover will also rebuild all your field indexes, so test the recovered copy even if the recover does not report fixing any problems.

                   If the recovered copy works and no problems were found by the recover, you can do a new recover, but specify "copy file blocks as is" and "rebuild indexes" in advanced recover options to only rebuild the indexes to see if that works.

              • 4. Re: Importing suddenly stopped working

                     I was actually running a recover while waiting for comments. It has finished but the problem persists in the recovered copy.

                     I ran another import script (for something else) and that works, so it isn't some over-riding setting preventing FM from importing.

                     Can fields somehow be locked against being updated?

                • 5. Re: Importing suddenly stopped working

                       It's possible, but would take a specific design change by the developer and you should get an error message telling you that.

                       What message pops up after the import? There should be one providing info about the import. What does it say? There might be a clue in there.

                  • 6. Re: Importing suddenly stopped working

                         I just found it is actually importing, but extremely slowly. The process usually takes about 30 seconds but this time it looks like it is going to take at least all night. What could slow it down so much?

                    • 7. Re: Importing suddenly stopped working

                           The number of records in the import file, the number of records in your found set, Imported data will update indexes and the larger your table gets, the longer it takes to update the index...

                           But the change from 30 seconds to "all night" is very extreme.