Sender File contains extra characters

Hi Gurus,
I am configuring a file to file scenario.
Sender side I have an XML file. I have got the XSD file also for this XML file but the problem is the XML file contains some extra character which is not there in the XSD.
Here is the Sender XML file example:
- <ns0:MnSDocument xmlns:ns0="marksspencer.com/is/2009/schemas/envelope/">
- <ns0:Header>
  <MessageId>4D8C7D97C8800BD0E10080000A9044EC</MessageId>
    <BatchRecordCount>1</BatchRecordCount>
  </ns0:Header>
- <ns0:Payload>
- <ns0:ZMDE_WBBDLD05EXT01>
Here is the XSD file:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns0="marksspencer.com/is/2009/schemas/envelope/">
     <xsd:element name="MnSDocument">
          <xsd:complexType>
               <xsd:sequence>
                        <xsd:element name="Header" type="HeaderType"/>
                    <xsd:element name="Payload" type="PayloadType"/>
Now during mapping test in ESR all the fields are giving red color because there is extra "ns0" in the sender XML.
Can you give some idea on how can I get rid of this issue?
What should I need to change in XSD file?
Thanks in advance.
Regards,
Vikash

Vikash,
<ns0:Header>
<MessageId>4D8C7D97C8800BD0E10080000A9044EC</MessageId>
<BatchRecordCount>1</BatchRecordCount>
You need make changes in order to incorporate Message ID and Batch Record Count.
I doubt that the XSD you have for the XML file is wrong.
Could you post the entire XSD and XML fiile if possible?
Regards
Ramesh

