Adapter Module to terminate module chain processing PI7.1 (File Adapter)

Hi All,
I have a file in a FTP location that needs to be picked up ONLY after a trigger file is found.
I have tried 2 ways using OS commands and BPM but both do not suit my need .
I have now decided to write a java adapter module. This is in PI 7.1.
Folder :          \public\cwc
File to be picked up : abc.txt
Trigger file :              abc.trg
Polling Interval :         60 secs
1. Module checks for abc.trg in the folder \public\cwc
2. If found, do nothing and process normally
3. If not found, write an error to the log and stop the module chain (callsapadapter) from processing further. The abc.txt file should not be picked up.
Is this possible ? Any code snippets? What command will stop or timeout the communication channel processing?

Hi,
What you can do is :
1. If found then send the regular xml file from the adapter module.
2. if it is not found then alter the message so that the log xml file appear as the output of the module.
3.in the IR make a data type such that its is having both i.e. either the regular xml or the log fields in two seperate messages (optional)
e.g.
<File>   ... 1. .1
--<RegularFile> .. 0..1
--<logfile>  .. 0..1
Dont think of stopping the process by calling some modules.Instead let the process complete by letting the mapping split.
If the Regularxml comes ,then route it to the regular folder , but if the log comes then let the other message go to the log folder.
Regards
Progirl

