Sender file channel with name as *.xml

Hi All.
I have a file to file scenario from a ftp server.
When the name of the file is abc.xml in the communicaiton channel the scenario works fine, but as soon as I change it to
a*.xml I get the error as below
The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 520 Unexpected reply codeControl connection prematurely closed by server'. For details, contact your FTP server vendor.
Edited by: Ravindra Teja on Aug 8, 2011 9:43 AM

There's no bug for this functionality.
I've use it in many cases.
Probably there's some issue in FTP connection, try to test command directly from your PI system, like follow:
FTP <hostname>
(user&password)
cd <directory>
ls *.xml
mget <filename>
Check if it work.

Similar Messages

  • .csv file Vs .txt file Content conversion sender file channel

    Hi Experts,
                     I have a file with filename say input.csv.I want to do content conversion for these .CSV file.Is it same like we have to do for .txt file say input.txt.
    when i open my .csv file in notepad, i get multiple rows with each field separated by ';'.what are the content conversion parameters we have to define for .csv file and can we mention input.csv as the file name as a source file name.
    Thanks
    Deepak

    Hi,
    Use the following parameters for Sender file channel in case of reading .csv file
    Recordset Structure.fieldSeparator -
    Recordset Structure.endSeparator -
    'nl'
    Recordset Structure.fieldNames -
    provide field names separated with ,
    Regards
    Seshagiri

  • Error in Sender File Channel

    Dear all,
    I'm trying to execute a File to File scenario.But I'm getting this error in the sender file channel.
    "Putting message into send queue failed, due to: com.sap.aii.af.ra.ms.api.DuplicateMessageException: Message ID a0ff7230-8793-11dc-a4d5-001558e4827d(OUTBOUND) already exists in database: com.sap.sql.DuplicateKeyException: NWMssSQLServer JDBC DriverSQLServerViolation of PRIMARY KEY constraint 'PK__XI_AF_MSG__2B090089'. Cannot insert duplicate key in object 'dbo.XI_AF_MSG'.."
    The file is not getting picked, the processing mode is set to "Delete". Please help me out in resolving it.
    Any hep would be rewarded.
    Regards,
    Younus

    Hi,
    Check whether you have given the filename to other communication channel as well. Because it seems to execute another interface where you have a JDBC been used.
    If so change the file name in CC and in your file and check it once again.
    Regards,
    Nithiyanandam

  • Sender file channel in DLNG mode when ICO used

    Hello All,
    I am working on SAP PI 7.4 version Dual stack installation.
    As part of Inbound Interface development, Operation mapping has been included in Integrated Configuration Object (ICO). But when tried to execute the Interface the sender File communication channel always into Delivering mode DLNG and it never went to DLVD mode while reading input file.
    Hence I have followed the traditional approach of by creating all configuration objects RD,ID,SA,RA in place of ICO. Now the communication channel is able to read the input file successfully.
    Can any one please tell me the reason behind this issue
    Note : There were no changes/corrections made to the sender file channel.
    Thnx&Regards,
    Moorthy

    Hi naresh,
    Check the communication channel montiring tab ,give the channel name and see whether able to ping the destination and down you can see logs as well.
    Regards,
    Loordh.

  • Sender File Adapter with file conversion

    Hi guys,
    I’m using a Sender File adapter with file conversion. The message to be processed has a structure with fixed lengths and in your content are some values that needs to be ignored.
    An example:
    value1  <b>value2</b>  value3…
    I want to ignore <b>value 2</b> but I can’t find a parameter for that! Do I need to define dummy fields on my data type and ignore those fields during mapping? Or there is a specific parameter for that?
    Thanks in advance,
    Ricardo.

    hi,
    there always is another way:)
    you can import the whole line to one field
    and cut it inside the adapter module
    (then you can define start and stop of the substring that you need to use)
    but of course it's not standard even though it's quite easy to achieve in java
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Multiple Archive directories in Sender file channel

    Hi Experts,
    My requirment is to have multipple archive direcotories in Sender file channel.
    We have multiple source dirs  e.g.
    c:/abc/
    c:/bcd/
    c:/cde/
    and we want to archive the files from these source dirs to corresponding archive directories e.g.
    c:/abc/archive
    c:/bcd/archive
    c:/cde/archive
    I can see that we can have only 1 archive directory when the processing mode is kept as  "Archive"
    How can we achive the same , Please help
    Thanks in Advance,
    Jyoti

    Hello,
    I guess you don't have option to archive files in different directories using single CC.
    You can archive the files in 1 directory and then run a OS script, which will place the files in different directories (using NFS as protocol).
    Some reference:
    http://wiki.sdn.sap.com/wiki/display/XI/SAPXIFileAdapterOSCommandLine+Feature
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/10392. [original link is broken] [original link is broken] [original link is broken]
    -Rahul

  • Attempt to process file failed with Exception in XML Parser-format problem

    Hi all,
    Iam getting an unusual error in the J2EE stack in XI.
    And the message is:
    006-11-30 17:31:07 Error Attempt to process file failed with Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)(:main:, row=1, col=1044002) -> com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)' 2006-11-30 17:31:07 Error Exception caught by adapter framework: null 2006-11-30 17:31:07 Error Delivery of the message to the application using connection AFW failed, due to: RecoverableException.
    My scenerio iam posting IDOC to a flat file with content conversion in the receiver side,the mapping got executed successfully and in the audit log i found that the error was after the 'Start converting XML document content to plain text'.
    This means that error occured during content conversion of XML to the prescribed file format.
    Can anyone suggest any better approach using which we may trace the junk data in IDoc. Manual adhoc approach could take time and is error prone.
    Thanks in advance...
    karun

    Hi Bhavesh,
    Thanks for the early reply. I checked the mapping and everything is fine and the output is also in valid XML format.
    The audit log shows that the mapping got executed successfully and the error is after the step 'Start converting XML document content to plain text '. Is there any constraint in the file adapter regarding the message size for parsing.
    2006-11-30 17:30:50 Success Transfer: "BIN" mode, size 2912595 bytes, character encoding -
    2006-11-30 17:30:50 Success Start converting XML document content to plain text
    2006-11-30 17:31:07 Error Attempt to process file failed with Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)(:main:, row=1, col=1044002) -> com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)'
    2006-11-30 17:31:07 Error Exception caught by adapter framework: null
    2006-11-30 17:31:07 Error Delivery of the message to the application using connection AFW failed, due to: RecoverableException.
    2006-11-30 17:31:07 Success The asynchronous message was successfully scheduled to be delivered at Thu Nov 30 17:36:07 GMT 2006.
    2006-11-30 17:31:07 Success The message status set to WAIT.
    2006-11-30 17:31:08 Success Acknowledgement creation triggered for type: SystemErrorAck
    2006-11-30 17:31:08 Success Acknowledgement sent successfully for type: SystemErrorAck
    2006-11-30 17:36:08 Success Retrying to deliver message to the application. Retry: 1

  • How to raise Alerts for Sender File Channel

    Hi All,
    For Sender File Channels , we can find out the status of the adapter through RWB as to whether it is Content Conversion related exception or Folder path not found exception & etc .
    I wanted to know as to whether there is any way where can rasie alerts for Sender File Channels (similar to what we do for Reciever File Channels) as well.
    Regards
    Vinay P.

    I found it myself .
    In Alert Configuration while we are adding alerts for a particular aler category , the following parameters needs to be checked .
    Connected to Message : Not Relevant
    Sender Service/Party/Interface/Namespace needs to be mentioned.
    Adapter Type should be selected as File

  • Sender File Channel unable to process

    Hi,
    I have a scenario where we are using a sender file channel. It polls every 1 hour at the source directory.
    Suddenly yesterday the channel stopped processing and never polled again automatically.
    It started the processing but did not finish the processing. (There is no error)
    Now when I manually restart the channel it directly goes to the polling interval and gives the log :
    "Polling interval started. Length: 3600.0 seconds" every 1 hour. It does not start the processing of channel.
    As an additional information I checked that the Server to which it is polling had some error at the time when it stop processing.
    Please help how could I start the channel processing now? Is there some kind of lock issue or anything else.
    Thanks,
    Vikas

    Hello Vikas,
    In addition to the previous posts, check the following as well.
    1)
    As I donu2019t know which SP level your system is on, please check the note below and apply the patch accordingly.
    > 1317686 - Adapter Framework Scheduler may fail to remove a job
    2)
    Check whether you have deployed on your system the patches described in this note (as as mentioned in the post above).
    > 1083488u2013 XI FTP/JDBC sender channel stop polling indefinitely
    3)
    Please check if there are locks (as as mentioned in the post above) for this channel according to section u201CHow to manually delete hanging Enqueue-Locksu201C in note:
    > 821267 - FAQ: XI 3.0 / PI 7.0/ PI 7.1 File Adapter
    Follow the instructions and delete the lock related to the stopped communication channel.
    For the 7.1 versions, please note that the Lock Manager is under the /nwa/locks, or on the location "Availability and Performance Management -> Locks".
    4)
    Configure a timeout for the FTP connection.
    In more recent support packages you can set the "Timeout" parameter available in the "FTP Connection Parameters" section.
    Alternatively, please enable the "Advanced Mode" for the respective FTP communication channel in the Integration Directory and add an entry "ftp.timeout"=timeoutSecs (without any quotation marks) to the "Additional Parameters" section, where timeoutSecs is the desired FTP timeout in seconds.
    Please refer to the note below for further details on this.
    > 849089 - XI 3.0 / PI 7.0 File Adapter: FTP Timeout Handling
    Cheers,
    Jorge Eidelwein

  • Sender communication channel with file adapter

    Hi All,
               Here i am facing some error with the communication channel in which i have used FILE adapter. Here i am using PI 7.0. Here i have configured the communication channel. but i didn't checked the "operating system commands". and i checked the " adapter specific message attributes". i dont know whether i have to check these adapter specific message attributes or not. When i have gone to runtime work bench there i saw in adapter monitoring. there it is not showing any error. but in communication channel monitoring it is showing that it is having  -
      "processing  errors" but i am not getting where will be the error.. Any new ideas will be appreciated.
    Thanks in advance,
    Ramana

    Hi Bhavesh and Aaron,
                  Here i viewed the XMl format of the sender file in the mapping. there i found the difference between the file i am trying to pick up by the adapter and the XML instance of the sender interface in mapping. The difference is there in the message type of the <ns0> tag the file i am trying to send is having one message type and name space, where as the XMl instance is having the other message type and same name space.
                 i think that will the problem in processing my file. i am not sure about it.please any of you confirm that if it is th processing error i am facing or not.
                Thanks for your efforts.
    Regards,
    Ramana.

  • Sender file adapter with content conversion  Simple XML

    Hi experts,
    I'm trying to parametrize my sender file adapter content conversion.
    I'm receiving a text file with one single line like:
    AA1;AA2; AA3;
    and I want to convert it to an XML like
    <MT_A1>
    <field1>AA1</field1>
    <field2>AA2</field2>
    <field3>AA3</field3>
    </MT_A1>
    Actually I know how to do somenthing like
    <MT_A1>
        <LINE>
              <field1>AA1</field1>
              <field2>AA2</field2>
              <field3>AA3</field3>
         <LINE>
    </MT_A1>
    What I want is remove the <LINE> tag from my XML.
    Regards
    Gonzalo
    Edited by: Gonzalo del Castillo on Nov 28, 2008 2:18 PM

    Hi
    Use this help document for receiver FCC
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Content Conversion (Pattern/Random content in input file)
    File conversion text to xml (Few Last Post)

  • FCC configuration in Sender File Channel Without any key field name

    Hi Everyone,
    We have below flat file generated from ECC using standard tcode.
    The flat file is fixed length file and first record is header record followed by line items.
    There is no key field name in the file name.
    Can we read the file and convert into xml without any key field name?
    I want to understand if the FCC configuration for above file can be done without key name or not.
    Thanks,
    Vertika

    Hello,
    AFAIK, using FCC i really doubt u can convert file into xml.
    So technically, there are two options either read each line one by one and then do conversions in ur mapping or write a custom module which will read ur input file and convert into xml.
    Configuring Generic Sender File CC Adapter
    Thanks
    Amit Srivastava

  • TWO SENDER FILE CHANNELS POLLING SAME DIRECTORY

    I have a requirement to send a single file from a single FTP location to two different Target FTP locations as a passthrough interfaces. PI version 7.31
    I thought of doing it through two different interfaces, both FTP to FTP keeping source same and destination differently
    For First target (T1)Created dummy interfaces(Out/inbound) in ESR, created a configuration scenarion ,Sender and reciver FILE channels in ID, created an ICO.
    For the second Target(T2) : can i use the same dummy interfaces as used in first while creating Sender channel?
    can i use the same Sender channel as in first scenario to the ICO of  Interface for second Target(T2)--> it gave error, same sender channel(IF FILE) channel can't be used to different Sender Agreements/Integrated Configuration Objects. So i copied the sender channel with a different name and used it in second Interface.
    Reciever File channel obviously different for both cases with different server details and direcories.
    My fear is, if i can go with this set up as we have two sender FTP channels polling on the same FTP directory, so possibility of lock issue and channel are operational on a mapping of one hour(first one 8to10 and second one 9to12, so 9 to 10 both channles poll simultaneously).
    Please suggest any better way of handling this, or to resolve the lock issue ?could clusterSyncMode=lock help here?

    Hello,
    I think u are getting confused.
    >>My query was, if we could use two recievers(service) inside a single ICO, without giving any condition. Answer it please in YES or NO?
    Yes, indeed u can do it.
    IF YES, then how would  the message dynamically determine the correct/specific reciever out of the two recievers configured in ICO?
    >>Since u want to send same message to two different FTP servers so u don't have to worry about dynamically determining receivers. As soon as file sender adapter picks the file it will route the message to both the receivers and eventually send the same request message to two different FTP servers.
    Hence i assume, for every file kept on source direcory, there would be two messages( 2 files) going to be created on two different targets? YES or NO?
    >>YES
    Thanks
    Amit Srivastava

  • Sender file channel issue

    Hello All,
    Here I have a problem with sender file communication channel. THe channel is not able to pick a file as the file format is not correct andf throwing exception in the channel which is expected. But Its not allowing to go and pick the other files with correct format till I remove the bad file from the Source dir location.
    How to get out of this issue Pls help me
    Regards,
    Moorthy

    Hi,
    Maybe you can delete or archive the erroneus file and then all the other files are processed?
    Set checkbox Archive Faulty Source Files and give directory where the erroneus files are moved.
    Also under module tab add new row  int the Processing Sequence table like this:
    AF_Modules/MessageTransformBean ............. 1
    And in under Module Configuration:
    Module Key ........ Parameter Name ...........................Parameter value
    1 ......................... Transform.PermanentErrors .........true
    If this won't help, please check the No[Note 1265534 - Archive faulty files does not work with add time stamp mode|https://service.sap.com/sap/support/notes/1265534]. Basically this means that archiving does not work if you have set the 'Add timestamp' option so check that too.
    More about the Me[MessageTransformBean Fauty Source files |http://help.sap.com/saphelp_nw70/helpdata/EN/57/0b2c4142aef623e10000000a155106/content.htm]
    Please remember that empty files are handled with their own settings.
    Regards,
    Mika

  • Receiver file channel with ANSI format.

    Hi,
    I have developed file to file scenario for which sender file format is unicode and receiver file format is ANSI.
    There is no FCC at sender and receiver site. In interface we are just bypassing the file in PI, there is no ESR objects.
    I have configured sender channel for unicode in following way:
    File Type : Text
    file encoding : UTF-8
    I have configured receiver file channel for ANSI in following way:
    File Type : Text
    file encoding : i have tried with cp1252 and ISO8859-1
    When I run the interface I received receiver file in ANSI format. But when I open that file in notepad the content in the file is having spaces in between 2 characters like below.
    V O L 1 0 0 0 0 0 9
    Is any bady having idea about this problem?
    Thanks.
    Edited by: darshana-PI on Jan 23, 2012 6:32 PM

    Hi,
    The blanks in your target file might be created because your source file is encoded with UTF-16, not UTF-8. Try using one of these as an encoding in sender communication channel:
    UTF-16BE (16-bit Unicode character format, big-endian byte order)
    UTF-16LE (16-bit Unicode character format, little-endian byte order)
    UTF-16 (16-bit Unicode character format, byte order)
    Hope you'll find this useful,
    Greg

Maybe you are looking for

  • Is there a way to open new tabs in the home page or some other link?

    When I open a new tab using the "+" symbol I get a blank page. I would like new tabs to open in my home page, or, if possible, a different page, like my favorite web browser, which is what I usually want when I open a new tab. Can this be done? I can

  • In FF 4.0, how do I set the Tree-Style Tabs extention to keep tabs open when I exit (like it did up through FF 4b11)??

    In FF 3.5 through 4.0b11, the Tree-style Tabs extension kept tabs open when I exited so that when I re-opened the program, all tabs re-opened at the same time. Now, every time I return ot the program, I have to re-load all of the tabs I use on a dail

  • -50 Syncing Error?

    I recently upgraded the RAM on my computer, and this is the first time I have connected my iPod since the upgrade. As soon as I connected my iPod to my computer, it told me I had to restore it to factory settings. So I did that. I have attempted to s

  • SQ01 with Time Stamp Fields

    Hi, If I have Time Stamp Fields in my Query, is it possible to format these fields into having just the date (both in the selection screen as well as in the output list)? Rgds, /Fredrik.

  • Being charged £22.50 for BT Sport HD

    For the last 2 months (1st July and 4th August) £22.50 has been taken from my bank account for BT Sport HD when I should only be charged £15. I phoned BT after the first payment of £22.50 was taken and the woman I spoke to said she put it on the syst