Invalid character in data element

I'm pretty new to BizTalk and need help with this suspended instance. We're getting 875 PO from the customer via EDI BizTalk 2009 X12.
Here is EDI:
N1*BT*SOUTHEAST COMPANY*9*6666666660000
N3*3261 STREET WAY
N4*CITY*TX*ZIP
N1*ST*ORANGES OF STATE*9*6777777770100
N3*18000 N.E. 6th Ave.
N4*CITY*TX*ZIP
G68*10*CA*12.21*007333333333*PI*385
G69*TASTY CREAM
The errors:
Error: 1 (Field level error)
          SegmentID: N1
          Position in TS: 6
          Data Element ID: N102
          Position in Segment: 2
          Data Value:
          6: Invalid character in data element
Error: 2 (Field level error)
          SegmentID: N3
          Position in TS: 7
          Data Element ID: N301
          Position in Segment: 1
          Data Value:
          6: Invalid character in data element
Error: 3 (Field level error)
          SegmentID: G69
          Position in TS: 13
          Data Element ID: G6901
          Position in Segment: 1
          Data Value:
          6: Invalid characte
As you can see I have 2 segments of N1 with bill-to and ship-to addresses. I don't see anything suspicious in any of  N1 or N3 or G69.
I would really appreciate help!!
akolons

In your Agreement, is "Character set to be used" set to "Basic", "Extended" or "UTF8/Unicode"?
Basic only allows capitalized letters fra A-Z.
However, since you are also getting errors in your N1 segment, I'm not sure this is the case. I have a feeling that the problem has to do with spaces in your strings, can you try the following:
- Remove all spaces from any of the texts in your document (example: SOUTHEAST COMPANY -> SOUTHEASTCOMPANY).
- If the first step eliminates the error, make sure that your spaces has hex-value 20 (decimal 32) and that no spaces has been chosen in your Agreement for any of the characters in "Character set and separators".
Morten la Cour