Similar Messages

  • 107 MB File - was not able to process thru File Adapter

    Hi All,
    I tried to send one 107 MB file using file adapter.
    But was getting error as "not able to write on the integration server".It seemed like XI was not able to process file with that much size...as when we did split up the file into smaller ones ..those were processed....
    I want to know what is the file size limit of File adapter......is there any way to send files with that much size from file adapter?
    Can we do any file sizing exercise on XI servers?
    Thanks.

    Hi Henrique
    Even the Zip Module doesnt help.
    We had a similar case, when Xi was acting as a FTP. We thought we would use the Zip Module, etc but what we realise was even if you plan to use the Zip Module, the Entire File first needs to be loaded into the memory before the module can be called and the chances are that the j2EE stack goes down even before the module can be called.
    We also explored the option of using the Jar command in the command line processing before message processing, even this has the same issue that , the Data is loaded into the memory of the j2ee stack and only then the command is executed and so even though the content was zipped, the actual content used by the file adapter was not the zipped content.
    Regards
    Bhavesh

  • File processing in FIle adapter

    Hi,
    i have configured Sender File Adapter (FTP) in my scenario which picks the file from FTP folder and sends to JDBC.
    now i have 2 flat files in my FTP (yesterdays and todays). file names are test_07062010 and test_08062010.
    now my requirement is while processing the files, my file adapter has to process first file as test_07062010 and then test_08062010. but now it is processing first test_08062010 and then test_07062010. due to this yesterdays data is overwriting on todays data in Database.
    i know we have some option in file sender adapter (NFS)...but i need to do with FTP file sender...please let me know how to proceed further.
    Thanks in Advance.

    Hi Praveen...thanks for reply
    my communication channel is active all the days. but sometimes due to PI server down or some maintance we will stop channels.
    that time file will not pick by file sender and it will be in FTP.then next day one more file will generate in FTP. 
    So my proble is while processing these files my sender file adapetr is processing todays file first and then yesterdays.due to this yesterdays data is overwriting on todays data.
    can you tell me how to handle that in file adapter.

  • Alert if no file process :Same file adapter with same communication Channel

    Hi XI Guru,
    I have encountered 1 requirement from my client where, sender will send different data file with different file name. And there want XI to alert the user if no file to process for the schedule date. Please take note that the communication channel is common to all the sender.
    Example:
      Communication Channel : CC_FILE_SND
      FILE_10.TXT   ---> Every month on the 10, user have to send FILE_10.TXT to process
      FILE_20.TXT   ---> Every month on the 20, user have to send FILE_20.TXT to process
      If user fail or forget to send the FILE_10.TXT and FILE_20.TXT on special schedule date to process, XI should alert user.
    Many thanks

    Hi Lord
    <<< there want XI to alert the user if no file to process for the schedule date.
    Can you tell me how you are planning to configure this schedule date in your sender file adapter. I mean this date will be fixed or it is going to be change according to the requirement.
    Now for the second part in order to alert the user if file is not there, one solution is to use BPM with wait step ( specify the time in this step ), but then again it takes me back to my previous question, the time seems to be different everytime according to the requirement.

  • How to get the read input file name in bpel process using File Adapter.

    Hi,
    I am reading a .txt file from configured directory using File Adapter.
    I had configured file adapter to read file with naming pattern “SalesOrder.*\.txt”.
    Now I had requirement to access the actual file name in bpel process eg: “SalesOrder123.txt”
    How can I get the file name in bpel process.
    Any help is appreciated.
    Vidya.

    1) create a variable of message type. Click on Browse Message type. Here you select Message Type-->Project WSDL Files -->fileAdapterInboundHeader-->Message Types-->Inboundheader_msg. Then click OK
    2)Next dbl Click on teh receive Activity which is receing your File from teh File Adapter. Go to the Adapter Tab. Click on Browse variable and select the variable that you had just created above.
    This would get the File name in the variable declared

  • Process Integration File adapter

    file adaptor in PI was able to accumulate several messages into one file?
    In other words, every 30 minutes or so, we will connect to any system to collect the documents. If I get there and find a list with 50 document, can I change the adaptor between ECC and PI to send the information as file instead of iDOC? Can this file have all 50 documents together instead of one file per PO, as the iDOC interface was going to do?

    Let me clarify the question first. Please, correct me if anything doesn't make sense.
    Every 30 minutes or so, our PI system will receive a burst of SOAP messages (xCBL format) from the provider transfering data to out ERP. The adapter between our PI and our ERP is an iDoc adapter. It  means that, if in the 30 minutes interval I have 50 individual messages to receive, ( not one message with 50 documents ), PI will then create 50 iDocs in ERP (calling the iDoc import 50 times). This would be very resource consuming in our system (of course I am not talking only 50 and not for only one type of document).
    The question is if we can change the iDoc adapter to ERP to a FILE adapter (custom format), and have this file adapter collect all messages into ONE unique file, describing 50 documents. This way, we can run a customized import program to process all 50 documens (or more) at once.
    So, I don't want to convert the iDocs but to exchange it to batch file.
    Clear as mud?

  • Row By Row File Processing using File Adapter

    Hi,
    Can any one explain that how can a read a file row by row using File adapter in BPEL?
    Like ...When One row is executed completely only then second row starts........
    Regards,
    En
    Edited by: Enceladus on Apr 16, 2013 11:55 AM

    For This ...you need to make you service Synchronus by adding a reply in interface WSDL of BPEL process.
    Regards,
    En

  • Decryption of Message after processing by File adapter

    Hi,
    Encrypted File> XI> Encrypted File
    I have to pick up an encrypted file, decrypt it and do the message transformations & business process associated wiht it and place it in another folder by encrypting the file again.
    How can i acheive this.?
    Regards,
    Siva Maranani.

    Hi siva,
    You can use Java Mapping or user-Modules to do this.
    Go thru this link:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/unkown/webinars/how to handle unstructured source content for adapters/the pdf presentation of how to handle unstructured source content for adapters.pdf
    Regards,
    Sridhar

  • Large file processing in file adapter

    Hi,
    We are trying to process a large file of ~280 MB file size and we are getting timeout errors. I followed all the required tunings for memory and heap sizes and still the problem exists. I want to know if installation of decentral adapter engine just for this large file processing might solve the problem which I doubt.
    Based on my personal experience there might be a limitation of file size processing in XI may upto 100 MB with minimul mapping and no BPM.
    Any comments on this would be appreciated.
    Thanks
    Steve

    Dear Steve,
    This might help you,
    Topic #3.42
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/70ada5ef-0201-0010-1f8b-c935e444b0ad#search=%22XI%20sizing%20guide%22
    /people/sap.user72/blog/2004/11/28/how-robust-is-sap-exchange-infrastructure-xi
    This sizing guide &  the memory calculations  it will be usefull for you to deal further on this issue.
    http://help.sap.com/bp_bpmv130/Documentation/Planning/XISizingGuide.pdf#search=%22Message%20size%20in%20SAP%20XI%22
    File Adpater: Size of your processed messages
    Regards
    Agasthuri Doss

  • Files fail to reach IS after being processed by File adapter

    Hi,
    Till a few minutes back, our XI server was working fine. But all of a sudden the messages could not be sent to IS for processing. I found the following message in RWB--> Message monitoring.
    8000 is the ABAP port that we have mentioned in SMICM.
    <b>Transmitting the message to endpoint http://intersrv:8000/sap/xi/engine?type=entry using connection AFW failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: java.net.ProtocolException: Server redirected too many times (20).</b>
    In adapter monitor i found that the message has been successfully been picked up(processed).
    Also 1 strange thing that i observed is, when i tried posting  the same payload using HTTP adapter(i mean the sample HTML page used to post HTTP requests to IS) is failing. I could not see any messages in sxmb_moni when i tried in an EO or EOIO processing mode.
    Kindly help me on this.
    Regards,
    Siva Maranani

    siva,
    can you check the url in SLD for the related business system. It should be 8000 also and not 50000(i had a similar error and it was resolved by changing the URL in SLD.
    is your DB up?
    thanks
    tony

  • Empty File has to write after Message Processing in File Adapter..!!

    Hi,
    File to File Scenario.
    Once the file is processed and placed in the receiver folder, I need to generate one empty file with the original file name but with different extension (DON). This is used to indicate that the full file is written in the folder.
    Example:
    Original file has to write like "Output_Final.CSV"
    Empty file has to be placed like "Output_Final.DON"
    Is there any way I can achieve this requirement.?
    Thanks
    Deepthi.

    I have no clue of removing the same using Graphical mapping ..
    I hope you have set the option of Write Empty File if not try this and still doesnot work
    then need to look for java or ABAP mapping
    chekc the below thread may help
    Re: How to create empty Payload
    Rajesh

  • Module processing inside Sender File Adapter

    Hello,
    I am trying to analyze whether I can create a specialized module inside Sender File Adapter. As of right now, the Sender File Adapter and Receiver as well, assume endSeparator character in the end of each record. For files that do not have this field, it is just on continuous string, I assumed I can create an
         adapter module
         call it BEFORE data in the file is being converted to XML format
         Insert 'nl' character (since the record length is fixed)
         Call regular adapter processing (converting to/from XML)
        However, creating any module inside Sender File Adapter, the payload of the main document is already in XML format. Is there anyway to avoid it?
       Thanks for your help,
             Dmitriy Mindich

    It is not possible with the standard functionality.
    So maintain the sender file adapter with no conversion, but in the module tab enter following modules:
    1. Your module
    2. The conversion module (*)
    3. The standard module.
    (*) for details look here:
    Look here:
    http://service.sap.com/nw-howtoguides
    -> Exchange Infrastructure
    -> How To Use the Content Conversion Module in JMS Adapter
    Regards
    Stefan

  • Can we process files with attachments using File Adapter

    Hi All,
    I want to process files which have attachments using File Adapter.
    Is it possible to process such files?
    May be using standard modules?
    Regards,
    CBKLP

    Assuming you are talking about sender FILE channel....you can make use of PayloadSwapbean provided by SAP (standard module)...to read data from attachment.
    Regards,
    Abhishek.

  • Regarding the File Adapter with Code Page problem

    Hi All,
    I have a scenario where I am processing file at receiver end. The code page of the file is Cp037. When I try with this, I am facing the problem. Is there anyway where I can chage the code page of the file which is to processed by File adapter receiver.
    I have one idea but I don't know whether it is possible or not. It is to use XML Anonymizer Module.
    Please get back to me with your ideas.
    Regards,
    Achari

    Hi Achaari,
    Cp037 ( EBCDIC ) is not a basic but an extended encoding set which might not be supported by the file encoding parameter at the receiver file adapter.
    Either you can try the code page conversion using java code  as mentioned in  this[ post|Code page conversion;
    Please refer Problem with EBCDIC
      Michale's reply and the sriram's reply which talks about  some work around using .BAT files.
    Regards,
    Srinivas

  • Archiving Processedor Errored Files on FTP folder-Receiver File Adapter

    Hello,
    A quick question, we have a scenario where we are picking a file from FTP folder and we need to archive it on the
    1) Processed file on the same FTP server different folder
    2) errored file on different FTP folder.
    How could we achieve this using the FILE Adapter?
    As what i could see the file adapter does not gives you the option to select the FTP site for this...
    Help is appreciated.
    Regards

    To archive source files where a permanent error occurred during processing, select Archive Faulty Source Files.
    A permanent error occurs either during the conversion of the file content, or in a module in the module processor.
    More information: Adding MessageTransformBean in the Module Processor
    u25CB       Specify Error Archive Directory.
    u25CB       To add a time stamp to the archived file, select Add Time Stamp.
    ref: http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/655453b48a4ddfe10000000a1553f7/content.htm

