File Adapter - special character in Filename
Hi,
i have a question concerning file adapter.
Scenario: we are polling files via file sender adapter (FTP).
Problem: if the filename contains a special character, an error is thrown with 'The System cannot find the file specified'
Scope: Special character in filename (not in payload)
Installed: XI 3.0 SP 19 on Linux
Questions:
- what FTP implementation does XI use?
- What do i have to check/upgrade to unicode?
- is it an OS problem or an Java problem or a XI problem?
- or is it not possible copiing files with special characters in filename?
Thank you very much in advance.
Michael
Hi Michael,
The file/FTP adapter supports both passive and active FTP data connection. You can select the data connection while configuring the adapter.
The file/FTP adapter follows specification RFC 959. The specification can be found on the Internet under www.ietf.org/rfc/rfc0959.txt.
For FAQs about the file/FTP adapter, see SAP Note 821267. Please note that you'll need an account to log in on service.sap.com.
Question: How are you specifiying the file name? i.e. Are you using placeholders, like ?, *, *.txt, etc ?
If there's a problem with the filenames, then it should be a problem in the JAVA implementation of the adapter I assume. So you could for instance build your own adapter extension to by-pass that problem.
Just for your information; I haven't encounter a problem with filenames in other projects.
Good luck!
Similar Messages
-
When I am uploading file with special character it gives error
Hi All,
I am uplloading one file with special character then it gives error. Please let me know solutions on this is soon as possible.
Thanks,
Madhavhi are you looking for the file to be transferred with the special character then declare it wil the char field...and send it..
or the special charactera are coming unnecessary use the command ............replace all occurances to avoid this.. -
Special Character in Filename script - how do I escape it.
Hello All. I'm attempting to call a file in sqlplus on a linux box. The file name has a special character.
ex: i$_my_script.sql
I've attempted to use
@i$_my_script.sql
@i\$_my_script.sql
@i\\$_my_script.sql
@"i$_my_script.sql"
@'i$_my_script.sql'
@'i\$_my_script.sql'
All to no avail. I could have sworn I'd called a similar file with $ in the filename before but now I can't get it to work. Preference would be to no have a special character in the filename ... but the file is coming in from a source I don't have control over. I could rename the file but the file resides in a source control system and I'd prefer not to have to rename it every time I want to compile it.
Thanks in advance.
edit<<Also as a note I can see the file in sqlplus by sending ls to the command line as follows:
SQL> ! ls i\$_my_script.sql
which returns
i$_my_script.sql
Edited by: Kennedy on Sep 6, 2011 1:25 PManother workaround for the same is use double slash \ \ before special character to avoid such issue
Regards,
CA
shockwave flash chrome
clear flash cookies
html blinking text
keyboard on screen -
File adapter: how to change filename
Hi all,
In my scenario I need to add specific time stamp (current date actually) to filename when it's copied to target system. In the properties of file adapter there is an option to add time stamp, but I need it to be in format YYMMDD.hhmm, while XI default suggests another one. How can I solve the problem? Use variable substitution or m.b. dynamic configuration? In addition want to say that there is no any mapping in the scenario.
Thank you.Hi Dmitriy,
pls do chk this links
An interesting usage of Variable Substitution in XI
Solution to the problem encountered using Variable Substitution with XI-SP12
The specified item was not found.
do g with dynamic configuration
Regrads
Sampath -
File Adapter: need to include filename in content being written
I want to use the file adapter to write a file, using the filename convention to generate part of the name dynamically.
However, I need to include the filename used for the output file in the actual content too.
Any ideas if this can be done?
Thanks
TobyAt a customer we implemented the file adapter to create a file based on a specic name for appending:
<assign name="AssignStaticFilename">
<copy>
<from expression="'Output.csv'"/>
<to variable="gFileAdapterOutboundHeader" part="outboundHeader" query="/ns2:OutboundFileHeaderType/ns2:fileName"/>
</copy>
</assign>
In de FileAdapter WSDL we set:
<jca:operation
LogicalDirectory="OutputDirectory"
InteractionSpec="oracle.tip.adapter.file.outbound.FileInteractionSpec"
FileNamingConvention="%SEQ%"
NumberMessages="1"
OpaqueSchema="false"
Append="true" >
</jca:operation>
Does this help you, based on a given input to set the filename and this variable to put it into the file? -
How to find and remove any special character in filename?
I have a files in various Windows Servers 2003 with a special character at his names, who are causing problem with backup software, i don´t know what character is because in explorer they are not shown and in command line they are shown only as interrogation
mark and for this, i don´t know how i will find and remove then.
Thanks.Hi,
I agree with Dave. We can try using
chkdsk utility to check the file system and file system metadata of a volume for logical and physical errors.
Regarding
chkdsk, the following article can be referred to for more information.
Chkdsk
http://technet.microsoft.com/en-us/library/cc730714.aspx
Best regards,
Frank Shen -
Hi All,
This perform statements then uploads the file from UNIX. Because of the special character in the file this program fails.
Please let me resulation as soon as possible .
Thanks,
MadhavHi
Good
Check the below sdn post on special character.
https://forums.sdn.sap.com/profile.jspa?userID=3649609
Thanks
mrutyun^ -
Upload file with special character in ECC 6.0?
Dear All,
Does anyone know that in ECC6.0 unicode environment, can we upload special character like
eg ¢, ©, É. It's ok in 4.6c version but not in ECC 6.0. Any idea ?
ThanksHI,
Try using
open dataset <DSN> for output in legacy text mode.
and also in transfer statement pass the actual structure rather than a flat structure, while executing transfer statement for legacy mode the field lengths are taken into consideration and there is no spill over of spaces to the next field
say if you have a structure:
data: begin of wa_output,
name(20),
email(30),
end of wa_output.
and a flat structure
data: w_out(50).
then in transfer statement use wa_output rather then w_out. -
File-adapter with Dynamic Directory/Filenames in Header-variables
Hi,
I have looked through the file-adapter documentation. And it says that you can use wildcards/regexpressions/dynamic file and directory names using the file-adapter-wizard. Also you can use the header-variables to specify the file and directory names at run-time.
Is it also possible to use the dynamic names using the header-variables?
I want to create a process that I can give in the file/directory-names at run-time and that it will look for a file using the wild-cards to pickup. Since at run-time I often do not know the name of the file, since it might contain a sequence or date/time-stamp. But I do know the location and the structure of the file name (that is specified at config-time).
The same question for outbound: if I specify a name in the header-variables with forexample '%seq%' in the name, like 'filename_%seq%.XML', will it then create the file with the sequence?
Thanks in advance.
Regards,
MartienHi,
I've been trhough this document over and over again, but did not find anything on how to do it actually. But I found out that the file-outbound-header wsdl does not contain a directory element after generation by the wizard. But you can add it afterwards.
Also you can replace the location attribute in the jca:address element of the adapter-wsdl by mcf properties (host, username, password) and override them by copying the values to the partnerlink using bpelx:properties.
I planned to put the details in my blog.
Regards,
Martien -
File adapter dynamic configuration - Multiple filenames
Hi
Can anyone explaing the following.
We are using the sender file adaper to pick up files from an ftp location. The dynamic config is used to store the filename.
We are getting 1 PI message per file, but the dynamic config in SXMB_MONI is sometimes showing multiple filenames for one message.
This makes it impossible to get the correct filename and do something usefull with it:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">xxxxxxxx1.PDF</SAP:Record>
<SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">xxxxxxxx2.PDF</SAP:Record>
<SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">xxxxxxxx3.PDF</SAP:Record>
</SAP:DynamicConfiguration>
Kind regards
Thierry BoeveHi.
Pls. Check the following SAP Note.
https://websmp230.sap-ag.de/sap%28bD1lcyZjPTAwMQ==%29/bc/bsp/spn/sapnotes/index2.htm?numm=1078455
It will be help you.
Regards -
File adapter error, because the filename contains "u00D1"
Hi,
I'm working in a spanish project, I've an interface FTP --> PI --> IDOC, my problem is because in spanish the letter "Ñ" is used and when there are one file in the folder with this letter the communication channel fails because the communication channel cann't read the file.
Any idea how to configure the communication channel to avoid this problem?
Thanks, in advance.
Jose Manuel@ Nabendu
Nabendu Sen wrote:
Create a Custom Adapter EJB which can remove this type of unwanted characters. You need to call this in the sequence before Call Adapter so that before XML parsing, this types of characters are removed.
"Ñ" is a valid letter in Spanish and I don't think removing it is a good option.
@ Jose
Check what encoding is being used? -
Deleting file with special character in name gets error -43
In my Trash folder there is a .html file with a name containing special characters (oriental) left over from when I uninstalled Adobe CS2. When I try to change the file name to delete the special characters so I can trash the file, I get error -43, and the name won't change. Therefore I can't get the file deleted from the computer because I can't get rid of the special characters.
Is there another way to accomplish the same thing?I presume you are referring to the notorious Vietnamese file. Others have had success getting rid of it wuth these instructions .
-
Error opening KM file with special character
I'm using the following code to get the url to an file stored in KM, but when some file has the ( or )character in the name, an error occurs saying that the file doesn't exist in KM. The file name look like this (CDU001-C010) Delegar WorkFlow.doc.gif.
IUriReference uriRef;
IURLGeneratorService ugs;
ugs = (IURLGeneratorService) ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.URLGENERATOR_SERVICE);
uriRef = ugs.getRelativeUri(PathKey.CONTENT_ACCESS_PATH).appendPath(resource.getRID().toExternalForm());
retorno = uriRef.toExternalForm();
thanks.231
-
Error opeing KM file with special character
I'm using the following code to get the url to an file stored in KM, but when some file has the [[ or ]]character in the name, an error occurs saying that the file doesn't exist in KM. The file name look like this [[CDU001-C010]] Delegar WorkFlow.doc.gif.
IUriReference uriRef;
IURLGeneratorService ugs;
ugs = (IURLGeneratorService) ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.URLGENERATOR_SERVICE);
uriRef = ugs.getRelativeUri(PathKey.CONTENT_ACCESS_PATH).appendPath(resource.getRID().toExternalForm());
retorno = uriRef.toExternalForm();
thanks.
Edited by: fabio saito on May 18, 2009 6:31 PM
Edited by: fabio saito on May 18, 2009 6:32 PM
Edited by: fabio saito on May 18, 2009 6:32 PM231
-
Problem reading csv file with special character
Hai all,
i have the following problem reading a csv file.
442050-Operations Tilburg algemeen Huis in t Veld, EAM (Lisette) Gebruikersaccount 461041 Peildatum: 4-5-2010 AA461041 1 85,92
when reading this line with FM GUI_UPLOAD this line is split up in two lines in data_tab of the FM,
it is split up at this character
Line 1
442050-Operations Tilburg algemeen Huis in
Line 2
t Veld, EAM (Lisette) Gebruikersaccount 461041 Peildatum: 4-5-2010 AA461041 1 85,92
Anyone have a idea how to get this in one line in my interbal table??
Greetz RichardHi Greetz Richard
Problably character contains same binary code as line feed + carriage return.
You can use statement below as workaround.
OPEN DATASET file FOR INPUT IN TEXT MODE ENCODING UNICODE
In this case your system must support Unicode encoding
Kind regards
Maybe you are looking for
-
My time machine back up drive is full and I need a bootable drive
I hope you can advise me I have a 1TB external drive which I am using to back up to with Time Machine. Apart from occasionally dismounting itself this is working fine. I am now considering upgrading to Lion and want to create a bootable copy of my sy
-
Looking for help converting a Flash 8 file (flv file) into a format compatible with QuickTime. I have used iSqunit to convert Flash 6 & 7 to a usable format, but iSquint doesn't convert Flash 8. Will Quicktime Pro convert? I would appreciate any help
-
Unidentified Flash Cookies App on Macbook Pro
My computer has been running a little slower than normal. I decided to run a "privacy scan" app which identified 5 installed applications on my computer. I did not recognize one called "flash cookies". I tried to find it on my computer and was unsucc
-
My mid 2010 MBP started running very slowly
Hey guys, I have had my MBP for a few years now and over the last few months my laptop has seen major decreases in speed. I have ran an EtreCheck so far and pasted it below for your reference of my diagnostics. Looking for some extra help on how to s
-
Interesting tidbit - I can drag any icon to the finder toolbar and plant it there for another way of instant access. Just hold down the command button then drag it off and poof.