Similar Messages

  • BiizTalk 2013 and EDI Message Invalid character in data element

    Hi:
    Background: I have a Vendor sending us EDI
    856 (Advance Shipping Notice). We are using EDI X12 and BizTalk 2013. In the Parties Agreement we use ISA11 = U-US EDI Community of ASC X12. The vendor is sending 'U' in ISA11.
    Error:
    At the beginning of EDI Schema import, during EDI audit, we get the following error messages, repeated a few time.
    Error: 1 (Field level error)
                SegmentID: LIN
                Position in TS: 18
                Data Element ID: LIN09
                Position in Segment: 9
                Data Value:
                6:
    Invalid character in data element
    Error: 2 (Field level error)
                SegmentID: PID
                Position in TS: 20
                Data Element ID: PID05
                Position in Segment: 5
                Data Value:
                6:
    Invalid character in data element
    Root Cause: In all the error cases the data
    fields contain “Ü” (U with two dots above it). German character.
    Question: What is the best way to deal with
    the issue or replace “Ü” (U with two dots above it) characters?
    Looking forward to your reply.
    Regards, Toraj
    Toraj [email protected]

    I edited the source file and saved it as UTF-8. It seems, it resolved the issue.
    Very cool.
    Toraj
    Toraj [email protected]
    Glad that you have solved this issue by yourself, and thanks for sharing your solution to us.
    Best regards,
    Angie
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Invalid character in data element-Biztalk 2013

    I am using Biztalk 2013, i want to process a file received from partner EDI To XML(843). I received following file as below:-
    REF~QU~N //I received QU value in received file for REF01 and this value is mentioned in collection for REF01, still biztalk is generating following error
    Note:-I even change the Base data type to xs:string from X12_AN
    Error: 1 (Field level error)
        SegmentID: REF
        Position in TS: 5
        Data Element ID: REF01
        Position in Segment: 1
        Data Value:
        6: Invalid character in data element
    Secondly almost same error is is N1 loop
    N1~S8~PUBLIC SERV N C~29~42222//i received this value in N102
    Note:-I even change the Base data type to xs:string
    Error: 3 (Field level error)
        SegmentID: N1
        Position in TS: 22
        Data Element ID: N102
        Position in Segment: 2
        Data Value:
        6:Invalid character in data element
    Help me to solve this issue.it's urgent
    Thanks in advance

    Hi Gag,
    1.Create a new custom receive pipeline
    2.Add the XmlDisassembler to the pipeline and configure it to your need.
    3.Add the FixEncodingComponent to the pipeline in the Decode stage, so that it is run before the XmlDisassembler.
    4.Set the Encoding parameter of the component in the Property Explorer to the encoding you want to use. To make this easier, the component implements a custom
     UITypeEditor that pops up a list of all the encodings supported by the .NET framework:
    For encoding Component you can visit
    http://winterdom.com/2006/01/fixmessageencodingcustompipelinecomponentsample
    Thanks
    Abhishek

  • SQL Developer 2.1.1 ORA-00911: invalid character in Data Grid

    Hi,
    When I try to view data in Data Grid from table that has column name in format underscoreNAMEunderscore I get ORA-00911: invalid character.
    As far as I can tell the problem is same with all 2.x versions. Version 1.5.5 works OK.
    Is there a way around the problem?
    Thank you for your help.
    Silvio

    I see no answers :-(
    Is there a chance this gets listed as a bug and fixed?
    Thank you

  • Error: Data element for InfoObject AUFNR 0PM_ORDER could not be created(QA)

    Hi Experts,
    I am trying to Transport a request from DEV to QA,which consists Transaction Infosources,  afetr the inport the TR is failed with return code 8. and the error message in the log is as follows.....
    Error when determining a number from object BI_TSDTEL and number 01  
    Object name can only contain characters from syntactical character set
    Data element for InfoObject AUFNR 0PM_ORDER could not be created
    Data element for InfoObject KOKRS 0CO_AREA could not be created
    Data element for InfoObject KOKRS 0CO_AREA could not be created
    Errors occurred during post-handling RS_AFTER_IMPORT for ISCS L
    Data element for InfoObject TXTMD could not be created
    Errors occurred during post-handling RS_AFTER_IMPORT for IOBJ L
    please Could anyone give the Inputs to solve this , I'll be greatful to you.
    Thanks & regards
    SK

    hello AJ,
    Till now the problem is not solved , Please provide some inputs.
    here I'm getting this problem for TXTMD, 0CO_AREA, 0PM_ORDER, 0DATE, 0PLANT, 0ORDER_CURR, 0LOC_CURRCY
    Error when determining a number from object BI_TSDTEL and number 01
    Object name can only contain characters from syntactical character set
    Object name can only contain characters from syntactical character set
    Data element for InfoObject KOKRS 0CO_AREA could not be created
    Data element for InfoObject KOKRS 0CO_AREA could not be created
    Transfer structure 0CO_OM_NTW_1_SB activated under the name 0CO_OM_NTW_1_SA
    It is not necessary to copy dependent objects for transfer structure 0CO_OM_NTW_1_SA
    Data element for InfoObject KOKRS 0CO_AREA could not be created
    Activating Transfer Rules 0CO_OM_NTW_1_SA ...
    23 Transfer Rule(s) of the transfer structure 0CO_OM_NTW_1_SA removed from control table
    23 InfoObject(s) of the transfer structure 0CO_OM_NTW_1_SA removed from control table
    Formulas have been saved
    PLEASE PROVIDE SOME INPUTS.........
    Message was edited by:
            S K

  • Invalid character error while activating data in DSO.

    Hi Experts,
    We are facing an issue with presence of invalid characters in data from source. This throws SID generation error while activating data in DSO. Long text of error shows like this:
    "Value " ĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ" (HEX 000D0120012001200120012001200120012001200120012001) of characteristic  contains an error at position 1"
    Also we've tried adding the character " Ġ " in TCode RSKC, but it then shows as a rectangle box which I'm not able to copy manually(looks like a blank space or something of that sort).
    We've tried implementing routine to remove special characters while loading data, but still it fails. Due to huge amounts of data, its practically unfeasible to check each record manually.
    Any useful suggestions will be acknowledged.
    regards,
    anoop

    Hi,
      We are using following code for the same purpose. U can use it at infoobject level mapping. This code will check value of each character in the data coming, whether it is in RSKC, if it is a allowed one then it will be passed as it is. Otherwise it will replace that character by space.
        data: l_d_length like sy-index,
                 l_d_char type c,
                 l_d_index type sy-index,
              l  oopx like sy-tabix.
        data : xinfobj(30) type c value 'RABC'.    -> this is ur infoobject name
        clear : result.
        call function 'CONVERSION_EXIT_ALPHA_INPUT'
          exporting
            input  = tran_strucutre-XYZ     -> object name in ur structure
          importing
            output = result.
        l_d_length = strlen( result ).
        do l_d_length times.
          l_d_index = sy-index - 1.
          l_d_char = result+l_d_index(1).
          call function 'RSKC_CHAVL_OF_IOBJ_CHECK'
            exporting
              i_chavl                 = l_d_char
              i_iobjnm                = xinfobj
        I_S_COB_PRO             =
        I_T_COB_PRO_CMP         =
           exceptions
             chavl_not_allowed       = 1
             others                  = 2
          if sy-subrc <> 0.
            result+l_d_index(1) = ' '.
          endif.
        enddo.
    Regards;
    Jitendra

  • ITunes producer error 3000 character content of element "file_name" invalid. Can anyone help me out? This happens when i try and submit an epub file, i haven't had this before.

    Can anyone help me out? This happens when i try and submit an epub file, i haven't had this before. "iTunes producer error 3000 character content of element "file_name" invalid."
    This is the full message

    You really need to put your codes between the
    [\code] tags
    see http://forum.java.sun.com/features.jsp#Formatting
    for more infoCode tags might make it look a little better, but there's still too darn much code. We're volunteers, after all. It'd be a lot of work to review all of this stuff. Can you demonstrate your problem with something smaller? Learn out how to do a combo box with just a page or two and then appy that to your big problem. That's how I'd do it. - MOD

  • Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 1, column 3 (NumberOfMultipleMatches).

    Hi,
    I have a file where fields are wrapped with ".
    =========== file sample
    "asdsa","asdsadasdas","1123"
    "asdsa","asdsadasdas","1123"
    "asdsa","asdsadasdas","1123"
    "asdsa","asdsadasdas","1123"
    ==========
    I am having a .net method to remove the wrap characters and write out a file without wrap characters.
    ======================
    asdsa,asdsadasdas,1123
    asdsa,asdsadasdas,1123
    asdsa,asdsadasdas,1123
    asdsa,asdsadasdas,1123
    ======================
    the .net code is here.
    ========================================
    public static string RemoveCharacter(string sFileName, char cRemoveChar)
                object objLock = new object();
                //VirtualStream objInputStream = null;
                //VirtualStream objOutStream = null;
                FileStream objInputFile = null, objOutFile = null;
                lock(objLock)
                    try
                        objInputFile = new FileStream(sFileName, FileMode.Open);
                        //objInputStream = new VirtualStream(objInputFile);
                        objOutFile = new FileStream(sFileName.Substring(0, sFileName.LastIndexOf('\\')) + "\\" + Guid.NewGuid().ToString(), FileMode.Create);
                        //objOutStream = new VirtualStream(objOutFile);
                        int nByteRead;
                        while ((nByteRead = objInputFile.ReadByte()) != -1)
                            if (nByteRead != (int)cRemoveChar)
                                objOutFile.WriteByte((byte)nByteRead);
                    finally
                        objInputFile.Close();
                        objOutFile.Close();
                    return sFileName.Substring(0, sFileName.LastIndexOf('\\')) + "\\" + Guid.NewGuid().ToString();
    ==================================
    however when I run the bulk load utility I get the error 
    =======================================
    Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 1, column 3 (NumberOfMultipleMatches).
    ==========================================
    the bulk insert statement is as follows
    =========================================
     BULK INSERT Temp  
     FROM '<file name>' WITH  
      FIELDTERMINATOR = ','  
      , KEEPNULLS  
    ==========================================
    Does anybody know what is happening and what needs to be done ?
    PLEASE HELP
    Thanks in advance 
    Vikram

    To load that file with BULK INSERT, use this format file:
    9.0
    4
    1 SQLCHAR 0 0 "\""      0 ""    ""
    2 SQLCHAR 0 0 "\",\""   1 col1  Latin1_General_CI_AS
    3 SQLCHAR 0 0 "\",\""   2 col2  Latin1_General_CI_AS
    4 SQLCHAR 0 0 "\"\r\n"  3 col3  Latin1_General_CI_AS
    Note that the format file defines four fields while the fileonly seems to have three. The format file defines an empty field before the first quote.
    Or, since you already have a .NET program, use a stored procedure with table-valued parameter instead. I have an example of how to do this here:
    http://www.sommarskog.se/arrays-in-sql-2008.html
    Erland Sommarskog, SQL Server MVP, [email protected]

  • What does this error means? "Line 20 column 57: character content of element "language" invalid; must be a string with length equal to 3 (actual length was 7) at XPath /package/book/metadata/languages/language" "

    Hi there.
    I am about to publish a book in English and Chinese.
    What does this error means?
    Line 20 column 57: character content of element "language" invalid; must be a string with length equal to 3 (actual length was 7) at XPath /package/book/metadata/languages/language"
    And where is line 20, column 57?
    Thanks folks!

    Go into iTunes Producer and select from the dropdown, don't type.
    cs
    iBooks Author Guide

  • Data element while creating character?

    hi friends,
    while createing any character i am getting/bic/oi(obect name) like object name is C1_Sun (customer)
    data element is /bic/oiC1_sun
    bi businees intelligence
    c means customer defined
    what is oi
    Thanking u
    suneel.

    hi Suneel,
      The naming convention for BI objects are as below:
      For Standard BI objects : /BI0/OI<name of the characteristic>
      For Custom  BI objects :  /BIC/OI<name of the characteristic>
    Hope it helps...

  • Log on problem India: Invalid character

    Dear all,
    we have running a BI 7.0 Portal. We have a guidline how to set up the Internet-Settings (IE 6) for using the portal. It works fine for all our subsituaries, with exeption of India.
    In India, we get the log on screen and we can enter the user name and PW. By confirming this data, we receice the message:
    Line:  2
    Char: 1
    Code: 0
    Error: Invalid character
    Additionaly we receive the following message:
    Line: 1161
    Char: 1
    Error: 'EPCM.getSAPTop().gHistoryFrameworkObj'is null or not an object
    Code: 0
    Do you know how to analyse or solve the problem?
    Thanks!
    XmxhX
    Edited by: XmchX on Mar 19, 2008 8:20 AM

    Hello,  
    See this thread and see whthere its applicable to you,
    Error while accessing portal.....
    Thanks
    Chandran

  • XML invalid character -  a single quote problem

    Hi, I am reading in an xml file, then write the file to output. The problem is that the input file has a strange single quote character [ *�*  ] - lets call it single quoate A, which is different from [  *'*  ] , that is the key next to the [ ; ] key on an English keyboard - lets call it single quate B. And in fact there isnt a key to input single quote A, I guess the appearance of single quote A is due to encoding.
    If I open the input xml file in browser, it works ok and displays the single quote A.
    Once I read in the xml file into memory, by debugging I can still see that single quote A is corrected encoded;
    However once I rewrite the same content to output, the single quote A character is changed, and if i open the file in browser, it says 'invalid character' because single quote A were changed when written to output and cannot be rendered.
    Both input and output xml are using UTF-8 encoding. How can I solve this problem please?
    The xml file looks:
    <?xml version="1.0" encoding="UTF-8" ?>
    <content>....1980�s (Peacock and Williams, 1986; Keay, 1984)</content> My code for reading
    String _xquery ="//content/text()";
    Document _xmlDoc= DocumentBuilderFactory.newInstance().newDocumentBuilder().parse("myxml.xml");
    XPath _xpath = XPathFactory.newInstance().newXPath();
    NodeList nodes = (NodeList) _xpath.compile(query).evaluate(_xmlDoc, XPathConstants.NODESET);
    List<String> res = new ArrayList<String>(nodes.getLength());
    for (int i = 0; i < nodes.getLength(); i++) {
        res.add(nodes.item(i).getNodeValue());
    String valueToOuput=res.toString() //this is the value to be output to xml, it shoud look like "[....1980�s (Peacock and Williams, 1986; Keay, 1984)]"my code for writing xml
    Element root=new Element("root");;
    Element content= new Element("output-content")
    content.setText(valueToOutput);
    root.addContent(content);
    PrintWriter writer = new PrintWriter(new FileWriter(f));
    new XMLOutputter().output(domDocument, writer);
    writer.close();

    Hi, sorry I have fixed the problem... instead of using PrintWriter, I used Fileoutputstream, and it solved the problem. Thanks!

  • XML Publisher Report - Invalid character was  found in text content

    Hi Techies,
    Version Background
    Oracle apps : 11.5.10
    Oracle 9i Database
    Oracle Reports 6i
    I created a XML output type concurrent program and attached a data definition & template to it.
    My program completed with status "Warning".
    The Error is : An invalid character was found in text content.
    Then i downloaded the XML and opened it in notepad++. I found there are 2 weird characters like this ( , )
    FYI, It is a non-Ascii character so not able to paste it in this forum text field. the characters looks like double sided arrow and a forward arrow.
    I also tried loading the XML locally from RTF Template. Again it throws me same error
    Error No: -1072896760: An invalid character was found in text content.
    Additional Information:
    Data is coming from table "gl_alloc_batches.description"
    Encoding Type: UTF-8
    Please Help me how to handle such a non-ascii characters
    Edited by: 868779 on Feb 22, 2012 10:48 PM

    Hi,
    Please find below sql which will find the special characters in column of table,
    SET serveroutput ON size 1000000
    DECLARE
    PROCEDURE gooey (v_table VARCHAR2, v_column VARCHAR2)
    IS
    TYPE t_id IS TABLE OF NUMBER;
    TYPE t_dump IS TABLE OF VARCHAR2 (20000);
    TYPE t_data IS TABLE OF VARCHAR2 (20000);
    l_id t_id;
    l_data t_data;
    l_dump t_dump;
    CURSOR a
    IS
    SELECT DISTINCT column_name
    FROM dba_tab_columns
    WHERE table_name = v_table
    AND data_type = 'VARCHAR2'
    AND column_name NOT IN ('CUSTOMER_KEY', 'ADDRESS_KEY');
    BEGIN
    FOR x IN a
    LOOP
    l_id := NULL;
    l_data := NULL;
    l_dump := NULL;
    EXECUTE IMMEDIATE 'SELECT '
    || v_column
    || ', '
    || x.column_name
    || ', '
    || 'dump('
    || x.column_name
    || ')'
    || ' FROM '
    || v_table
    || ' WHERE RTRIM((LTRIM(REPLACE(TRANSLATE('
    || x.column_name
    || ',''ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@#$%^&*()_+
    -=,!\`~{}./?:";''''[ ]'',''A''), ''A'', '''')))) IS NOT NULL'
    BULK COLLECT INTO l_id, l_data, l_dump;
    IF l_id IS NOT NULL
    THEN
    FOR k IN 1 .. l_id.COUNT
    LOOP
    DBMS_OUTPUT.put_line ( v_table
    || ' - '
    || x.column_name
    || ' - '
    || TO_CHAR (l_id (k), '999999999999')
    DBMS_OUTPUT.put_line (l_data (k));
    DBMS_OUTPUT.put_line (l_dump (k));
    DBMS_OUTPUT.put_line ('*********************');
    END LOOP;
    END IF;
    END LOOP;
    END gooey;
    BEGIN
    gooey ('GL_ALLOC_BATCHES', 'DESCRIPTION');
    END;
    Thanks,
    Amogh

  • ORA-00911: invalid character using multiple select statements

    I am getting an ORA-00911: invalid character error when trying to execute 2 select statements using ODP.NET.
    cmd.CommandText = "select sysdate from dual;select sysdate from dual;";
    cmd.Connection = conn;
    cmd.CommandType = System.Data.CommandType.Text;
    conn.Open();
    OracleDataReader dr = cmd.ExecuteReader();
    This works in SQL server but for some reason it appears this does not work in Oracle?
    If this is the case what is a vaiable workaround? Wrapping the 2 statements in a transaction?
    Seems strange that you can't return multiple result sets using in-line sql statements.

    Oracle doesn't support passing multiple statements like that, and this is unrelated to ODP.NET.
    SQL> select * from emp;select * from dept;
    select * from emp;select * from dept
    ERROR at line 1:
    ORA-00911: invalid character
    You could do it via an anonymous block and ref cursors though if you dont want to do it via a stored procedure..
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    public class test
    public static void Main()
        using (OracleConnection con = new OracleConnection("data source=orcl;user id=scott;password=tiger;"))
            con.Open();
            string strSql = "begin open :refcur1 for select * from emp;" +
                "open :refcur2 for select * from dept;" +
                "open :refcur3 for select * from salgrade;end;";
            using (OracleCommand cmd = new OracleCommand(strSql, con))
                cmd.Parameters.Add("refcur1", OracleDbType.RefCursor, ParameterDirection.Output);
                cmd.Parameters.Add("refcur2", OracleDbType.RefCursor, ParameterDirection.Output);
                cmd.Parameters.Add("refcur3", OracleDbType.RefCursor, ParameterDirection.Output);
                OracleDataAdapter da = new OracleDataAdapter(cmd);
                DataSet ds = new DataSet();
                da.Fill(ds);
                cmd.Parameters["refcur1"].Dispose();
                cmd.Parameters["refcur2"].Dispose();
                cmd.Parameters["refcur3"].Dispose();
                foreach (DataTable dt in ds.Tables)
                    Console.WriteLine("\nProcessing {0} resultset...", dt.ToString());
                    foreach (DataRow row in dt.Rows)
                        Console.WriteLine("column 1: {0}", row[0]);
    }Hope it helps,
    Greg

  • Error while using '*'in the NTE (EDI 850) Segment where '*' is also used as Data Element

    Hi All,
    I am facing below mentioned error while using '*'in the NTE (EDI 850) Segment where '*' is also used as Data Element
    Error: 1 (Field level error)
      SegmentID: NTE
      Position in TS: 70
      Data Element ID: NTE02
      Position in Segment: 2
      Data Value:
      3: Too many data elements
    For Eg: NTE*GEN*My Text *goes here
    Here, NTE02 should be My Text *goes here. So, how can I use "*" here without changing anything in the EDI message?
    Can it be done?
    Thanks.

    Sorry, no.
    X12 does not support an escape character so whatever is used for delimiters become reserved characters.
    If you want to allow '*' in the data, you will have to chooser a different Element delimiter.  The receiver should read the from this from the ISA Segment so it's supposed to be dynamic but that's not always the case in practice.

Maybe you are looking for