XML validation in sender file adapter

Hi
I am using FCC on the sender file adapter ....i need to make sure that one of the fields should always be integer else the sender adapter should give error
Can i use xml validation with FCC on the sender file adapter?

Hi Hema,
As per understanding you need to check one or few fields value is integer or not.
You can achieve in 2 ways :
Case1:Using inbuilt xml validation options.
For 7.11 and below
1)In ESR/Message type/Export the xsd to local machine.
2)Insert the xsd file in the below loc
/usr/sap/<sid>/DVEBMGS00/j2ee/cluster/server0/validation/schema/
<guid>/<namespace1>/<service_interface_name>/<namespace2>
<sid>: System ID of the server instance.
<guid>: The GUID of the SWCV.
<namespace1> : The namespace within which the service interface is defined.
<service_interface_name> : The name of the service interface.
<namespace2>
: The namespace of the Message Type used by the service interface. In many
instances, namespace1 and namespace2 are the same.
Italic path folders need to create by you.
For 7.3 and above
Michal's PI tips: XML validation - changes in 7.3
Case 2 :Handling using simple UDF.
Input-->UDF-->Output
try {
   Integer.parseInt(input);
   return input ;
catch(NumberFormatException e) {   
throw new StreamTransformationException( "Input field value for xyz field "+input+"is not in integer format.Plz correct it"); 
Regards
Venkat

Similar Messages

  • Sender File Adapter - Content Conversion

    HI Friends,
    I got a scenario where I need to convert the File to XML document through Sender file adapter..
    My file looks like below.
    BATCH1234........
    12DASER123142JMM
    237DSAFDLKC839890
    45SDFLASJ90011
    BATCH3455...
    132FGAR
    SD21352525
    BATCH998898...
    123145DSRTW
    12FSTS
    So there is a Header and Body for each record set..
    My XML Structure is as follows.
    <TimeStructure>
      <TimeRecord>
         <ControlRec>
             <Field1>BATCH </Field1>   
             <Field2> ...</Field2>
         </ControlRec>
         <DataRec>
             <F1> ...... </F1>
             <F2> ...... </F2>
         </DataRec>
      </TimeRecord>
      <TimeRecord>
         <ControlRec>
             <Field1> BATCH  </Field1>   
             <Field2> ADFAS  </Field2>
         </ControlRec>
         <DataRec>
             <F1> ...... </F1>
             <F2> ...... </F2>
         </DataRec>
       </TimeRecord>
    </TimeStructure>
    The blog <a href="/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem:///people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    is somewhat relevant to my requirement.
    But the problem is I have the keyfield "BATCH" for my header file but don't have any <b>key field in the data record</b> of the input file.
    Please help me out how to mention the configuration parameters.
    Regards,
    Kumar

    Hi,
    If you don't have constant key value for your detail records, then you can not directly get the required xml.
    So in this case, you can read all the records in a common Row model, i.e each record will be considered as a one row with all the values, and then split this row with Substring or java functions in the mapping.
    Even you can do this in the Adapter module .
    If you have key value for each record to identify then you can try with content conversion.
    Regards,
    Moorthy

  • Sender File Adapter Behaviour

    Hi everyone,
    Could it be possible to create a  XML with plain structure from flatfile that is with out recordset.
    Eg., my flatfile will be like             
    name1,age1,sal1
    name2,age2,sal2
    I have to get the xml as
    <Recordset>
      <name>name1</name>
      <age>age1</age>
      <sal>sal1</sal>
    </recordset>
    <Recordset>
      <name>name2</name>
      <age>age2</age>
      <sal>sal2</sal>
    </recordset>
    The important thing is <Recordset> element should be created under 'Recordsetname' parameter in sender adapter.
    My question, Is it possible to create a xml without recordset as shown above because there is no recordset to specify in 'recordset structure' parameter.
    And Is it possible to generate complex XML structures using sender file adapter, i.e subnodes with parent child relationship.
    Regards,
    Yuva

    Hi,
    Check this out.. <a href="http://help.sap.com/saphelp_nw04/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm[url=http://help.sap.com/saphelp_nw04/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm]http://help.sap.com/saphelp_nw04/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm[url=http://help.sap.com/saphelp_nw04/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm]http://help.sap.com/saphelp_nw04/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm</a>
    Also, you can not create XML without recordset name since this is the name of the message type you create in Repository. You can manipulate only the sub nodes in the message type (data types).
    VJ

  • How to fetch XML file thru Sender File adapter

    Dear friends,
    I am having a scenario of fetching an xml file through sender file adapter. When i am testing my mapping in Test mode of message mapping it is working fine but when i fetch the real source xml file which is not having the XML namespace and Source Message type.
    It is throwing error in Runtime.
    At the same time when i edit the source xml file  with the XML NAMESPACE & Source Meessage type it is passing successfully to the target system.
    Kindly tell me friends how to solve this problem.
    Take care,
    Karthik

    Hi Friends,
    My Source XML file:
    <?xml version="1.0" encoding="UTF-8"?>
    <PeopleMsg>
       <Records>
          <Record>
                <FirstName>Dawei</FirstName>
                <LastName>He</LastName>
                <MiddleNameOrInitials>D</MiddleNameOrInitials>
                <IDs>
                    <IDType>
                          <IDTypeName>Employee ID (Country Equivalent)</IDTypeName>
                    </IDType>
                    <IDs>999999999999</IDs>
                </IDs>
           </Record>
       </Records>
    </PeopleMsg>
    My xml file in the Test Tab of Message mapping:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Source_MT xmlns:ns0="http://kpmg.com/ibs/mdm">
    <PeopleMsg>
       <Records>
          <Record>
                <FirstName>Dawei</FirstName>
                <LastName>He</LastName>
                <MiddleNameOrInitials>D</MiddleNameOrInitials>
                <IDs>
                    <IDType>
                          <IDTypeName>Employee ID (Country Equivalent)</IDTypeName>
                    </IDType>
                    <IDs>999999999999</IDs>
                </IDs>
           </Record>
       </Records>
    </PeopleMsg>
    </ns0:Source_MT>

  • 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)

  • Sender File Adapter: No Messages

    Hi,
    I have configured a sender file adapter to read a flat file using file format conversion, in the file poler mode using NFS. I could confirm that the File is being read, and the adapter status from the Adapter framework (is:port/AdapterFramework) indicates the adapter is working fine (Green light, and last message processed at XXX........).
    However, I did not find any messages from SXMB_MONI.
    Further, I got inot the RWB, and found the following Audit log:
    It indicates an error "Transmitting the message to endpoint http://kansbwul01:50000/sap/xi/engine/entry?action=execute using connection AFW failed, due to: Received HTTP response code 404.."
    What is the problem, and how can I resolve it?
    Thanks
    Feroz
    Success     Channel CDWFileReader: Entire file content converted to XML format
    Success     Send text file "/tmp/XIDemo/3315-TL-20041126-0000IN.txt", size 164533, character encoding ISO8859-1 with QoS EO
    Success     Application attempting to send an XI message asynchronously using connection AFW.
    Success     Trying to put the message into the send queue.
    Success     Message successfully put into the queue.
    Success     The application sent the message asynchronously using connection AFW. Returning to application.
    Success     Confirmation mode test found. File will be resent next time
    Success     The message was successfully retrieved from the send queue.
    Success     The message status set to DLNG.
    Error     Transmitting the message to endpoint http://kansbwul01:50000/sap/xi/engine/entry?action=execute using connection AFW failed, due to: Received HTTP response code 404..
    Success     The asynchronous message was successfully scheduled to be delivered at Sun Jan 09 19:13:21 CST 2005.
    Success     The message status set to WAIT.

    Hi,
    Further to my earlier post, the following is the message log from the message monitor. Any clues whats going wrong. Can I configure a File Sender->File Receiver scenario?
    Where and how are the port settings and user credentials configured for the AFW.
    -Feroz
    Message ID  f49f6d21-632c-11d9-805a-0003ba54d619 
    RefToMsg ID    
    Conversation ID    
    Sequence Number  0 
    Message Type  Asynchronously Sent Message (SEND) 
    From Party    
    From Service   Name:  LB1_CDWFilePoler  
    To Party    
    To Service   Name:  LB1_CDWFileWriter  
    Action   Namespace:  http://erc.ge.com/cdw/poc Name:  ReadFile  
    Connection Name   AFW 
    Status   Not Delivered 
    Profile   XI 
    Transport   HTTP 
    Delivery Semantics   Exactly Once 
    Times Failed   4 
    Number of Retries   3 
    Sent / Received  01/10/2005 12:42:33 
    Transmitted / Delivered  01/10/2005 12:57:33 
    Next Delivery  01/10/2005 12:57:33 
    Persist Until  02/09/2005 12:42:33 
    Valid Until   
    Retry Interval   5 Minutes 
    Address   http://kansbwul01:50000/sap/xi/engine/entry?action=execute 
    Credential   SAPPasswordCredential(XIAFUSER):password=********:sapclient=100:saplang= 
    Transport Headers   SOAPAction="http://sap.com/xi/XI/Message/30" Content-Type=Multipart/Related; boundary=SAP_63fa9d21-6337-11d9-8f3c-0003ba54d619_END; type="text/xml"; start="" HTTP=POST 
    Node ID   1485750

  • Mapping  problem due to FCC in sender file adapter

    Hi All
    I am doing File( Flat File ) to RFC Scenario.it is working fine..
    the problem comes in mapping with multiple records.
    FCC at sender file adapter is used
    my Data Type are :
    Source DT                      Target RFC import parameter(table).
    E2ED20*                            ITEM*
        KEY                                    VBELN
        VBELN                                 POSNR                                                
    E2E24*                                     CHARG
        KEY
        POSNR                             
        CHARG
    <b>*->>multiple occurence
    E2ED20  and E2E24 are 2 segment ,KEY is used in FCC to identify E2EDL20 & E2EDL24</b>
    My source text file is like this :
    E2EDL20                       0200
    E2EDL24                       xyz
    E2EDL20                       0201
    E2EDL24                       abc
    E2EDL24                       efg
    E2EDL24                       mln                      
    E2EDL20                       0202
    E2EDL24                       gty
    so the payload should be :
      0200   xyz
      0201   abc
      0201   efg     
      0201   mln
      0202   gty
    in <i>FCC ignoer record set= true</i>
    otherwise is not called...
    i try to use split by value & use oneasmany  , not helpfull.
    in message mapping when i checked th field VBELN -> display queue
    i am getting an array   0200
                                     0201
                                     0202  in white fields
    thanks & regards
    Ashutosh Rawat

    <b>Source payload</b>
      <?xml version="1.0" encoding="utf-8" ?>
    - <ns:MT_MATNO_FILE xmlns:ns="urn:abc:xxx">
    - <E2ED20>
      <KZ>E2EDL20</KZ>
      <FIELD1>020</FIELD1>
      <b><VBELN>0083662685</VBELN></b>
      </E2ED20>
    - <E2E24>
      <KZ>E2EDL24</KZ>
      <FIELD2>020</FIELD2>
      <POSNR>900001</POSNR>
      <CHARG>1078629</CHARG>
      <LFIMG>3200</LFIMG>
      <MEINS>PCE</MEINS>
      </E2E24>
    - <E2E24>
      <KZ>E2EDL24</KZ>
      <FIELD2>020</FIELD2>
      <POSNR>900002</POSNR>
      <CHARG>1078630</CHARG>
      <LFIMG>1895</LFIMG>
      <MEINS>PCE</MEINS>
      </E2E24>
    - <E2E24>
      <KZ>E2EDL24</KZ>
      <FIELD2>020</FIELD2>
      <POSNR>900003</POSNR>
      <CHARG>1079145</CHARG>
      <LFIMG>1883</LFIMG>
      <MEINS>PCE</MEINS>
      </E2E24>
    - <E2E24>
      <KZ>E2EDL24</KZ>
      <FIELD2>020</FIELD2>
      <POSNR>900004</POSNR>
      <CHARG>1079146</CHARG>
      <LFIMG>3195</LFIMG>
      <MEINS>PCE</MEINS>
      </E2E24>
    - <E2ED20>
      <KZ>E2EDL20</KZ>
      <FIELD1>020</FIELD1>
    <b> <VBELN>0083662648</VBELN></b>
      </E2ED20>
    - <E2E24>
      <KZ>E2EDL24</KZ>
      <FIELD2>020</FIELD2>
      <POSNR>900011</POSNR>
      <CHARG>1001450</CHARG>
      <LFIMG>2946</LFIMG>
      <MEINS>8PC</MEINS>
      </E2E24>
    - <E2ED20>
      <KZ>E2EDL20</KZ>
      <FIELD1>020</FIELD1>
    <b> <VBELN>0083673936</VBELN></b>   </E2ED20>
    - <E2E24>
      <KZ>E2EDL24</KZ>
      <FIELD2>020</FIELD2>
      <POSNR>900012</POSNR>
      <CHARG>1073953</CHARG>
      <LFIMG>2458</LFIMG>
      <MEINS>PCE</MEINS>
      </E2E24>
      </ns:MT_MATNO_FILE>
    <b>at target what required is</b>
    <item>
    <b><VBELN>0083662685</VBELN></b>
    <POSNR>900001</POSNR>
    </item>
    <item>
    <b><VBELN>0083662685</VBELN></b>
    <POSNR>900002</POSNR>
    </item>
    <item>
    <b><VBELN>0083662685</VBELN></b>
    <POSNR>900003</POSNR>
    </item>
    <item>
    <b><VBELN>0083662685</VBELN></b>
    <POSNR>900004</POSNR>
    </item>
    <item>
    <b><VBELN>0083662648</VBELN></b>
    <POSNR>900011</POSNR>
    </item>
    <item>
    <b><VBELN>0083673936</VBELN></b>
    <POSNR>900012</POSNR>
    </item>
    in Sender FCC
    E2ED20.fieldFixedLengths               7,76
    E2ED20.fieldNames                            KZ,VBELN
    E2ED20.keyFieldValue              E1EDL20
    E2ED20.endSeparator              'nl'
    E2E24.fieldFixedLengths              7,24,13,7,3
    E2E24.keyFieldValue                              E1EDL24
    E2E24.fieldNames                               KZ,POSNR,CHARG,LFIMG,MEINS
    E2E24.endSeparator                              'nl'
    ignoreRecordsetName              true
    source file is already there...
    Message was edited by:
            ashutosh rawat

  • 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

  • Recordset per message in Sender File Adapter

    Hi Friends
    I have configured a sender file adapter to pick up *.txt files from a specific path, Since the file is having thousands of records it is failing to process the file at  PI level . In order to avoid the problem I have kept Recordset Set Per Message as 10 , but still PI is processing all the records into a single message. Please help me in troubleshooting it.
    Regards
    Suman.

    Hi Suman,
      Go thru these threads for troubleshooting...
    Massive file
    Processing huge file loads through XI
    Processing of huge no of Inbound xml files
    Bottleneck in Large file processing
    How to process large data files in XI  ?  100 MB files ?
    Regds,
    Pinangshuk.

  • Problem facing in sender file adapter

    Hi XI gurus,
    I am facing a problem in sender file adapter communcation channel
    Is there any restriction in XI that XI picks max of 100 at a time .
    Actaully probolem here is My XI sender file adapter need to pick 2800 file from ftp.
    adapter need to file pick files ranging SAP_OUT_066581_280_INV.xml to SAP_OUT_SZ22TXN066581_2800_INV.xml
    to pick these we have given file name as u201CSAP_OUT_*_INV.xmlu201D when ever given this XI is coming with no messges.
    when ever file name is given as SAP_OUT_SZ22TXN066581_3*_INV.xml it XI has picked file from 300 to 399
    when eve tried with the options to pick all the message
    SAP_OUT_SZ22TXN066581_*_INV.xml  Failed with no messaege
    even atleast tried to pick 1000 mesaanges from 1000 to 1999
    i have given like this
    SAP_OUT_SZ22TXN066581_1*_INV.xml failed with no messages
    while trying with option xi picking file max 100 at a time
    SAP_OUT_SZ22TXN066581_1*_INV.xml
    SAP_OUT_SZ22TXN066581_11*_INV.xml
    SAP_OUT_SZ22TXN066581_12*_INV.xml
    like this I am increaing the number and picking maximum of 100 messages only
    Is there any way to auto mate this or nny file names need to be required
    waiting for your reply

    Check SAP Note 821267 - FAQ: XI 3.0 / PI 7.0/ PI 7.1 File Adapter.
    I guess point 8 might relate to your problem if the FTP adapter timeout occurs.
    check the note 849089 as well.
    Also check point 13 and 26.
    Gaurav Jain
    Points if answer is useful
    Edited by: Gaurav Jain on Jun 6, 2008 4:20 PM

  • 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

  • Problem in Sender File Adapter using FCC with Variable structure

    Hi Experts,
    Hi Experts,
    I have facing an issues while using FCC in Sender File adapter. Below are the configs for the same:-
    Recordset structure required is ==HEADER,1,DATA,*,TRAILER,1
    Recordset per message == *
    Key Field Name == Key
    (Sorry i dont know how to insert screen shot here..pls tell me how can i insert screen shots here on sdn)
    HEADER.fieldSeparator           ,
    HEADER.endSeparator           u2018nlu2019
    HEADER.fieldNames               Key,x,y,zu2026
    HEADER.keyFieldValue          1
    HEADER.keyFieldInStructure      ignore
    HEADER.fieldContentFormatting     trim
    HEADER.additionalLastFields     ignore
    HEADER.missingLastFields     ignore
    DATA.fieldSeparator
    DATA.endSeparator
    DATA.fieldNames
    DATA.keyFieldValue
    DATA.keyFieldInStructure
    DATA.fieldContentFormatting
    DATA.additionalLastFields
    DATA.missingLastFields
    Using same variables for Trailer record as well.
    Source CSV file which i am picking:-
    ADSE ,RASD,replan  Contact ,2  0080509 0 8:43:25   ,        
    EMPL ,0011111,  S Top Up ,20080401  ,20080430  ,sdf  ,                          00000000431250  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:07:35,
    EMPL ,0222222,  r Cash Award ,20070701  ,20070703  ,ded  ,                          00000000023509  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:09:31,
    EMPL ,0233333,   Cash Award ,20070801  ,20070831  ,df  ,                          00000000044057  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:10:56,
    EMPL ,0244444,   Cash Award ,20080101  ,20080111  ,sf  ,                          00000000026717  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:08:29,
    BTRL ,   5140, 
    When i tested the scenario and monitored it using MDT in CC monitoring tool its giving me below mentioned error.
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    XML document must have a top level element. Error processing resource 'http://myurlname/mdt/me...
    However if i change the occurence of DATA as some specific value for eg 4 instead of * it works fine.
    Kindly help me in solving this problem.
    Thanks,
    Aditya Verma

    Hi Madan,
    Thanks a lot for giving me the way to this. But when i tested this with the below file its giving me the same error. Please let me know if i need to do any changes to the parameters mentioned above:-
    ADSE ,ASDA,Sha  replan Fr ont Feed Contact ,2  0080509 0 8:43:25   ,        
    EMPL ,0011111,   Cash Top Up ,20080401  ,20080430  ,TPV  ,                          00000000431250  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:07:35,
    EMPL ,0222222,   r Cash Award ,20070701  ,20070703  ,TPV  ,                          00000000023509  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:09:31,
    EMPL ,0233333,  r Cash Award ,20070801  ,20070831  ,TPV  ,                          00000000044057  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:10:56,
    EMPL ,0244444,   Cash Award ,20080101  ,20080111  ,TPV  ,                          00000000026717  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:08:29,
    EMPL ,0255555,   Cash Award ,20080301  ,20080320  ,TPV  ,                          00000000027870  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:08:25,
    EMPL ,0266666,   Cash Award ,20071001  ,20071020  ,TPV  ,                          00000000020681  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:09:31,
    EMPL ,0877777,   Cash Top Up ,20080401  ,20080430  ,TPV  ,                          00000000036000  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:07:05,
    EMPL ,0888888,   Leaver Cash Award ,20071201  ,20071231  ,TPV  ,                          00000000157200  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:11:29,
    EMPL ,0899999,  S Leaver Cash Award ,20080301  ,20080331  ,TPV  ,                          00000000153530  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:07:42,
    EMPL ,0800000,  S Leaver Cash Award ,20070701  ,20070731  ,TPV  ,                          00000000012234  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:08:34,
    BTRL ,   5140,
    This the original csv file which i'll get in live. Kindly suggest as ur solution worked with other file but not working with this scv file.
    Thanks a lot,
    Aditya.

  • File to SOAP,error in sender file adapter

    Hi,
    I am doing a scenario FILE to SOAP where In file adapter I am using Quality od service as Exactly once in order.I am getting the below error.It works fine when I use QOS=Exactly once.Not sure why,can you guys please help me.Can we really use QOS-EOIO for sender file adapter,where exacly do we use it.
    Thanks
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter  -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/HTML</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Edited by: guest xi on Apr 16, 2008 11:55 AM

    Hi,
    Thanks for your replies guys.I diid give the queue name ,I dont know what is causing the error.Now even QOS=EO which was working fine before is throwing an error.I am using the same file name for both
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter   -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/HTML</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

  • Sender File Adapter Not Picking Any File

    Dear Expert,
    I am newbie in PI. Just tried to create File Content Conversion Scenario. Details as follow :
    1. Source Directory ..\file\log\test_q.txt
    2. Target Directory  ..\file\log\xml\test_q.xml
    Transport Protocol : NFS
    Message Protocol : File Content Conversion
    Adapter Engine    : Integration Engine
    I have completed all the design and configuration in IR and ID. However, when I produce the log file in the directory, nothing happen.
    Hacing checked in the RWB as well, I could not find any clue. simply nothing happen.
    Would you please advise me on how to trigger the interface? As per my understanding, sender file adapter will be activated directly once the file is created.
    Thank you very much in advance.
    Best Regards,
    Y

    Hi Yonisiwa,
       Things you should check here are:
    1) If the sender file adapter is active or not.
    2) If the source directory is correctly spelt or not. (Check if you are using the correct slash \ or /)
    3) The file name/mask is correct or not.
    4) The polling interval is too long.
    Alternatively, you can check the message monitoring in RWB at the adapter level and go into the audit log if the message.
    There you can see the reason for the file not being picked up.
    Also check the Communication Channel status in the Component Monitoring link in RWB.
    Regards,
    Ravi Kanth Talagana

  • Sender File Adapter : File Name Determination

    Hi All,
    My Scenario :
    1) Im my scenario i need only the "FileName" of the File when picked up by the Sender File Adapter.
    2) Rest Content of the File need not be in the XML file format.
    Now what i did was developed "File Adapter Module " to get the "FileName" when picked up by the Sender File Adapter.
    Outcome : When i put the developed module at first and put the file in specified folder allowint the Sender file Adapter to pick up. Now Everything is fine working when one kind of File is placed as per my Content Coversion paramaters.
    Actual : My Client would place file of any kind (.jpeg -> Mostly , gif ) i need to get only the file name in the Outbound interface , which i would split it further to my Target Interface.
    How could i achieve this , when i took away this content conversion , in sxmb_moni it shows error.I need only the filename in the Outbound not the Content , moreover the hit is i donot know what could be content of my file as it could be different and varing , so i could not set particular content conversion paramters:
    Second Question:
    Now my outbound XML interface looks as below when i test with a file , with proper content conversion paramerters:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <MT_DMS_FINAL>
    - <Record>
    - <Row>
      <FirstName>2323_eer_rtr</FirstName>
      </Row>
      </Record>
      <FileName>d:\mdmtest\srinivaS\padusrini.txt</FileName>
      </MT_DMS_FINAL>
    Well i have designed in my MI only FirstName , how to capture this element "FileName" which i can use it in mapping , if i have to write any UDF to capture it ,please guide me.
    thx in advance for u r help
    with regards
    Srini

    Hi Guys ,
    Can i use File Content Conversion for .pdf document , my pdf doc content is not known, means it"s a complete info doc.I may get .jpeg any picture or drawing.
    I thought i can use below file content conversion paramters:
    Document Name : MT_DMS_FINAL
    RecordSet Name : Record
    RecordSet Structure : Row,*
    Row.fieldNames - FirstName
    Row.fieldSeparator - ;
    Row.processFieldNames - fromConfiguration
    Row.additionalLastFields - ignore
    Row.missingLastfields  -  ignore
    Now i put a pdf doc of unknown content , and my assumption was some set of charater would be dumped in  XML and rest would be ingonered which is least bothered part in my scenario , unless i get the filename from runtime ot Adapter module developed
    But in RWB CC monitoring i see below error :Error: org.xml.sax.SAXParseException: Illegal XML character:  &#xb;.
    Any views on this , can any one help me out with the above requirment. Hope u guys got wat am trying to put out here
    thx in advance for u r help
    with regards
    Srini

Maybe you are looking for