Getting error in mapping execution Invalid CHAR

hi
i am having file to RFC scenario, and the input file is an xml file and i am getting erron in mapping as below but when i download the payload and load it in the integration repository mapping tool ,i am able to execute it  succesfully. i think the problem is with the encoding , i tried with processing it in utf-8 and ansi. both the format it is giving the sam error.
<SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MMMMMMMMM_; com.sap.aii.utilxi.misc.api.BaseRuntimeException:Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xb (:main:, row:1, col:4~</SAP:Stack>
regards
sandeep

>> This is possible only with PI 7.1 ehp1.
Yes !Our verstion  is SAP EHP 1 for SAP NetWeaver 7.1 so  how can i do this.
__instead for fixing in PI i can use the belwo java mapping__
import java.io.InputStream;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.Map;
import com.sap.aii.mapping.api.StreamTransformation;
import com.sap.aii.mapping.api.StreamTransformationConstants;
import com.sap.aii.mapping.api.StreamTransformationException;
public final class MyMapping implements StreamTransformation {
    public void execute(InputStream in, OutputStream out)
        throws StreamTransformationException {
        // removing non valid characters
     BufferedReader br = new BufferedReader(in);
     out = stripNonValidXMLCharacters(br.readLine());
        // implement mapping ...
public String stripNonValidXMLCharacters(String in) {
    StringBuffer out = new StringBuffer(); // Used to hold the output.
    char current; // Used to reference the current character.
     if (in == null || ("".equals(in))) return ""; // vacancy test.
    for (int i = 0; i < in.length(); i++) {
    current = in.charAt(i); // NOTE: No IndexOutOfBoundsException caught here; it should not happen.
    if ((current == 0x9) ||
         (current == 0xA) ||
         (current == 0xD) ||
         ((current >= 0x20) && (current <= 0xD7FF)) ||
         ((current >= 0xE000) && (current <= 0xFFFD)) ||
         ((current >= 0x10000) && (current <= 0x10FFFF)))
          out.append(current);
return out.toString();
regards
sandeep
Edited by: pendyalas on Feb 4, 2011 2:07 PM

Similar Messages

  • Itunes was working fine. Tries to install latest upgrade and get error message about an invalid character in the path "Program Files (x86)". PC, Win7, nothing else appears to be having same issue.

    Itunes was working fine. Tried to install latest upgrade and get error message about an invalid character in the path "Program Files (x86)". PC, Win7, nothing else appears to be having same issue. Program still works, simply cannor upgrade.

    Thanks b noir,
    I tried this solution without success. After FixIt ran and didn't find a problem, either in looking for issues with "software upgrade" or "iTunes" it kindly offered to help me uninstall iTunes. I had thought of this as a possibilty but it seems to me that if you do that you lose a lot of "non-native-to-Apple" information you might have entered. I did this once and recovery was painfull. Is there a way to uninstall iTunes without losing all of that sort of thing? Any help would be appreciated.

  • Error in Mapping Execution

    Hi Experts,
       I am doing the dat file to RFC scenario.. development has been done.
       While testing i am facing the problem with mapping execution. I have tested with single record structure and multiple record structure.. but getting the same error.. pls see the below error.
    <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_DATA2RFC_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException:</SAP:P2>
      <SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.ParserE</SAP:P3>
      <SAP:P4>xception: Invalid char #0x0 (:main:, row:5, col:2~</SAP:P4>
      <SAP:AdditionalText />
      <SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_DATA2RFC_; com.sap.aii.utilxi.misc.api.BaseRuntimeException:Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0x0 (:main:, row:5, col:2~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    I have maintained FCC in configuration...
    can any one suggest what would be the problem.
    Thanks,
    Swetha

    Hi Stefen,
      You are absolutely right/correct.. i have saved file in another editor with ANSI.. and triggered the interface but now i am facing the problem with message mapping.. pls see the below error.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_EMFDATA2RFC_</SAP:P1>
      <SAP:P2>com.sap.aii.mappingtool.tf7.MessageMappingExceptio</SAP:P2>
      <SAP:P3>n: Runtime exception when processing target-field</SAP:P3>
      <SAP:P4>mapping /ns1:Z_H_EMF_RFC/IPFILE1/item[2]/TRMDA; r~</SAP:P4>
      <SAP:AdditionalText />
      <SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_EMFDATA2RFC_; com.sap.aii.mappingtool.tf7.MessageMappingException: Runtime exception when processing target-fieldmapping /ns1:Z_H_EMF_RFC/IPFILE1/item[2]/TRMDA; r~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    can you pls suggest abt the above error.
    Thanks,
    Swetha

  • Unexpected error during mapping execution

    Hello,
    we are implementing business intelligence for Siebel 8.1. Having one strange issue and hoping anybody could help us out.
    We are using OWB 10.2.0.1. Certain error appears during mapping execution LOAD_SR which basically loads service requests from Siebel DB to data warehouse.
    The mapping is using two tables as input (S_SRV_REQ and S_SRV_REQ_X) which are joined by S_SRV_REQ.ROW_ID = S_SRV_REQ_X.PAR_ROW_ID (+) using Joiner operator, because I always need extension table (S_SRV_REQ_X) rows either filled either containing only nulls (when there is no corresponding extension row). Sadly, this does not work, during execution it generates:
    Error:
    ORA-00997: illegal use of LONG datatype
    ORA-06512: at "DWH_ADM.LOAD_SR", line 32
    ORA-06512: at "DWH_ADM.LOAD_SR", line 3507
    ORA-06512: at "DWH_ADM.LOAD_SR", line 4553
    ORA-06512: at "DWH_ADM.LOAD_SR", line 9984
    ORA-06512: at line 1
    Warning:
    ORA-00997: illegal use of LONG datatype
    In summary, these join conditions generate same error as above:
    S_SRV_REQ.ROW_ID = S_SRV_REQ_X.PAR_ROW_ID (+)
    S_SRV_REQ.ROW_ID (+) = S_SRV_REQ_X.PAR_ROW_ID (+)
    S_SRV_REQ.ROW_ID = S_SRV_REQ_X.PAR_ROW_ID
    Strangely, when I use join condition S_SRV_REQ.ROW_ID (+) = S_SRV_REQ_X.PAR_ROW_ID, it works. But then right join is used and some records get rejected by joiner operation (those who do not have corresponding rows in extension table).
    Could someone help me with this issue?
    Any feedback would be greatly appreciated. Thank you for your time reading this!
    Edited by: user8872556 on Sep 28, 2011 2:21 AM
    Edited by: user8872556 on Sep 28, 2011 2:23 AM
    Edited by: user8872556 on Sep 28, 2011 2:23 AM

    We still were not able to solve this issue, would greatly appreciate any effort to help us out.

  • Getting error while mapping HL7 message to Backend message

    Hi all,
    can anybody help me in this regard,
    i am doing mapping between HL7 message fields and backend fields and here HL7 message is target message and i am getting error when i tested my mapping.
    error is: " min != max "
    why this error is comming?
    i mapped all mandatory(which are shown in red color)  target fields to empty constant. but still on of the field is in red. is that the reason for this error or something else? if yes then why that field is still in red even after mapping to empty constant?
    Thanks and Regards,
    Ujwalkumar

    hi
    check for the following:
    1.check for the occurence of the segments
    2.map the parents with empty constants or with resp soruce segmetns
    3. donot map empty constants to mandatory field in a segments

  • Getting error while mapping fields btween DS and Data target IO

    Hi,
    I am getting error message "Rule(target field:0DEL_GR_WT): No source units assigned" while activating transfer rules btween Data source and Data target.
    Infoobject has got mapped with source field BRGEW.
    Even in the data source the field units are GEWEI
    In BI the units are 0unit_of_wt.
    Every thing seems to be fine,but while mapping fiellds in the transfermation i am getting above error

    Hi,
    I think u have to assign source unit in transformation .
    double click on that  particular filed and it will take you to other screen and there you have choose that field and have to  assign,
    if am wrong please ignore it.
    Thanks,
    Jack

  • SAP Best Practices V 4.31 questions- Getting errors while mapping reports.

    Case 1:
    I am trying to map following reports from SAP BP V 4.31 to our data sources:
    a)POSD-Month-Material Group
    b)POSD-Month Suppliers
    c)POSD-Suppliers
    These are the 3 reports out of 9 reports under trade dashboard.
    We have followed the steps outlined in section 9 and used the code provided in appendix IX of the "Manual data source creation document"  ,
    These reports seem to use a field "DMBTR" :
    Report claims this field(DMBTR  ) would exist under following structure : ZBPBI131_STRU_TRADE_POSD
    But the document specified this(DMBTR) field as part of structure : ZBPBI131_STRU_TRADE_PO
    And the report is hence showing this field as orphaned and needs to be mapped while updating source.
    I am clueless what is wrong ( document and code given there (or) report version i got)  and how to map that DMBTR field to existing infoset and what impact it would create if i force it into the infoset declining the guiding document.
    Case 2:
    While mapping reports under" Sales Plan vs. Actual Dashboard" , I am getting error saying "Some tables were not found" ,even after  we created the Query ZBPBI131_QRYSD on top of its infoset in SAP.
    I am clueless what have gone wrong.We have followed exact steps as mentioned in the manual data source creation document.
    Any help from anyone is greatly appreciated.
    Thank you

    Ingo,
    I saw the same reply from you for  some other users post.
    Suggesting to post to All in One forums.
    I was unable to find that exact forum, could you point me with a link.
    infact if i can get to that forum, may be my question has been already answered.
    Your help is appreciated.
    Thank you

  • Runtime error and mapping execution status

    We have set maximum no of error parameter to = 50. When our mapping encounters an exception like Unable to extend space on some table space and at the time of encoutnering this exception no of error count is less than 50 - mapping returns success status. With the result that execution pipe continues with the next mapping. Though we would like to keep error count to 50 or higher value - so as not to interrupt the pipe if there is an insertion or updation failure but we would like the mapping to stop when space error or such an exception comes. Please let us know how can we achieve this.

    Borkur,
    I believe that if you look at the execution status in Workflow Monitor, you'll see that Workflow handles and reports status correctly within the top level flow and all subprocesses.
    However, OWB Audit information for subflows is NOT registered as expected, the subflows always appear with status successful to me, even when mappings fail. I'm not sure whether it is a bug or that success actually means that the flow has concluded/finished (as opposed to status busy). I've had difficulty with OWB Workflow language before, as eg. the workflow AND operator has nothing to do with execution status logic, only with sequencing (ie. a wait-for-all-before-continuing-operator). The operator name and icon graphics are counter-intuitive to me.
    Regards, Hans Henrik

  • Getting Error in Dashboard Execution

    Hi all
    We are facing some problem while executing the dashboards,
    when we deploy the dashboards in the BO server in june-2011, it works fine till now.
    Now the problem with us is it showing error getDocumentInformation exception (Error :wis10901)
    But this error is not displayed every time while executing the dashboard.
    The frequency of showing this error is more, after 4-5 changes in the dashboard it showing error.
    after some time if we execute the same dashboard it works fine for some more time.
    NOTE:-while i am trying to execute the QAAWS, it sowing error some time.("getDocumentInformation exception (Error :wis10901)"
    Thanks
    Bapin

    >> This is possible only with PI 7.1 ehp1.
    Yes !Our verstion  is SAP EHP 1 for SAP NetWeaver 7.1 so  how can i do this.
    __instead for fixing in PI i can use the belwo java mapping__
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.HashMap;
    import java.util.Map;
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.StreamTransformationConstants;
    import com.sap.aii.mapping.api.StreamTransformationException;
    public final class MyMapping implements StreamTransformation {
        public void execute(InputStream in, OutputStream out)
            throws StreamTransformationException {
            // removing non valid characters
         BufferedReader br = new BufferedReader(in);
         out = stripNonValidXMLCharacters(br.readLine());
            // implement mapping ...
    public String stripNonValidXMLCharacters(String in) {
        StringBuffer out = new StringBuffer(); // Used to hold the output.
        char current; // Used to reference the current character.
         if (in == null || ("".equals(in))) return ""; // vacancy test.
        for (int i = 0; i < in.length(); i++) {
        current = in.charAt(i); // NOTE: No IndexOutOfBoundsException caught here; it should not happen.
        if ((current == 0x9) ||
             (current == 0xA) ||
             (current == 0xD) ||
             ((current >= 0x20) && (current <= 0xD7FF)) ||
             ((current >= 0xE000) && (current <= 0xFFFD)) ||
             ((current >= 0x10000) && (current <= 0x10FFFF)))
              out.append(current);
    return out.toString();
    regards
    sandeep
    Edited by: pendyalas on Feb 4, 2011 2:07 PM

  • Getting error as ORA-01722: invalid number

    Hi below is my query
    select count(1) from table1 where table1.rqstid = '83041' AND table1..score_name = 'Small Business Credit Risk Score' AND
    to_number(table1.total_score) >= '70' and rownum<2
    I tried to convert '70' to 70, but still I got ame error.
    In table1 total_score is varchar2(30) data type, but for this rqstid the data is 420, so it should convert 420 to number and compare with 70.
    But why I am getting this error? Please help.
    If I remove to_number conversion fot total score then this error is not coming, but this will not give correct result for me.
    Thanks.

    CREATE TABLE SBE_SCORE (
    RQSTID VARCHAR2 (30) NOT NULL,
    SCORE_NAME VARCHAR2 (300),
    TOTAL_SCORE VARCHAR2 (30),
    RISKLEVEL VARCHAR2 (30),
    SUBSCRIBER_ID NUMBER (10))
    INSERT INTO SBE_SCORE ( RQSTID, SCORE_NAME, TOTAL_SCORE, RISKLEVEL,
    SUBSCRIBER_ID ) VALUES (
    '83041', 'Small Business Credit Risk Score for Financial Services', '420', NULL, NULL);
    My Query was
    SELECT
    count(1)
    FROM
    sbe_score
    WHERE
    sbe_score.rqstid = '83041' AND
    sbe_score.score_name = 'Small Business Credit Risk Score for Financial Services' AND
    to_number(sbe_score.total_score) >= '70' and
    rownum<2
    Error:ORA:01722 Invalid Number
    Now I have modified as below and I am able to get correct results
    SELECT
    count(1)
    FROM
    sbe_score
    WHERE
    sbe_score.rqstid = '83041' AND
    sbe_score.score_name = 'Small Business Credit Risk Score for Financial Services' AND
    to_number(translate(lower(sbe_score.total_score),'abcdefghijklmnopqrstuvwxyz@._','0'))>= 70 and
    rownum<2
    I I omit r in the translate function then I am getting same error Invalid number, So just I want to know whether the data 420 for total_score is taking "r" internally? withou our knowledge?

  • Hi..Getting error while Building Execution Plans

    Client Profitability
    MESSAGE:::group Client Profitability for SDE_EducationalPrograms is not found!!!
    EXCEPTION CLASS::: java.lang.NullPointerException
    com.siebel.analytics.etl.execution.ExecutionPlanDesigner.getExecutionPlanTasks(ExecutionPlanDesigner.java:818)
    com.siebel.analytics.etl.execution.ExecutionPlanDesigner.design(ExecutionPlanDesigner.java:1267)
    com.siebel.analytics.etl.client.util.tables.DefnBuildHelper.calculate(DefnBuildHelper.java:169)
    com.siebel.analytics.etl.client.util.tables.DefnBuildHelper.calculate(DefnBuildHelper.java:119)
    com.siebel.analytics.etl.client.view.table.EtlDefnTable.doOperation(EtlDefnTable.java:169)
    com.siebel.etl.gui.view.dialogs.WaitDialog.doOperation(WaitDialog.java:53)
    com.siebel.etl.gui.view.dialogs.WaitDialog$WorkerThread.run(WaitDialog.java:85)
    Pls let me know what can be done to remove the error and bulit the execution plan sucessfully..?
    Edited by: user9172867 on Feb 24, 2010 1:53 AM

    Have you verified the task SDE_EducationalPrograms in DAC points to the appropriate folder in Informatica?

  • Getting error in export button:Invalid Column Type

    Hi All,
    I have a export button on my page.and it was exporting the data before doing the VO Substitution.
    But i did the Vo substituon by modifying the standard Vo Query and after the Vo substitution its giveing me the error Invalid column type..
    Please help..
    Thanks
    bharat

    any ideas plz ..

  • Working with Coreco, I get error 1074396072: imaq morphlogy invalid image border

    the morphology gets input from threshold, which send o.k in error out. I work with Coreco, which I heard has some problems in defining the camera type or something

    The morphology function requires some blank space at the edges of the image, which is called a border. You can set the size of the border when you create the image buffer, and you can adjust the size of the border using IMAQ ImageBorderSize.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Getting error source wider than 72 chars

    hi i am using one standard include where the statement is
    READ REPORT include INTO source.
    source contains line field which is 72 char.

    HI,
    Goto that perticular source code and then try
    UTILITIES-----SETTINGS--ABAP EDITOR--
    CHECK DOWNWORD-COMP LINE LENGTH(72)
    HAVE U TRIED THIS?
    DONT DO THIS ON CURRENT SCREEN WHERE ERROR IS COMING GOTO THAT PERTICULAR INCLUDE.

  • Getting Error Apple ID Certificate Invalid in Mac OS X Lion's AirDrop

    When I tried to transfer from my MBA to my Mac mini it said declined; and when I tried to transfer from Mac mini to MBA it said 'The Apple ID certificate for xxxxx is invalid, The transfer has been cancelled'.
    Yet I used to transfer, it's now all of a sudden, could it have to do with iCloud now installed??

    i had airdrop issues...
    when sending to another machine from my own, the other machine instantly denied the request
    when the other machine tried sending to me, it failed with a warning "apple id certificate is invalid"
    after calling apple:
    go to the apple>preferences>iCloud
    log out
    log in
    do this on BOTH machines
    fixed

Maybe you are looking for

  • Unable to collect form in PDF form

    Hello, I have created a fillable form using Live Cycle Designer. But when it comes to collecting the form data, after receiving the data in XML (as an email attachment), I am unable to open it as PDF. I have tried changing the default program to open

  • How to get Snapshotid in  CreateDynaSet Method in VC++ (Using Oip8.tlb)

    While acessing the BFILE datatype in a table using the following code in VC+6.0 on WINDOWS-95 OraDb.'GetCreateDynaset' is throwing an Exception at 3rd parameter (i.e.,snapshot id).This parameter is OPTIONAL in VB6.0 and it worked in VB6.0 (with out S

  • IPhoto 9.5 - Cannot create a book anymore, causes iPhoto to freeze have to force quit

    Ive had my new imac 5 days been creating a book all week, Was asked to create a new one for a family member but could not create a new book i can create a card or calender just not a book.

  • On-Prem Lync 2013 moving to Lync Online (Office 365)

    We have an office of about 130 users, all of whom use either Lync 2010 or Lync 2013 client to connect to Lync Server 2013 (on-prem). We have recently signed up for Office 365's E3 plan which includes Lync Online, which we plan on using in favor of on

  • Encrypting photos on iWeb

    I want to copy protect my photos on my iWeb site, ie., so no one can make prints off the pages. Is there a way to do this. Maybe additional software. Jenean