Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3116

Java mapping Dynamic directory getting error as K:\Staging\LandingArea\2016\/ does not exists

$
0
0

Hi Experts,

 

I am on PI 7.31 single stack file to SFTP scenario.

 

I made the java code to dynamically create the target directory path based on the file name.

 

The target directory will be E:\Staging\LandingArea\2016\

 

Code logic:

 

String targetDir= "E:\\Staging\\LandingArea";

 

filename = filename.substring(9,13);

  subDir = filename;

 

targetDir = targetDir + "\\" + subDir + "\\";


in receiver channel I am getting error as "Message processing failed. Cause: javax.resource.ResourceException: java.lang.Exception: K:\Staging\LandingArea\2016\/ does not exists.


extra "/ " is adding at the end.


Can you please help me to resolve the issue.


Thanks,

Akhila.A




Viewing all articles
Browse latest Browse all 3116

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>