Maybe you are looking for

  • OneDrive for Business sync client with Office 2007

    We have 700 people organisation using Sharepoint 2013. One of the key features for us is the OneDrive for business that allows us to sync document libraries. BUT there seems to be a big problem with Office 2007 clients, after installing the separate

  • AT&T upgrade jargon, if anyone knows (for iPhone 6)

    I have an iPhone 5C, which has served me pretty faithfully for the time that I've had it. Sadly, over the weekend it was dropped onto a hard floor and broke. (It had been in a case, which I had removed for cleaning...of course.) The screen is intact

  • Can two users really share a photo library?

    The Apple website suggests that with Aperture and iPhoto two users can share a photo library on one mac. Here is the exact text at http://www.apple.com/uk/aperture/iphoto-to-aperture/ : iPhoto. Aperture. And the all-in-one library. Now iPhoto and Ape

  • Removing iTunes Movies to gain more space

    I just removed my iTunes movies because the HD was showing 479GB used of 500GB to gain more HD space.  After turning off my MacBook Pro and restarting, the storage amount shows the same as before.  Is there a way to reset the storge reading?

  • Adobe Reader is "forgetting" the last view settings

    Hello, I'm having a small problem with Adobe Reader X. I checked the "Remember last view settings" option, and it's working fine, but the problem is that if I don't open the  document for a few days, the document loses the information about the last