AnsweredAssumed Answered

File Insert with Variable for File Name

Question asked by kayakjunkie on May 21, 2012
Latest reply on May 21, 2012 by philmodjunk


File Insert with Variable for File Name


I thought I had this figured out.  I'm looping through a found set of file names, inserting the files into a container field with external open storage.

The first time through the loop, the file is inserted correctly.  The second time through the loop, I'm presented with a dialog where I'm supposed to select the file to be inserted.

The variables are correct for the second loop.  The file insert setting are identical.  In fact the setting for the first loop were copied for all other loops with only the target field being changed.

When I select a file through the dialog, it is inserted correctly.  The problem is the dialog coming up even though the Dialog Options check box on the Insert File script step is left unchecked.

The second screenshot shows that the loop is working correctly, these values are after I have had to select the import file from the dialog.  However, note that the $InsertFile variable and $c2 counter has changed to the second found set.  In both cases the Specify File setting is File:&$InsertFile.