PI Sender File Adapter OS Commands not working

Hi Guys,
I have very simple scenario. we are using PI 7.1 with EHP1 on HP hardware with JDK 1.5.2*.
We are processing XML files through Sender File Adapter(NFS) to Idocs. We also need to move some pdf documents to target folders on the same box (basically Sender and Receiver files/foders are mounted to PI OS hence I am using NFS)
I am trying to put a simple OS command copy and mov command.
in the Before Message Processing: cp /tmp/*.pdf /tmp/out/
And in the After Message Processing: mv /tmp/*.pdf /tmp/archive/
In the Adapter Audit logs says these commands are executed but I don't see any effect and there is no error/Traces available even in the Server logs also.
I have been using these OS commands since XI 3.0 I never had any issue.
I have gone through SDN but no luck, Please share your experiences.
Thanks,
Laxman
Edited by: Laxman  Molugu on Feb 3, 2010 11:58 AM
Edited by: Laxman  Molugu on Feb 3, 2010 11:59 AM

hi ,
As i understand your requirement you just want to take the pdf file from one folder of XI server and put it to another..
for this u do not need a OS command..
This requirement is simple ..infact u do not need any IR components as well..
u just have to develop the ID part and wherever it asks for namespace or message interface u can give a dummy one..
this would jst take the pdf file from one folder and send it to another

Similar Messages

  • Send File Adapter - keyFieldValue like 'not(H,B)'

    Hi,
    I've a problem in a sender file adapter.
    The file has one header line, multiple body lines and one trailer line. The structure of the flat file is like:
    H; 0815; text;
    0235;my text; 745;7...
    6341;your text; 464;4 ...
    2342;another text; 726;2
    T; 3; OK
    For header and trailer line there is a key field but for body lines there isn't.
    My idea:
    I take the first field of body lines as key field and define keyFieldValue like 'not(H,T)'.
    Is there a way to define keyFieldValues with expressions with 'not' and 'or' ?
    Or have anyone a different idea to solve the problem ?
    Regards
    Christoph

    Make the Source str as
    MT_Source
      Records      ------------1 to unbounded
        Data         ------------1
    In the sender File comm channel select Message protocol FCC and specify the parameters as given below
    Document Name:MT_Source
    Document namespace:(Specify the namespace)
    Recordset structure:Records,*,Data,1
    Add  more parameters choose +
    Name                           Value
    Records.fieldNames      Data
    Records.fieldSeparator  'nl'
    Records.endSeparator      'nl'
    Follow this blog  and modify java code according to ur requirement

  • File Adapter Exclusion Mask not working

    Hi all,
    I have a problem with exclusion mask in File Adapter:
    I have two scenarios: PE08 and PR08.
    PE08 have to take files with format L.I21 and PR08 with format L.I21R.
    In system A I use File Adapter with NFS protocol and everything goes ok.
    But in system B I have to use FTP protocol and here exclusion mask doesn't work: I put a file L000249.I21R and XI takes it to scenario PE08, and it must go to PR08.
    My exclusion mask in PE08 Channel are:
    *R
    Sometimes it goes thru PE08 and other times same file goes thru PR08...
    What is happening? any idea?
    Why exclusion names behave diferent in FTP and in NFS?
    Thanks!

    Hi Urzti,
    have a look of my old weblog:
    /people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter
    Regards
    Mickael

  • File adapter Read operation not working.

    Hi All,
    I have a simple file adapter which will read from a csv file and insert into a table. I have deployed the application successfully, but the application is not reading from the specific location. I am not getting any error in the EM console. Below is the XSD that I used.
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
                xmlns:tns="http://TargetNamespace.com/InboundService"
                targetNamespace="http://TargetNamespace.com/InboundService"
                elementFormDefault="qualified"
                attributeFormDefault="unqualified"
                nxsd:version="NXSD"
                nxsd:stream="chars"
                nxsd:encoding="US-ASCII"
    >
      <xsd:element name="Root-Element">
        <xsd:complexType>
          <xsd:choice minOccurs="1" maxOccurs="unbounded" nxsd:choiceCondition="terminated" nxsd:terminatedBy=",">
            <xsd:element name="Student" nxsd:conditionValue="R">
              <xsd:complexType>
                <xsd:sequence>
                  <xsd:element name="Roll" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
                  <xsd:element name="Name" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
                  <xsd:element name="Flag" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="&quot;" />
                </xsd:sequence>
              </xsd:complexType>
            </xsd:element>
          </xsd:choice>
        </xsd:complexType>
      </xsd:element>
    This is the file that I want to read:
    5,Ram,N
    6,Shyam,N
    Please help friends.

    You should extensively practice the samples given in Oracle's documentation guide for modelling Native XSD. That will give you a better idea, about how to go about the native xsd schemas.. Anyways, I looked into your schema.. You need to make 2 changes to make this xsd work..
    (1) Change "xsd:choice" tags to "xsd:sequence".
    (2) Include a closing tag of "xsd:schema" to make the xsd well-formed.

  • File adapter wild card not working

    Hi Gurus,
    My file adapter seems to have issues with me
    This adapter do not obey me when I specify wild cards. I have tried * , ? and also "Adavnced selection of source file" but no use. Although, he is a perfect gentleman when I specify complete file names.
    Could you please suggest how to tame him?
    Regards,
    AV.

    Hi,
    this is what SAP Help says about it:
    file.sourceFileName=<filename>
    Specify the name of the file that you want to process.
    The name can contain a placeholder (*) at any point, so as to be able to select a list of files for processing.
    The following are valid examples for filename:
    myFile.txt
    my*.txt
    *.txt
    File.
    File.*
    myle.
    Names that comprise more than two parts are also permitted.
    Hope it helps.
    Regards
    Patrick

  • File and keyboard commands not working in Illustrator CC.

    I'm having massive problems with Illustrator CC. The open and paste commands work once or twice and then nothing. Unless I quick the program, they will not work. I have tried everything. I took the drastic step today and erased the hard disk and loaded EVERYTHING again. And I mean everything. I even tested Illustrator without activating the fonts to see if it was a font conflict. Nothing. I'm done. I have tried everything. Has anyone else had this problem? I need help…

    Hi Nicholas Petropoulos,
    I am sorry but even i am running out of options now.
    Try these.
    Make sure you do not have any browser open when you use Illustrator.
    If you are using a magic mouse or Wireless Keyboard.
    Try disconnecting them and check the performance.
    Also when the issue happens, do you have to force close the application to make it work again?
    The mouse and other options do not work on Illustrator. Are you able to use the mouse any where else on the machine when the issue happens ?
    Regards,
    Nikhil Gupta.

  • Send file as email attachment not working

    any help would be greatly appreciated...
    When I click "send file as email attachment" it will open outlook with the PDF attached but when I click send on the email,  the email closes like it is sent but never actually gets sent (nothing in sent items and recipient never gets the email)
    Adobe Acrobat 11 Pro (Creative Cloud Suite installed)
    Outlook 2013

    Hi sandyw26405588,
    Could you please try sending PDF as email attachment via another email apart from Outlook.
    Are you able to send the file successfully?
    Also, go under 'Help> Check for Updates' and ensure if you are using the latest version of Acrobat XI i.e. 11.0.10
    Have you tried sending any other PDF via Outlook?
    Let me know.
    Regards,
    Anubha

  • FTP & Wildcards (File adapter issue) - asterisk not working

    Hi guys!
    We need to use FTP sender adapter and we need to pick up all files present in the directory. Normally we would use asterisk (*), but the adapter is not processing the files. It behaves like the directory would be empty.
    Do you use wildcards in FTP sender channel? Is it working for you?
    Thanx!  Olian

    Hey Olian
    >>worng file list generation
    whenever you give any wildcard character for filename first of all a file list is generated,this file list contains names of all the files in the source directory(if you have given *) or names of files which satisfy your selection criteria(if you have given?).
    once the list is generated then the files are picked up based upon the list.
    to me it looks that this list is not being generated and due to which you are unable to pick the files using wildcard.
    There could be other issues too but i m not sure about them
    Thanx
    Aamir

  • Sender file adapter with FCC not creating last field

    Hi,
    I've got the following file:
    field1;field2;field3
    FCC is the following:
    Recordset streucture: ITEM,*
    ITEM.fieldSeparator     ;
    ITEM.endSeparator     'nl'
    ITEM.fieldNames FIELD1,FIELD2,FIELD3
    ignoreRecordsetName     true
    I expect to generate the following XML:
    <FIELD1>field1</FIELD1>
    <FIELD2>field2</FIELD2>
    <FIELD3>field3</FIELD3>
    That's working OK. The problem is when I receive a file with the FIELD3 empty. Example:
    field1;;
    I expect:
    <FIELD1>field1</FIELD1>
    </FIELD2>
    </FIELD3>
    But I get:
    <FIELD1>field1</FIELD1>
    </FIELD2>
    And this raises an error during the mapping because the FIELD3 is mandatory in the Data Type definition, even it's empty

    I expect:
    <FIELD1>field1</FIELD1>
    </FIELD2>
    </FIELD3>
    But I get:
    <FIELD1>field1</FIELD1>
    </FIELD2>
    use a mapwithdefault in your mapping so that it will always create an empty node if there was no value to be mapped to the target field.

  • Archive file with errors in sender file adapter not working! please help!

    Hi Experts,
       I have a file to RFC scenario. the input is a XML file. I have setup the flag in sender file adapter channel for archiving the input files with errors. But it is not working.
    For testing I have used an invalid xML file for example without the main XML tag. I have also tested with a MSWORD file saved with.xml extension. But in both the cases the files are not getting archived.
    My archive location permissions are fine and in fact normal archive operation is happening. That is, if I select the processing mode as "Archive" and gave the Archive directory then files are getting archived. The problem is only with the "Archive faulty source files" option.
    What am I missing? DO I need to do some more configurations?
    What are the prerequisites if any for this option?
    How to test this?
    Please help me! I will be greatfull to you all!
    Thanks & Regards
    Gopal

    and go thru this links
    Creating a Single Archive of the Version Files
    http://help.sap.com/saphelp_nw04/helpdata/en/79/1e7aecc315004fb4966d1548447675/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/31/8aed3ea86d3d67e10000000a114084/frameset.htm
    Note: reward points if solution found helpfull
    Regards
    Chandrakanth.k

  • Sender file adapter - filename containing  *  does not work

    Hi All,
    I am doing simple file-file scenario wherein my filename is something like
    MATMAS05_XI20070911-150159-088.xml 
    there are many files having similar kind of  name which are supposed to be picked
    so simply I can go on writing <b>MATMAS05_XI*.xml</b> in filename
    it is not working.. communication monitoring gives error <i>Error occurred while connecting to the FTP server "10.25.117.237:21": java.lang.NullPointerException</i>
    But  when I use character '?' then it works fine - '?'  placeholder for each extra character
    I am on SP 20.My adapter is configured properly. FTP server working fine with '?' or simple filename. So bit confused why it is not working with *
    Are there some BASIS settings which have to be in place to work it out with * ?
    All your inputs are welcome !!
    Thank You,
    Mugdha kulkarni

    Hi
    this error is not related to multimple files or sending with the * char.. you can use it
    see the below link
    /people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter
    The error related to the server connection.. also check the ip address is correct or not you configured correctly or not..
    also clarfity the correct error description ..
    Chilla

  • FCC Send File Adapter - missingLastFields not working

    Hi
    I have a flat file to capture using the sender File adapter
    Parameter as follows:
    Header_fieldNames : Key,Name,StaffID,Telephone
    Header_fieldFixedLengths :  2,12,10,8
    Header_endSeparator : 'nl'
    Line_fieldNames : Key,Address,Company,LineText
    Line_fieldFixedLengths :  2,20,20,40
    However there are times where last field come in missing.
    Hence I use the Header_missingLastFields : error
                              Line_missingLastFields : error
    However it does not seem to be working as the adapter fails to pick the file from the FTP folder
    but if I  replace error with ignore, the sender adapter picked the files and process and send to the receiver adapter.
    I need to flagged error in sxmb_moni if last field or last few fields are missing....any advise how could this be achieve ?
    Regards
    Fred

    Hi Freddy,
    I think you might like to specify missingLastFields = add. then it will add the missing fields as empty. you can further check if these are empty in mapping and then fail the message or create an alert.
    If you specify "ignore" then you will not get those fields in your structure and if you specify "error" then the file will not be picked up.
    have a look here
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    missingLastfields
    If the inbound structure has less fields than specified in the configuration then the XML outbound structure is created as follows:
    ○       ignore
    Outbound structure only contains the fields in the inbound structure
    ○       add
    Outbound structure contains all fields from the configuration; the fields missing in the inbound structure are empty.
    ○       error
    Conversion is terminated due to the incomplete inbound structure. An error message is displayed
    regards,
    francis

  • KeyFieldValue in Sender File Adapter Not Working

    Hi,
    I have a flat file like this...
    1Field1Field2Filed3.....
    2Field1Field2Field3....
    1Field1Field2Filed3.....
    2Field1Field2Field3.....
    1Field1Field2Filed3.....
    2Field1Field2Field3....
    My requirement is to pick only lines starting with '1'.
    I have configured the Sender File Adapter like this,
    Recordset Structure : SOURCE,*
    Key Field Name: KF
    Key Field Type : String(Case-Sensitive)
    File Content Conversion:
    SOURCE.fieldFixedLengths  1,5,5,5....
    SOURCE.fieldNames           KF,FIELD1,FIELD2....
    SOURCE.keyFieldValue      1
    After all this, still it picks up all the recored instead of records starting with '1'. Can any one solve this?
    Regards,
    Sreedhar

    If you feel module processor is bit tough you can use XSLT Mapping which is simple in sloving ur problem.
    Check this blog to do a sample example using module processor.
    /people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter
    To implement the above check this link....
    https://websmp201.sap-ag.de/~sapdownload/011000358700003237612005E/HowToCreateAdapterModules.pdf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e21106cc-0c01-0010-db95-dbfc0ffd83b3
    http://help.sap.com/saphelp_nw04/helpdata/en/8b/895e407aa4c44ce10000000a1550b0/content.htm
    /people/gowtham.kuchipudi2/blog/2006/01/13/stop-creation-of-an-empty-file-from-file-adapter-using-module

  • Sender File Adapter Not Showing in Decentral Adapter Engine

    Hi,
    We have recently implemented a Decentral Adapter Engine on a windows box. The adapter engine seems to be working fine because my adapters show and seem to work fine in it.
    However, when I define a Sender File Adapter that uses File Content Conversion message protocol instead of just File messaeg protocol, the adapter does not show up in the decentral adapter engine.
    I made sure that Adapter Engine parameter in the Sender File Adapter shows the new adapter engine but that does not seem to be working. If change the Adapter Enginer parameter to show the Central Adapter Engine, then I can see the Sender File Adapter on the Central Adapter engine and it works fine. (Note: The Central Adapter Engine is installed on a Unix box) 
    Here are the paramters I defined for the Sender File Adapter:
    - Transport Protocol: File System (NFS)
    - Message Protocol: File Content Conversion
    - Adapter Engine: (new Adapter Name)
    Source Directory: (
    server/drive/path)
    File Name: purchaseOrder.txt
    Quality of Service: Exactly Once
    Poll Interval (secs): 60000
    Poll Interval (msecs):
    Retry Interval (secs):
    Processing Mode: Archive
    Add Time Stamp (checked)
    Archive Direcotry: (
    server/drive/path/archive)
    Process Read-Only files: (not checked)
    Processing Sequence: By Name
    Fiel Type: Text
    File Encoding:
    Operating System Command:
    Additional Files (not checked)
    Content Conversion Parameters
    Document Name: MT_Request_File_Data
    Document Namespace: http://nxy.tots/fg_admin
    Document Offset:
    RecordSet Name: Purchasing
    RecordSet Namespace:
    RecordSet Structure: Purchase_Record,*
    RecordSet Sequence: Ascending
    RecordSets per Message: 1
    Key Field Name:
    Key Field Type: String(Case-Insensitive)
    Purchase_Record.fieldFixedLengths: 8,4,2,10,10,12,18,12
    Purchase_Record.fieldFixedType: char
    Purchase_Record.fieldNames: Request_Action,Request_PO_Num,Request_PO_LN,Request_PO_Date,Request_Purchasing_Org,Request_Purchasing_GName,Request_Created_By,Request_Vendor_Name
    Purchase_Record.fileContentFormatting: trim
    Adapter Status: Active
    Advanced Mode: (not checked)
    Your help is much appreciated.

    Hi Alaa,
    look into this document:
    http://service.sap.com/nw-howtoguides -> Exchange Infrastructure -> Troubleshooting: Adapter Engine 3.0 (Expert Call slides)
    If the File Adapter works without conversion, then you should count the number of fields in a row. If it differs from the configuration, then it runs on error.
    Another idea is to check the content type of the file. When you do not enter a File Encoding, then the file adapter assumes utf-8. If the file is for example latin-1, then the number of characters in a row are not counted correctly.
    Regards
    Stefan

  • Sender File adapter is not picking up file

    Hi,
    I am usning the sender file adapter to process a file through FTP. Adapter does not pick up the file, however it recognise the file, as it appears in the error message. Below is the text of the error message:
    <i>Could not process file '<b>filename</b>': com.sap.aii.adapter.file.ftp.FTPEx: 550 toSAP: No such file or directory.</i>
    I am not sure yet whether this file is <b>read only</b>. Can read only file not be processed in FTP ?
    Thanks

    Hi, I have the same problem. In advance, we can see in FTP Server log that CWD command it is called twice, for example :
    00:00:59 10.15.64.187 [4669]USER MDM 331 0
    00:00:59 10.15.64.187 [4669]PASS - 230 0
    00:00:59 10.15.64.187 [4669]CWD MDM_55600_MATERIAL_STD\Outbound\ESN_800\_MATMAS05\Ready 250 0
    00:00:59 10.15.64.187 [4669]CWD MDM_55600_MATERIAL_STD\Outbound\ESN_800\_MATMAS05\Ready 550 3
    00:01:59 10.15.64.187 [4669]QUIT - 550 0
    If we create a directory MDM_55600_MATERIAL_STD\Outbound\ESN_800\_MATMAS05\Ready into the first directory Ready where it is positioned with first cwd , its works !!
    First CWD is called for read file an seccond for processing, somebody knows because this behavior ?
    Best Regards
    Claudio Maino

Maybe you are looking for

  • I want to store my ibook.  Can I take out the battery and simply not use it for months?

    Just bought a new imac and want to mothball the laptop.  Can I simply remove the battery and not use it? Do I have to recharge the battery every few months? Can't see the point in leaving it plugged in as its not being used, yet in case I need it as

  • Strange trackpad

    Hi everyone have a little problem with my trackpad, would be nice if you could help me. my trackpad is not working, but in a strange way. i can move the little arrow as I like to, but the active corners nor the dock are reacting, neither can I click

  • Nodes and attributes

    Hi, I want to know that is there any restrictions to declare nodes and attributes that come under these nodes? For Eg, the requirement is to create a miscellaneos invoice through a ABAP web dynpro screen.There are many fields like Vendor name , Invoi

  • Regarding webservices

    i don't know wether it is right forum to place it or not i am calling webservices using XSP and <soap:call my code is <code> <?xml version="1.0" encoding="UTF-8"?> <xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:soap="http://apache.

  • Transferring files from an iPad to a Goflex Satellite

    I travel on photography trips with an iPad, camera connection kit, digital camer, and Goflex wifi hard drive.  I take pictures (camera), load to iPad (connectivity kit), edit (iPhoto), then would like to MOVE the pictures to the Goflex drive.  This s