Back to forum list… Back to How Do I?...

Troubleshooting CreateFolder function (5 replies)

Arline Welty
4 years ago
Arline Welty 4 years ago

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:

Realisable.IManWebUI.DLL 4.2.0.0

Product Update: Product Update 4

Config Version: 4.25

DB Version: 4.20

https://www.realisable.co.uk/wp-content/uploads/2020/09/Previews.png
Support
4 years ago
Support 4 years ago

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.

Support
4 years ago
Support 4 years ago

Arline, actually we resolved this issue in a prior update.

You need to setup the File Task as follows:

  1. Source Directory - Leave empty.
  2. Source File - %[Record.SourceDirectory]\*.pdf
  3. Destination Directory - %[Record.TargetDirectory]
  4. Destination File - You cannot have expando fields in the destination file outside of FILENAME and FILEEXT. You could leave this blank.
Arline Welty
4 years ago
Arline Welty 4 years ago

Yes- I thought you had resolved this one. I'm still not seeing any files moving to the destination directory. Here's current config:

 

https://www.realisable.co.uk/wp-content/uploads/2020/09/MoveFile.png
Support
4 years ago
Support 4 years ago

You missed a slash in the source file.

Arline Welty
4 years ago
Arline Welty 4 years ago

D'oh. Thanks!

Contact

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Request Demo

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Access Downloads

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close