on 09-21-2007 2:16 PM
Another question for the Guru's
I have a requirement to <b>write</b> a file to the ftp server to directories like:
/dir1/subdir1/out
/dir1/subdir2/out
I can currently use a variable like %var% which I read from the xml payload to determine which directory to write to.
This works: /dir1/<i>%var%</i>/out, assuming that the subdirectory is already created.
The issue that I have is that if the directory does not exist, it will not create it and the related subdirectories based on the variable. I have tried passing in the name of the entire directory and subdirectory path with the same result.
Does XI only create a single directory with the 'create directory' and must that directory be specified at the end of your target path string like
/dir1/<i>%var%</i>
Thanks in advance.
We changed the OS structure to avoid this issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Probably your FTP user doesn't have authorization to create new folders.
Check that in FTP configuration.
Regards,
Henrique.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If I specify the variable name at the end of the directory path it works fine, but when there are additional subdirectories to create, it will not work
var1 = messagetype
If I do
works = /dir1/ALEAUDIT/file
works = /dir1/%var1%/file (this will create the directory and put the file in)
works = /dir1/ALEAUDIT/subdir/file
does not work = /dir1/%var1%/subdir/file (this will NOT create the directory and subdirectory)
I have tried making var1 = messagetype/subdir/ with the same results. When I did this I also checked the security checkbox to allow the /'s.
> works = /dir1/ALEAUDIT/file
> works = /dir1/%var1%/file (this will create the
> directory and put the file in)
>
> works = /dir1/ALEAUDIT/subdir/file
> does not work = /dir1/%var1%/subdir/file (this will
> NOT create the directory and subdirectory)
If that's really the case, it sounds like a bug.
Raise an OSS message.
Regards,
Henrique.
Hy, Michael
Yes, XI only create a single directory with the create directory.
You can solve this problem
Changing the user connection profile, assigning the default directory as you need
Or you can execute an operating system command before message processing, which creates your directory
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Marowski,
I havenot tried this. But I think it should be feasible. Give a try by checking the Create target directory check box. Also request your basis guys to give full permissions on the drive. Sometimes you might not have permissions to create. Also see adapter monitoring for any errors. Once when you check all this then give a shot.
Also please update here what happened.
Regards,
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check this below thread:
https://forums.sdn.sap.com/click.jspa?searchID=5414844&messageID=3173158
Regards,
Sreenivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.