Product and version: FileMaker Pro Advanced 18.104.22.1683 and FileMaker Pro Advanced 22.214.171.124
OS and version: Various Windows PC operating systems, and Windows Server 2012R2 Standard.
Description: After inserting a file into a container field via the Insert File script step, the file's parent directory cannot be modified until the user quits FileMaker. Windows displays a "Folder In Use" dialogue if the user attempts to modify the parent directory while FileMaker is still open. Searching for the directory's name within Resource Monitor's Associated Handles section reveals that FileMaker Pro Advanced.exe leaves a directory handle open after completing the Insert File script step.
How to replicate:
- Create a container field. Mine is configured to store data externally, though I'm not sure it matters.
- Put the container field on a layout. Create a button on the layout that performs the Insert File script step with the following options:
- Create a folder on your desktop. Place an image file in the folder.
- Insert the image file into the container field using the button you created in step two.
- With FileMaker still open, attempt to rename the folder on your desktop. You should receive a "Folder In Use" warning from Windows.
- Close FileMaker. You should now be able to rename the folder.
Workaround: Dragging and dropping a file into the container field allows the file's parent directory to be modified.