0 Replies Latest reply on Apr 27, 2012 9:14 AM by SteveSt-Laurent_1

    Scripted container field export fails with external container storage

    SteveSt-Laurent_1

      Summary

      Scripted container field export fails with external container storage

      Product

      FileMaker Pro

      Version

      12

      Operating system version

      OS X 10.6.8

      Description of the issue

      Files in externally stored container fields export properly with right-click export but fail with a scripted export. Unknown error 20403.

      Steps to reproduce the problem

      Set up a container field with external storage, using the default external storage location. In my case the file is hosted with FMS 12. Set the external storage to either open or secure.

      Export field contents, first by right-click menu choice.

      Then export via a script.

      Expected result

      I expect a field export in both cases.

      Actual result

      Right-click export works. Scripted one doesn't.

      Here's the script:

      If [ IsEmpty ( Documents::Document) ]
      Exit Script [ ]
      Else
      Enter Browse Mode
      Set Variable [ $$document; Value:Let ( [ MAC = "filemac:" & Get ( TemporaryPath ); PC = "filewin:" & Get ( TemporaryPath ) ] ; Case(Abs(Get ( SystemPlatform )) = 1; MAC; Abs(Get ( SystemPlatform ))= 2 ; PC ) & Documents::File Name) ]
      Set Field [ Documents::LastDocumentPath; $$document ]
      Go to Field [ Documents::Document ] [ Select/perform ]
      Export Field Contents [ Documents::Document; “$$document”; Automatically open ]
      End If

      You can change this to DocumentPath or whatever, it makes no difference.

      Exact text of any error message(s) that appear

      Unknown error 20403