Similar Messages

  • How to upload file containing Japanese characters in AL11

    Hi All,
    I'm trying to modify a program that extracts a text file from local drive then upload the file to sap directory. The input text file contains Japanese characters. When I view the file created, it looks like the one below:
    #º#®#~#^#ì#q  ¼ÓÔ¼·Ï·º
    #ì#ç#ß#q  ÐÅÐÁÂÞº
    The code that I am fixing is below:
       open dataset pv_name for output in text mode encoding non-unicode
       ignoring conversion errors.
    open dataset pv_name for output in legacy text mode code page '8000' ignoring conversion errors.
    *OPEN DATASET pv_name FOR OUTPUT IN TEXT MODE ENCODING UTF-8 WITH BYTE-ORDER MARK.
        if sy-subrc = 0.
        LOOP AT pt_input.
          TRANSFER pt_input TO pv_name.
          IF SY-SUBRC NE 0.
            WRITE:/ 'Error writing file'(011), pv_name.
            STOP.
          ENDIF.
        ENDLOOP.
       endif.
      Close dataset
        CLOSE DATASET pv_name.
    Any suggestions on how to resolve this one?
    Thanks a lot in advance.

    I didnt said that this will resolve your errors. But using this is the same of ignoring comiler errors....
    As you didnt said anything about codepages you're using no help is possible, you didnt mentioned if your SAP system is Unicode, Non-Unicode or even a MDMP system.
    You need to figure out which codepage the file has on the presentation server and which codepage your SAP system is using. And it can be that no conversion is possible cause both systems do not have any character in common.

  • Unable to access files containing special characters (accents) on a SMB share

    I can't access some files on a SMB share.
    Those files have one thing in common, that is they contain accented characters (àèéìòù).
    I can't access them from finder, terminal, or other softwares.
    It works fine when accessing them from a Windows 7 client.
    How can I fix this issue?
    Is there some SMB option to specify the UTF8 encoding?
    In addition, when I create a file with such characters from my mac, the special character shows as ?? on a non-mac client.

    it turns out I had way more filenames with accented letters that worked well with MacOS X.
    the difference is subtle: those OS X didn't like were like a "composition" of two character (sorry, I don't know the encoding details), that is a vowel and a unicode special character that modifies the previous char adding an accent.
    I discovered this while renaming the files from a Windows client, by placing the cursor after "é" in "perché" and hitting backspace, it turned into "perche", and hitting backspace again deleted the "e", turning into "perch".
    so I fixed those few invalid filenames.

  • PDF file contains strange characters and letters.

    PDF file shows strange characters and letters. Why does this happen? How do I correct this so I can print print the file?

    This is probably due to fonts not be embedded in the pdf or too many different font subsets. If it is the former issue, you need to contact the creator of the pdf and have them embed the fonts. You cannot do it, since if you had the fonts on your system, it would ok. If it is related to font subsets you could try to unembed all fonts in the pdf using the PDF Optimizer, then re-embed the fonts using the Preflight tool.

  • Read and write a .CSV file contains cirillic characters issue

    Hi guys,
    I am a developer of a web application project which uses Oracle Fusion Middleware technologies. We use JDeveloper 11.1.1.4.0 as development IDE.
    I have a requirement to get a .csv file from WLS to application running machine. I used a downloadActinLinsener in front end .jspx in order to do that.
    I use OpenCSV library to read and write .csv files.
    Here is my code for read and write the .csv file,
    public void dwdFile(FacesContext facesContext, OutputStream out) {
    System.out.println("started");
    String [] nextLine;
    try {
    FileInputStream fstream1 = new FileInputStream("Downloads/filetoberead.CSV");
    DataInputStream in = new DataInputStream(fstream1);
    BufferedReader br = new BufferedReader(new InputStreamReader(in,"UTF-8"));
    CSVReader reader = new CSVReader(br,'\n');
    //CSVReader reader = new CSVReader(new FileReader("Downloads/ACTIVITY_LOG_22-JAN-13.csv"),'\n');
    List<String> list=new ArrayList();
    while ((nextLine = reader.readNext()) != null) {
    if(nextLine !=null){
    for(String s:nextLine){
    list.add(s);
    System.out.println("list size ; "+list.size());
    OutputStreamWriter w = new OutputStreamWriter(out, "UTF-8");
    CSVWriter writer = new CSVWriter(w, ',','\u0000');
    for(int i=0;i<list.size();i++){
    System.out.println("list items"+list.get(i));
    String[] entries = list.get(i).split(",");
    writer.writeNext(entries);
    //System.out.println("list items : "+list.get(i));
    writer.close();
    } catch (IOException e) {
    e.printStackTrace();
    say the filetoberead.CSV contains following data,
    0,22012013,E,E,ASG,,O-0000,O,0000,100
    1,111211,LI,0,TABO,B,M002500003593,,,К /БЭ60072715/,КАРТЕНБАЙ
    2,07,Balance Free,3
    1,383708,LI,0,BDSC,B,НЭ63041374,,,Т /НЭ63041374/,ОТГОНБААТАР
    2,07,Balance Free,161
    It reads and writes the numbers and english characters correct. All cirillic characters it prints "?" as follows,
    0,22012013,E,E,ASG,,O-0000,O,0000,100
    1,111211,LI,0,TABO,B,M002500003593,,,? /??60072715/,?????????
    2,07,Balance Free,3
    1,383708,LI,0,BDSC,B,??63041374,,,? /??63041374/,???????????
    2,07,Balance Free,161
    can somone please help me to resolve this problem?
    Regards !
    Sameera

    Are you sure that the input file (e.g. "Downloads/filetoberead.CSV") is in UTF-8 character set? You can also check it using some text editor having a view in hex mode. If each Cyrillic character in your input file occupies a single byte (instead of two), then the file is not in UTF-8. Most probably it is in Cyrillic for Windows (CP1251).
    If this is the case, you should modify the line
    BufferedReader br = new BufferedReader(new InputStreamReader(in,"UTF-8"));toBufferedReader br = new BufferedReader(new InputStreamReader(in,"windows-1251"));Dimitar

  • Exported PNG files getting extra characters in name and linked files losing link

    UGH!.. Hope that made sense.
    Okay...I work on a couple hundred graphics for software at a time, usually creating each piece in a layer with the correct naming convention as the layer name.  Then I use the "Save Layers and PNG. Artboard" script for batch export them into the ONG files...all named properly.  This was a Blessing from heaven.
    However, about three months ago, Illustrator starting adding a "dash" mark in place of a space between words.  I can't link this to an update or other change, wish I could.  This is causing a huge problem..as the software these graphics are for REQUIRES the names be perfect...including the spaces (Can't be underscores, nada).  I'm having to go through an manually rename over half the files just to remove this dash mark.
    There is nothing in the original script for this. 
    I have gone through all the settings.  I have adjusted the Output Settings / Saving Files to eliminate every instance AI is asked to add anything but a space.   Although I'm not sure if these Output settings are used when the script runs.  Don't know if it's the script, some other setting buried somewhere.
    Any other thoughts or solutions?  Are there other scripts that do the same job that I might try to see if I get better results?  I attached a link to a download of my current script
    https://dl.dropboxusercontent.com/u/23703370/SaveLayersAsPNGArtboard.jsx
    Second issue isn't script based, but I'll ask anyway.  Regularly, when I open an AI file that has PNGs, JPG, and other graphics in the file, the "links" have been lost and require me to manually re-link each one, or delete the now empty file object and add it back in.  This includes embedded objects.
    The AI file, nor the graphics have been edited, changed, renamed, or any of the files or folders moved.  Nothing that would cause this that I can think of.  ANyone have a thought why this is happening and how I can prevent it?
    OH YEAH...CS5.5   Windows 7       ThankS  !!!

    Also, out of curiousity, you have a Div named header, also a separate header section containing just the logo in it. Any specific reason?
    And is the image on the site supposed to look like this?
    And, a couple of typos such as this one:
    Funding your Eeducation

  • Fixed length file containing chineese characters

    Hi All,
    We are extracting Vendor master data into an internal table. This table is defined with all fields as characters. File produced with this internal table content is sent through FTP_R3_TO_SERVER with Character mode = 'X'.
    The field contents when read in the partner system are corrupted when there are Chinese characters.
    The interface is designed not to have field separaters. How to overcome this problem.
    reward points promised

    Hi Jens,
    There is nothing wrong with rpad/lpad, I just thought there was another way.
    Thanks

  • Q: Perl search and replace in file containing Japanese characters

    Hello Perl experts
    I have a Unicode Text file (saved from Excel) and would like to replace the tabs in that file with commas. I am using the following code but it seems to be changing some of the Japanese characters in the file only in certain files. If needed I can attach the original file but was wondering if there is a better way to do this using Perl only.
    open INF, "ST_20120829_102433_AB.txt" ;
    open OUTF, ">outf.txt" ;
    binmode INF;
    binmode OUTF;
    while (read (INF, $readbuff, 65535)) {
    $readbuff =~ s/$t1/,/g ;
    print OUTF $readbuff ;
    close INF ;
    close OUTF ;
    Thanks
    Arindam

    Off topic. These are Java forums. Locking.

  • Emails I send ave extra characters and are not legible

    The emails i am sending contain extra characters and symbols are are generally not readable!  Here is an example of what my emial looked like when i replied to a message: the subject should read Super 8 Videocamer
    Subject: Fw: =per 8 Videocamera
    Does this email have the jibberish that is inclu�d in Pauls email?
    =p style="font-size: initial; font-family: Calibri, 'Slate Pro', =ns-serif; color: rgb(31, 73, 125); text-align: initial; background-color:=b(255, 255, 255);">.....
    = st=e="font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; c=or: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255=55);">Sent from my BlackBerry 10 smartphone.
    =ta= e width="100%" style="background-color:white;border-spacing:0px;"> <T=DY>=iv id="_persistentHeader" style="border-style: solid none=ne; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding=pt 0in 0in; font-family: Tahoma, 'BB Alpha Sans', 'Slate Pro'; font-size=0pt;">
    so you can imagine what my friends/colleagues are thinking when they get emails from me with all this in it! 
    in case anyone else has this issue......
    this is the BB Z10 phone. Software release 10.0.10.85 OS versiom 10.0.10.672 build 445581
    My carrier is Bell Mobility in Canada and i have email service through Eastlink.
    I have two emails associated with this phone - one with  Hotmail and one from Eastlink. 
    Also when i fwd an email it is sometimes blank!  No fwd message at all - the email is completely blank!
    Does anyone else have this issue?

    Hey Pegster,
    Welcome to the BlackBerry Support Community Forums.
    Thanks for the question.
    This issue can be resolved by changing the SMTP server settings in your email account.  Go to Settings>Accounts and click on the email account.
    Make sure you use a SMTP server that requires authentication (username and password).  Contact your internet service provider to get an SMTP server.
    Let me know if you have any more questions.
    Cheers.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • Technical issue SAP F110 related issue. getting extra characters in outgoing file from sap.

    Hi Technical guru's,
    SAP system creating a outgoing file through F110- t-code, this outgoing file has extra characters (DOC.NO:)
    We need to remove these extra characters. Once Payment run has been carried out through F110, in SM37 in job spool it is showing like screen attached with name “file from sm37”.
    But when we look in to outgoing file directory extra characters as I mentioned above is appearing below is the related screen attached with name “out gooing file”.
    Gurus can anyone please suggest me where I can check about this. I have checked the program available in the job as well in the F110 transaction.But could not find any hint.
    Programs which I find in SM37.
    SAPF110S
    SAPFPAYM_SCHEDULE
    RFFOSE_B
    Programs which are available in F110.
    RFFOAVIS
    RFFOEDI1
    RFFOSE_B
    Does extra  characters coming through functional configuration (DME configuration) or coming through SAP standard programs.
    I am Technical person. I need to solve this issue guys please help me in this.
    If above information is not sufficient  let me know what are the other information should I provide.

    I didn't get any resolution so far also I can't convert into Adobe form because this is a production issue which should be fix by making the requied setting or changes in SAP script itself we can't go for new developmet for this isuue.

  • DME File returning junk characters when download to PC

    Hi Experts,
    I am facing problem while downloading the DME file. My file contains russian characters but downloaded file showing junk characters.
    I have already set codepage for russia in my profile as 1500. I have also installed russian language in my system. Also i am logged in SAP in RU language and set the codepage as CYRILIC(ISO) and language as russian.
    Please help me on this. I have also searched in forum but could not get proper answer.
    Regards,
    A. Trivedi

    Hi Ashish,
    please try setting codepage to 4120 (Unicode) in OBPM3.
    It worked out fine with a Kyrillic invoice reference I just tested in our dev system. Be sure to use a proper text editor for displaying the downloaded file, e.g. Notepad++
    Regards,
    Christoph

  • Printing to PDF adds extra characters in file extension (eg. .pdfg)

    Hi.
    I have no idea if this is the right forum for my question, but since pdf creation is -- in a way -- printing, I thought I'd start here.
    When I create PDFs on my MBP (10.5.4) and send the document to my Windows-using colleagues, they cannot open the files since an extra character has been added to the file extension. This is incredibly frustrating, since I haven't managed to track down the problem.
    Is this a problem with the system's in-built PDF-creation tools? Or is it Apple Mail that nefariously adds the unwanted character to the end of attached PDFs? Or might there be some other problem, somewhere?
    On my mac, the PDFs look kosher, and my mac-using colleagues can open the files I send to them.
    I would be very happy for anyone spreading some light on this subject.
    Cheers,
    Andreas

    Yes, it is a problem with Mail when either the message subject or the pdf document (or any other document type) contain accented characters, I believe.
    Until Apple fixes this (which worked in previous Leopard versions), I do not use accented characters when I want to send an attached document via Mail.
    HTH ;-))

  • Extra characters at end of line in spool file

    I am trying to generate csv files from SQL Developer using queries written to spool files.  I have embedded the queries and associated set commands in script files and call them, as advised elsewhere.  This gives csv files that look fine, with headings and data comma separated and enclosed with double quotes.  The problem is that the files seem to contain a lot of extra characters at the end of each line.  They seem to be spaces, but not sure.  This is causing problems for the person trying to load the data.
    I'm using version SQL Developer 3.1.07.42, Java 1.6.0_11.
    Any ideas on how to avoid the extra spaces appearing?  Thanks for any help.
    Ben.

    Jeff,
    The SQL in the script file is below.  To be honest, I have reduced it down to a simple select from dual and it still puts extra spaces at the end of the single line.
    col ord noprint
    spool test.csv
    SELECT  ' ' ord,
      'ZONE_ORDER_NUMBER'||','||
      'ZONE_NAME'||','||
      'ZONE_TYPE'||','||
      'DESCRIPTION'||','||
      'START_DATE'||','||
      'END_DATE'
    FROM dual
    UNION ALL
    SELECT zone_name ord,
      '"'||zone_order_number||'"'||','||
      '"'||zone_name||'"'||','||
      '"'||zone_type||'"'||','||
      '"'||description||'"'||','||
      '"'||TO_CHAR(start_date,'DD-MON-YY')||'"'||','||
      '"'||TO_CHAR(end_date,'DD-MON-YY')||'"'
    FROM zones
    ORDER BY ord;
    spool off

  • Extra characters at end of file

    I am getting extra characters (carraige returns I think) at the end of these clobs using the source below.
    This only heppens when PL/SQL sends small clobs. We are building xml files from PL/SQL for file system use.
    Any input is appreciated.
    Thanks
    create or replace and compile java source named sjs.write_CLOB as
    import java.io.*;
    import java.sql.*;
    import java.math.*;
    import oracle.sql.*;
    import oracle.jdbc.driver.*;
    public class write_CLOB extends Object
    public static void pass_str_array(oracle.sql.CLOB p_in,java.lang.String f_in)
    throws java.sql.SQLException, IOException
    File target = new File(f_in);
    FileWriter fw = new FileWriter(target);
    BufferedWriter out = new BufferedWriter(fw);
    Reader is = p_in.getCharacterStream();
    char buffer[] = new char[8192];
    int length;
    while( (length=is.read(buffer,0,8192)) != -1) {
    out.write(buffer);
    // out.newLine();
    is.close();
    fw.close();
    CREATE OR REPLACE PROCEDURE sjs.write_CLOB(CLOB_in CLOB,file_in VARCHAR2) AS
    LANGUAGE JAVA NAME 'write_CLOB.pass_str_array(oracle.sql.CLOB,java.lang.String)';
    /

    Jeff,
    The SQL in the script file is below.  To be honest, I have reduced it down to a simple select from dual and it still puts extra spaces at the end of the single line.
    col ord noprint
    spool test.csv
    SELECT  ' ' ord,
      'ZONE_ORDER_NUMBER'||','||
      'ZONE_NAME'||','||
      'ZONE_TYPE'||','||
      'DESCRIPTION'||','||
      'START_DATE'||','||
      'END_DATE'
    FROM dual
    UNION ALL
    SELECT zone_name ord,
      '"'||zone_order_number||'"'||','||
      '"'||zone_name||'"'||','||
      '"'||zone_type||'"'||','||
      '"'||description||'"'||','||
      '"'||TO_CHAR(start_date,'DD-MON-YY')||'"'||','||
      '"'||TO_CHAR(end_date,'DD-MON-YY')||'"'
    FROM zones
    ORDER BY ord;
    spool off

  • The File name property is not valid. The file name is a device or contains invalid characters

    I have an SSIS task that has run successfully for years. They just moved the dtsx to a new server and now it is failing. 
    Issue:
    The task has a data flow that writes a raw file destination. It then has a subsequent data flow that reads the raw file destination. 
    The path and name of the raw file is passed to each of the data flows via the same variable. 
    The raw file resides in a folder on the server in the same path that the dtsx resides in. 
    The task fails with the "The File name property is not valid. The file name is a device or contains invalid characters" error when trying to access the raw file.
    What we have done to troubleshoot:
    1. I ran the task successfully on my local machine so it is definitely a server issue.
    2. The first thing we were seeing was that it failed trying to write to the raw file. The task is set to "Create Always". 
    3. We saw that the dba's copied over the entire directory structure from the old server which included a previously created raw file, so we deleted the raw file.
    4. We reran the task and it successfully wrote a new raw file but then failed on reading the raw file with the same error as above.
    5. We reran the task AGAIN and this time it failed trying to write the raw file throwing the same error as above.
    6. The dba looked at the directory and the account that performs the task has full control.
    7. The dba looked at the raw file that was created and verified that the account that performs the task has full control of the file and that it is the owner of the file.
    Summary:
    The task fails when trying to access the file EXCEPT when the file does not exist. In that situation it can write the file but subsequently fails in accessing it again.

    Hi Whalensdad,
    Based on my research, the issue can be caused by the following reasons:
    There are some invalid characters in the File name at package runtime. In this scenario, just as Russ said, could you please post the value that is in the File name variable? Also use a Script Task with Messagebox.show to show the variable values at runtime.
    May be it changes to others at run time.
    The account runs the package not having access to all the folders in the path. Since you are moving the dtsx file from one server to the current server, do you also move the raw file to the same folder in the current server? Does the user runs the package
    have access to all the folders in the path? To solve this, please ensure that the user has access to all folders and the raw file in the path on the current server.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support
    Please see the response above. I can't use a message box on a server so I logged the values to the database. The resource account has full control to the folder. I haven't been able to get the DBA to check the SQL Agents permissions, but I was always under
    the impression that if you use "Run As" on the task, it will not use the SQL Agent but the account you identify it to "Run As". The "Run As" account has full control on the folder and file.

Maybe you are looking for

  • Can we restrict muliple PO from PR based on quantity

    Hi Can we restrict multiple PO based on PR . Suppose we have a PR having quantity 5. Currently we are able to create multiple PO such that the quantity specified in PR which is 5 is exceeding while creating PO. Is this the standard SAP functionality

  • Socket concurrency

    Howdy all! Is it possible for two threads to be using the same socket at the same time - where one is just writing to the socket's OutputStream and the other is just reading from the socket's InputStream - and for the same to be happenning on the oth

  • Enable personalization in JDev only??

    Hi guys, is it possible to just enable a personalization (e.g. changed controller) during development in JDeveloper and disable it in eBS? Since the new controller is not available in eBS, it would throw an exception there. But on the local developme

  • Strategic Maintenance in Plant Maintenance

    Hi All, I want to change Single cycle pln to Strategy maintenance plan. Could you please tell what all are the benefits of Strategic maintenance(Time Based). Will it save some time for Planners? Thanks in advance. Regards, Sanjay Tiwari

  • Extracting classification data

    We would like to extract data that is maintianed in the Charactreistic value filed for a given class. For example : For a given Class say 'ABC' we have a Characteristic as 'EFG'  and the value is maintained as 'Y' or 'N' . We would like to extract th