Troubleshooting CreateFolder function (5 replies)
Arline, the Create Directory function was never meant to work like this.
However, we will expand the functionality to incorporate the functionality.
Look out for an update mid next week.
Arline, actually we resolved this issue in a prior update.
You need to setup the File Task as follows:
- Source Directory - Leave empty.
- Source File - %[Record.SourceDirectory]\*.pdf
- Destination Directory - %[Record.TargetDirectory]
- Destination File - You cannot have expando fields in the destination file outside of FILENAME and FILEEXT. You could leave this blank.
Yes- I thought you had resolved this one. I'm still not seeing any files moving to the destination directory. Here's current config:
You missed a slash in the source file.
D'oh. Thanks!
Hi there,
We've upgraded IMAN to v 4.25, trying to solve for this issue : https://www.realisable.co.uk/how-do-i/move-file-issues-with-expando-fields-in-file-pat/
In a map transform prior to the File Task, I can see the destination file path is being created with the CreatFile function.
In the File Task, you can see how I configured the Source & Destination directories.
But when I refresh the preview, there are no results in the preview pane of the File Task- and I do see this error thrown in Errors.txt.
How do I get it to successfully interpret the Source & Destination directories?
2020-09-09 16:24:53:257 - System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Windows\system32\%Record.SourceDirectory'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
at Realisable.Data.Transform.TransformTaskFile.GenerateMatchingFiles(String srcPath, String srcFileName, String destPath)
at Realisable.Data.Transform.TransformTaskFile.ProcessFiles(Boolean copyFiles)
at Realisable.Data.Transform.TransformTaskFile.Process()
at Realisable.Data.Transform.TransformControllerInterop.Process()
Assembly Versions:
Product Update: Product Update 4
Config Version: 4.25
DB Version: 4.20