Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

"Container Fields cannot be exported" Error Message

Featured Replies

This is driving me nuts. I've used it in so many solutions before...

Set Variable [$FilePath; Get(DesktopPath) & GetAsText(Container)]

Export Field Contents [Container; $FilePath]

I checked the variable, and here's what it contains: /Macintosh HD/Users/michael/Desktop/About Stacks.pdf, yet the script returns "Container Fields cannot be exported."

Does anyone have experience with this? Previous posts I found on the subject were not helpful...

It seems to me that getastext (container) would never work (as that gives you the path to a referenced container).

If you want to export a container, it must be embedded first, not referenced.

Then, $FilePath; Get (Desktoppath) & "filename.ext"

will work. How you define your filename is up to you.

Edited by Guest

  • Author

Based on your recommendation, I've tried the following approaches:

- Calc field ("Cont_text", result as text) pointing to the container field used in file path variable, such as:

Set Variable [$FilePath; Get(DesktopPath) & Cont_text)]

Export Field Contents [Container; $FilePath]

- Creating a variable first ("$filename) with the file name retrieved from the container field, such as:

Set Variable [$FileName; Container]

Set Variable [$FilePath; Get(DesktopPath) & $FileName]

Export Field Contents [Container; $FilePath]

Neither of which worked. Same result, container can't be exported. Am I interpreting your suggestion correctly?

Thanks!!

Edited by Guest

Upload a simple example file to show us what you're trying to do.

  • Author

Sometimes I'm BLIND... I was pointing to a container field in an other table. Of course that didn't work. A more refined error message would be nice though, FileMaker. :-)

Sorry to have bothered all of you about this!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.