Skip to main content

Hi,

I have problems upgrading a functionality to Cloud that worked in App8.

It is an On-Premise Cloud installation.

In App8 this value on the routing address:

%FILE_OUT%/%RECEIVER%/%MESSAGE_FUNCTION%_%GUID%.xml

had the desired effect of dynamically creating the directory named ’%RECEIVER%’ in ’%FILE_OUT%’ and the file was nicely put there.

 

But in Cloud, no matter how I try, I get this error message:

ExecutionException from Sender thread Caused by: ifs.fnd.connect.senders.ConnectSender$TemporaryFailureException: Error while sending data to file Caused by: jcifs.smb.SmbException: The filename, directory name, or volume label syntax is incorrect.

I have tried with slash, backslash,doubling it, did not help.


The value of RECEIVER is fine, if I use it like this:

%RECEIVER%_%MESSAGE_FUNCTION%_%GUID%.xml

I get a nice output file, so it is not about the op system user not having enough grants for the directory.

 

So the question is this:

Is it possible to have a routing address for File protocol which can route the file to a directory, based the substitution variables of the application message?

Using as many FILE_SENDERs as the different values of RECEIVER is not an option unfortunately.

I can comprise with not being able to create a new directory, only using it.

 

Thanks in advance.

Janos

Hi ​@jasahu 

 

In IFS cloud %FILE_OUT% is not supported in the output file for file sender.

Try using the syntax below to put a file in a folder set for receiver

/%RECEIVER%/%MESSAGE_FUNCTION%_%GUID%.xml

 

Note regarding %FILE_OUT% can be found in the documentation

Routing Rules and Addresses - Technical Documentation For IFS Cloud

 

Hope it helps!

Damith


Hi ​@jasahu 

 

In IFS cloud %FILE_OUT% is not supported in the output file for file sender.

Try using the syntax below to put a file in a folder set for receiver

/%RECEIVER%/%MESSAGE_FUNCTION%_%GUID%.xml

 

Note regarding %FILE_OUT% can be found in the documentation

Routing Rules and Addresses - Technical Documentation For IFS Cloud

 

Hope it helps!

Damith

Hi ​@dsj 

 

Thanks for reply.

Omitting FILE_OUT and using syntax above does not work either unfortunately, I still get this:
ExecutionException from Sender thread Caused by: ifs.fnd.connect.senders.ConnectSender$TemporaryFailureException: Error while sending data to file Caused by: jcifs.smb.SmbException: The system cannot find the path specified.

 

What else could we change to be able to put the file into a directory dynamically?


Hi ​@jasahu 

Do you have the folders matching for sender inside the OUT folder to place the files?

I remember the ‘old’ file reader creates the folder if it’s not present but worth checking.

 

In addition, seems the Out Directory in the file sender ends with a /. 

Therefore try without the starting /

 %RECEIVER%/%MESSAGE_FUNCTION%_%GUID%.xml


Hi ​@jasahu 

Do you have the folders matching for sender inside the OUT folder to place the files?

I remember the ‘old’ file reader creates the folder if it’s not present but worth checking.

 

In addition, seems the Out Directory in the file sender ends with a /. 

Therefore try without the starting /

 %RECEIVER%/%MESSAGE_FUNCTION%_%GUID%.xml

Ok, there is some improvement:

If I precreate the destination subdirectory AND turn on the ‘Write to Destination’ switch on FILE_READER1, it is working, meaning it can write to the precreated subdir, which is good news.

Now I am curious:

Is there any other setting that can make the automatic subdirectory creation possible?


Reply