Sender FTP Adapter - Archive faulty files not working

Hello,
We are on SAP PI 7.11 SP 06
We have a scenario where we are reading CSV files from a FTP location.
File Sender Adapter is polling the FTP location for CSV files, if there
is any error during FCC we need to move the faulty file under a
particular directory on FTP server.
Archive faulty files tick is click under the communication channel and
also the required directory is specified, but the functionality is not
working.
If there is a faulty file it is just adding a rejected prefix to the
file and keeping the file in the polling directory. It is not moving
the file in the rejected directory specified in the communication
channel.
Thanks & Regards,
Rahul Nawale

Are you trying to archive the file on the same FTP server or a different FTP server? Archiving the faulty file on the FTP server might not have expected results. And if you are trying to archive the file on a separate FTP server, it wouldn't probably be achieved using the simple file adapter functionalities.
The best way would be to archive the faulty files to an NFS location on your PI server (this will certainly work, even if it's FTP mode) and then use a separate script or PI interface (file tunneling) to move these files from PI server File System to FTP archive location.
Regards,
Suddhasatta

Similar Messages

  • Sender JDBC adapter -- Update SQL statement NOT work for the last record

    I'm trying to use SAP XI to send records from Oracle database to As/400 using JDBC adapter.  I've defined the communication channel for sender
    (1)  The "Query SQL statement"  = select  a_bgn_dt,  a_end_dt from  PX_PXXD WHERE NOT CU_ACTION_CD='P' 
    (2)   The "Update SQL statement"  = update PX_PXXD set CU_ACTION_CD='P'  WHERE NOT CU_ACTION_CD='P' 
    Supposed that 3 records were retrieved from (1) and successfully updated to AS/400 but only the first 2 records in Oracle database are updated according to (2)
    Any advise.
    Pansy

    Hi Pansy,
    You select and update query is looking like wrong
    kindly check below query,If you are using oracle
    (1) The "Query SQL statement" = select a_bgn_dt, a_end_dt from PX_PXXD WHERE CU_ACTION_CD !='P'
    (2) The "Update SQL statement" = update PX_PXXD set CU_ACTION_CD='P' WHERE  CU_ACTION_CD !='P'
    Thank you
    Sateesh

  • Error with Archiving Faulty Source File in Sender FTP adapter

    Hi All,
    I have configured a Sender FTP adapter with Processing Mode as Archive.
    I am able to read the files from FTP server and archive all the successfuly processed file in the PI aplication server directory XXX/success.
    We need all the error files also to be archived on PI application server in directory XXXXX/Fail so I have checked the option Archive faulty Source Files and provided the application directory  XXXXX/Fail .
    I have unchecked the option Archive Files on FTP server.
    But the problem is when FTP adapter is getting any error files it is not able to archive it to application directory  XXXXX/Fail .
    In RWB it is showing the error
    Unable to archive faulty input file /data/abc.txt to /XXXX/fail/abc.txt
    Cause: com.sap.aii.adapter.file.ftp.FTPEx: 550 rename: No such file or directory
    This directory is existing and works fine when I give this directory name in Archive directory of processing mode.
    Sender FTP adapter is trying to archive the file in FTP server which I dont want and giving us this error.
    If I give any Directory which is present in FTP server my error files are getting archived on FTP server but not in the archived folder.
    I have already unchecked the option Archive Files on FTP server.
    Please help......
    I am on PI 7.11
    Regards
    Henery H

    Hi Henery,
    Check the below thread, this should help you to fix the issue.
    FTP adapter: exc. 550 : No such file or directory
    Thanks,

  • Strange Problem in File Archiving - Sender FTP Adapter

    Hi,
    The scenario is file to IDOc. XI has to read the input file from client FTP server and archive it to XI local file server.
    File is archived properly without FCC (for xml files). But with FCC, the sender FTP adapter is archiving empty files (0 kb files) not the original file with data.
    I've checked SXMB_MONI, even there I can see the file data and the IDoc is getting posted with proper data. But, the archived file is empty. Not sure about the problem.
    Please suggest. Thanks in advance.
    Regards,
    Joe.

    Hi,
    I've already tried archiving the file to the FTP server itself, it's working fine (even with FCC). But, when I try to archive it to the XI server (read from FTP and archive at XI server), it's writing empty file to the XI archive directory. I'm using PI 7.0 SP 14. My sender FTP adapter dtls follow
    Data Connection: Passive
    Timeout Secs: 500
    Connect Mode: Permanently
    Transfer Mode: text and binary tried both
    File type: text and binary tried both..
    Looking out for a solution.
    Thanks,
    Joe.
    Edited by: Joe on Jun 19, 2008 8:07 AM
    Edited by: Joe on Jun 19, 2008 8:08 AM

  • FTP sender adapter archives empty files

    Hi.
    I have a strange problem with the ftp sender adapter.
    I receive my file without problems, and the scenario works as it should.
    The problem is with the archiving of my processed file.
    It writes the file fine to the path specified, but it is empty (user has full file permissions)
    The ftp adapter uses content conversion, and I have seen threads in the forum that tells about simular errors. But I have found no solution.
    Hope someone can help here.
    Regards...
    Peter

    File Content Conversion is usually associated with Receiver File/FTP adapters
    and Archiving the source file is an option at the Sender File/FTP Adapter.
    No, content conversion is used both in sender and receiver file/FTP adapters.
    In my case, it is in a sender adapter!
    I'm not sure what you mean when you said "The ftp adapter uses content conversion,..."
    The sender FTP adapter content converts a flat file to XML format!
    Can you let us know the details of your scenario?
    Like who / what is the sender and who/what is the receiver system?
    The scenario looks like this: "FTP -> XI -> RFC", but as mentioned before, the scenario works fine, the problem is in the FTP sender adapter that fails to save the archive file.
    If I try to use the file/FTP sender adapter in "file mode", with the same parameters, the archive file is written just fine!
    Regards...
    Peter

  • Problem while archiving faulty files in File Sender Adapter

    Hi All,
    I am facing some problem while archiving the faulty files using Sender File adapter.
    I have configured the option in the File Sender Channel to archive the files to some
    other location. I have configured some custom modules inorder to perform conversion.
    My file adapter is not archiving the faulty files. Please help me in this regard asap.
    Best Regards,
    Surya

    I have checked with all the authorization issues. It is still no archiving the faulty file.
    Can you please explain the mechanism behind this concept?
    How File adapter will decide that it is faulty? On what basis?
    How Modules play a role here?
    Regards,
    Surya.

  • Sender FTP Adapter not working with certain name

    Hello,
    We're facing the next problem within XI.
    We configured a sender FTP adapter within the central adapter engine. This adapter is configured correctly however for some reason it is not picking up any file from the FTP server.
    Changing status to inactive-> active again all kinds of modes and configs we tested.
    However when copying this non-working adapter to a new one with a different name (Configuration is exactly the same!!!!!) and use this one in the sender agreement it worked immediately.
    Somebody else faced similar problems and managed to solve it because for this error we don't want to adjust our naming conventions....
    Thanks,
    Emile

    Hi Emile,
    This could happen when AE cache is not getting updated.
    Goto SXI_CACHE.
    Click "Goto" -> AE Cache and check if you get a green symbol with a message saying " Cache contents are up-to-date".
    Regards,
    Anish

  • Sender FTP Adapter (file transfer w/o mapping)

    Hello everyone!
    Is there a way to configure a Sender FTP Adapter such that it simply picks up a file in an FTP folder then moves it to another FTP folder without changing any data (no mapping needed)?
    I tried doing it, but the Sender Agreement requires you specifiy an Outbound interface (which is not needed in this case). Would anyone of you know a workaround to this?
    Warm regards,
    Glenn

    Hi
    Use dummy interface name. But that should be same in ID objects
    Check this
    How to send any data (even binary) through XI, without using the Integration Repository
    Thanks
    Gaurav
    Edited by: Gaurav Bhargava on Oct 29, 2008 9:48 AM

  • Sender FTP Adapter, text mode should convert source file?

    Hi !
    We have a Unix file system where systems and people drop files to be captured by XI. XI runs also on another Unix system.
    We configured the Sender FTP comm channel from XI to use the TEXT mode, to have converted the captured file to Unix TEXT (eol = 0x0A), no matter the format of the file used to transfer the source file to the XI polling folder.
    But we noticed that TEXT or BINARY modes in sender FTP adapter works all the same, like binary.
    What are we doing wrong?
    Thanks,
    Matias

    No. to see the difference put a gif and give txt in file adapter you will get an error for the same file u use binary it works.
    their is difference b/w these . if you use special characters like european then you need to use UTF-8 or UTF-16 or bigInidan  if it is binary then you output will junk charaters for these sysmobls
    Message was edited by:
            Sreeram Reddy

  • HT3231 transfer files to my new iMac system 10.8.3, 9 pin firewire. Apple sold me FireWire 9-6 with a Thunderbolt to FireWire Adapter.  This will not work, do i need a different cable?

    I have a G4 with system 10.4.11 and a 6 pin firewire trying to transfer files to my new iMac system 10.8.3, 9 pin firewire. Apple sold me FireWire 9-6 with a Thunderbolt to FireWire Adapter.  This will not work, do i need a different cable?

    Apple Thunderbolt to FireWire Adapter
    Then it sounds like the FW800 to 400 adapter just gets in the way. You don't have FW800 case? on my MDD G4 I added and used FW800 controller and cases from OWC and Sonnet.
    http://www.macsales.com/firewire

  • OSB error while generating business service for FTP adapter Sync Get File

    Hi All
    I am trying to generate a business service from SOA Suite JCA FTP adapter Sync Get File, but i am getting this exception for no reasons (Rest operations list file, get file and put file are working)
    Invalid JCA transport endpoint configuration, exception: java.lang.NullPointerException     Unknown ALSB Conflict.
    Is this a bug in eclipse, can any body help me. Thanks
    Sorry Forgot to mention eclipse version...
    Eclipse Platform
    Version: 3.6.2
    Build id: M20110210-1200

    Ok,
    bcoz of this issue, i had to code the entire interface in OSB console. It runs fine in OSB console (i was able to test it successfully).
    Is this a bug in eclipse or only i am facing this issue? Has anybody tried to create a business service from JCA FTP Get Synchronous jca file?
    <adapter-config name="FTPReadMOMFileOnRMSDB" adapter="FTP Adapter"
         wsdlLocation="../wsdl/FTPReadMOMFileOnRMSDB.wsdl"
         xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
         <connection-factory location="eis/ftp/RMSDBFtpAdapter" />
         <endpoint-interaction portType="SynchRead_ptt"
              operation="SynchRead">
              <interaction-spec
                   className="oracle.tip.adapter.ftp.outbound.FTPReadInteractionSpec">
                   <property name="DeleteFile" value="true" />
                   <property name="PhysicalDirectory" value="/MOMFiles/output" />
                   <property name="FileName" value="*" />
                   <property name="FileType" value="binary" />
              </interaction-spec>
         </endpoint-interaction>
    </adapter-config>
    One more doubt? The PhysicalArchiveDirectory path can be on the FTP server something like: /MOMFiles/archive. Or do i have to use the Put operation to move it to /MOMFiles/archive directory. Currently OSB console and eclipse do not accept FTP path for this parameter and want me to specify a local directory on server. Thanks

  • No Source Directory on Sender FTP Adapter

    Hi Guys,
    I am using a sender adapter to poll an external FTP Server. The adapter is able to see the server fine.
    My problem lies in this:
    The company in charge of the FTP server has put a restriction disallowing the 'cd' command on the ftp server.  Now in the sender ftp adapter, the source directory is a mandatory field and therefore if nothing else, I need to put a '.' into the source directory.
    This in effect will do a cd . when it logins into the ftp server.  It is here that I get an error because command cd is disallowed.
    Does anyone know how I can prevent the sender ftp adapter from automatically doing a cd command i.e. have no source directory?
    Thanks,
    Miguel

    Hi,
    I think it is not possible with file adapter .
    Have a look into this SAP note -821267 Question no 27,34.
    It may give some inputs
    Regards,
    Moorthy

  • I just bought a power adapter and it is not working, says "not charging".   The same for the mobile charger.   Anything I need to do in the setting?

    I just bought a power adapter and it is not working, says "not charging".   The same for the mobile charger.   Anything I need to do in the setting?

    The device is locked to the carrier it was purchased through unless you specifically purchased it as unlocked directly from Apple.
    Only the carrier to whom it is locked can authorize it's unlocking.  To do so, the user much contact them to start the unlock process.

  • My apple usb adapter for iPad dose not work any more

    I use USB adapter before , but can not work any more

    Can you try it with someone else's adaptor to make sure that is where  the fault lies?
    Make sure it is connected directly to the wall socket and not through a two way adaptor.
    Move both ends of the cable slight to make sure there is not a loose connection.

  • Archiving faulty Source file not working in Sender Adapter FCC

    Hi Experts,
    I have enabled "Archiving Faulty Source File" in Sender Adapter FCC and pen down the directory path accordingly.
    Likewise I also enable the processed mode as "archive" and give it the direcotory path.
    However when there is a error flagged in sxmb_moni for this interface, I unable to see any file created in the error folder but I can see a file with timestamp being created in the archive folder.
    I have checked the access right to the directory, so this is not an issue. I ran through the forum on this subject and come across the help.sap note on the following
    " To archive source files where a permanent error occurred during processing, set the indicator.
    A permanent error occurs either during the conversion of the file content, or in a module in the module processor.
    More information: MessageTransformBean, Migrating Dispatcher Classes
    ○       Specify the Directory for Error Archiving.
    ○       To add a time stamp to the archived file, select Add Time Stamp. "
    What is the definition as "permanent error". The error I got in sxmb_moni is a mapping conversion error, so it should be archive this to the error folder, right ?
    Anyone have any such setting enabled and working ?
    Regards
    FNG

    The error I got in sxmb_moni is a mapping conversion error, so it should be archive this to the error folder, right ?
    No, it is not the case. As mentioned on the SAP Help site, for the faulty file to be archived, the error has to occur in content conversion, or in module processor.
    If the error you are getting is in MONI, then it means syntactically the file is correct and hence adapter engine has picked up and sent to integration engine (SXMB_MONI).
    -Supriya.

Maybe you are looking for