1 Reply Latest reply on Jul 16, 2013 8:13 AM by philmodjunk

    FM12 conversion messes up import script step

    miltenb_1

      Title

      FM12 conversion messes up import script step

      Post

           I had this script in a fp7-file.

           set variable [$file; Get (FileName)]

           import file: $file

           etc.

            

           After converting to FM12 format, the script stopped working. Luckily, we have multiple backups. 

           Any tips on preventing these things ?

            

        • 1. Re: FM12 conversion messes up import script step
          philmodjunk

               I just ran a quick check on a file that I have open with fileMaker 11 and another that I have open with FileMaker 12. Get  (FileName) returned identical results with both files--it returned the name of the file without the name of the file extension.

               Thus, the issue does not appear to be with Get ( FileName )

               Is the file from which you are importing data located in the same folder as the FMP 12 copy of your database? (From what little you have posted here, it looks like you are relying on FileMaker's relative path feature to find the file from which your script will import the data.)

               If you changed your calculation to Get ( FileName ) & ".fmp12", does your script work?