Jump to content
BrentHedden

Creating a folder is giving an error in some cases

Recommended Posts

BrentHedden    11

I'm calling the script "Docubin - Add Folder ( Path ) " to create nested directories for file storage.  I call the script for each directory level, in this case three times for each file.  This works great except for one unknown reason, where is gives me 2 errors - 'Parameter missing (*)' and 'The parent directory does not exist'.  Sometimes it'll quit out of FileMaker altogether.  This is true whether I'm using OSX 10.12.4 or Windows 10.  It doesn't appear to be anything wrong with the folder names, like unusual or illegal characters.

The directory path that I pass with each script call is as such - 

/NIH G-ROP 12-009727/

/NIH G-ROP 12-009727/Financial/

/NIH G-ROP 12-009727/Financial/MDA/

 

It'll create the parent (1st) directory just fine, but then it'll throw the errors and write to the error table when trying to create the 2nd line.  This also happens with another example with a different parent name.  Again, I stripped out any illegal characters.

 

Share this post


Link to post
Share on other sites

Brent,

Could you please save a PDF of your script and either upload it here, or email it to me at michael@360works.com?

Thanks,

Michael

Share this post


Link to post
Share on other sites
BrentHedden    11
Posted (edited)

Here is the script that is relevant to the issue - 

590ca05c02875_ScreenShot2017-05-05at11_52_35AM.thumb.png.089c01023754c9bcf01a1dad2517ef4f.png

 

The mentioned variables have to following information in this case

$Path      /NIH G-ROP 12-009727 (1284)/

$Parent      Financial

gTempType      MDA

 

The only modification that was made to the Add Folder script in Docubin was the pause of 1 second, based on your previous solution to a different issue I posted here.  It does create the directory will the first $Path, but then it craps out after the one with the $Parent.

 

Edited by BrentHedden

Share this post


Link to post
Share on other sites

Brent,

I'm able to create subfolders without any trouble. Can you check for script result errors after call to DocuBin - Add Folder and let me know what happens?

Michael

Screen Shot 2017-05-11 at 3.24.07 PM.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×

Important Information

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