Error while validating Calculated Column

Hi Frzz,
I have created a Calculated column of type NVARCHAR by performing some calculation on a filed whose data type is NVARCHAR.
But while validating the view am getting an error " Attribute type is not valid"
Could some one please help me why am getting this error.
Error Details:
Short Text
  Attribute type is not valid
Cause
  Mismatch between data type defined and values computed.
Recommendations
  Check calculated measure/attribute definition and ensure data types match.
Best Regards,
Krishna.

Hi Raj,
I have provided the same size in Calculated column.But still am getting the same error.
1) First i created a calculated column CC_Test1 to perform the TRIM()
2) I created another calculted column CC_test2 on 1st calculated column (CC_Test1)
Table field:
Calculated Column1:
Calculated Column2:
Errror:

Similar Messages

  • Error while validating Business Rule (Error Cause: nativeGetNewTLA Rule)

    Hi, I am receiving an error while validating business rules
    An error occurred in: Rule:HypLive.Plan1.Product Interest
    A validation error was received from the Planning server 'http://abc:8300/HyperionPlanning/servlet/HspAppManagerServlet?appname=HypLive'.
    'Error:
    Error Cause: nativeGetNewTLA Rule HypLive.Plan1.Product Interest'.

    Are you able to validate the rule in EAS (or Calc Manager)?
    Normally nativeGetNewTLA Rule is followed by out of memory errors like java.lang.OutOfMemoryError,
    Increase the heap size to 1024, re start Planning and try validating it again.
    Cheers..!!

  • Error  while validating Dimension

    Hi,
    I am getting the following error, while validating the Dimension (DIM_COUNTRY).
    ' VLD-0350: In a hierarchy STANDARD, level relationship binding between parent level REGION and child level COUNTRY does not exist.'
    How to rectify this error? Please help.
    Regards,
    Sandeep

    You could:
    1) Try doing an autobind of dimension, however this may create a duplicate sequence and table.
    or
    1) Unbind dimension.
    2) Delete from repository the sequence that was created previously.
    3) Delete from repository the table that was created previously.
    4) Autobind dimension.
    Note when using autobind you'll lose any partitioning etc. defined on the table.
    Cheers
    Si
    Edited by: ScoobySi on Jan 27, 2010 1:20 PM

  • Error while validating 0Analysis_Pattern or opening in WAD

    Hi All
    I am getting an error while validating the template 0Analysis_pattern, the error says "Cannot Instantiate data provider" Message No. RSWADPREXEC023. It is coming as an error message and not a warning.
    Can somebody help me out !
    Thanks

    check oss 917950, and the connections are OK from BI to Portal
    https://forums.sdn.sap.com/click.jspa?searchID=13154814&messageID=4046018
    Hope it Helps
    Chetan
    @CP..

  • Errors while validating after import

    Hi
    In FDQM, i have give the source and targets for mapping of a custom dimension.
    One of the source is getting calculated using FDM scripts as based on the data, it generates the metadata member at source.
    I can see a proper import happening and the script generating the required result.
    But while validating it shows an error. Even though the member is present in MAPS, it shows it as unmapped.
    If i use the "FIX" option in validation, i still end up getting the same error message (in addition the dimension member field now shows some additional characters!)
    Any one has faced this issue with FDM before?
    RegardS

    Hi,
    It seems you are using Logic Accounts to create the new metadata member. Should this be the case, then it may be worth checking whether you are mapping the name of the logic account itslef or the newly created members.
    Regards,
    Vlado

  • Error while creating a column in master

    Hi all,
    I am using the sap business one 8.8 version.
    I am getting an error while creating a user defined column for a master table.
    The error code is -104.
    The method I had used for creating a master table is as follows.
    *#region Create Table*
            public static bool CreateTable(string TableName, string TableDescription, SAPbobsCOM.BoUTBTableType TableType, SAPbouiCOM.Application oApplication, SAPbobsCOM.Company oCompany)
                SAPbobsCOM.UserTablesMD oUserTableMD;
                int intRecCode;
                bool boolResult = false;
                oUserTableMD = (SAPbobsCOM.UserTablesMD)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables);
                try
                    if (!oUserTableMD.GetByKey(TableName))
                        oUserTableMD.TableName = TableName;
                        oUserTableMD.TableDescription = TableDescription;
                        oUserTableMD.TableType = TableType;
                        intRecCode = oUserTableMD.Add();
                        if (intRecCode == 0)
                            boolResult = true;
                catch (Exception e)
                    oApplication.MessageBox(e.Message, 1, "Ok", "", "");
                finally
                    System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserTableMD);
                    GC.Collect();
                return boolResult;
            #endregion
    ==================================
    The following is the code for creating a column in the above master
    private static void AddField(string TableName, string ColumnName, string ColDescription, SAPbobsCOM.BoFieldTypes FieldType, int Size, SAPbobsCOM.BoFldSubTypes SubType, string ValidValues, string ValidDescription, string
    SetValidValues, SAPbouiCOM.Application oApplication, SAPbobsCOM.Company oCompany)
    int intLoop;
                string[] strValue, strDesc;
                SAPbobsCOM.UserFieldsMD oUserFieldsMD;
                SAPbobsCOM.Recordset oRecordSet;
                oUserFieldsMD = (SAPbobsCOM.UserFieldsMD)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields);
                oRecordSet = (SAPbobsCOM.Recordset)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
                try
                    oRecordSet.DoQuery("SELECT COUNT(*) FROM CUFD WHERE TableID = '" + TableName + "' AND AliasID = '" + ColumnName + "'");
                    if (Convert.ToInt16(oRecordSet.Fields.Item(0).Value) == 0)
                        System.Runtime.InteropServices.Marshal.ReleaseComObject(oRecordSet);
                        oRecordSet = null;
                        strValue = ValidValues.Split(Convert.ToChar(","));
                        strDesc = ValidDescription.Split(Convert.ToChar(","));
                        if (strValue.GetLength(0) != strDesc.GetLength(0))
                            throw new Exception("Invalid Values");
                        oUserFieldsMD.TableName = TableName;
                        oUserFieldsMD.Name = ColumnName;
                        oUserFieldsMD.Description = ColDescription;
                        oUserFieldsMD.Type = FieldType;
                        if (FieldType != SAPbobsCOM.BoFieldTypes.db_Numeric)
                            oUserFieldsMD.Size = Size;
                        else
                            oUserFieldsMD.EditSize = Size;
                        oUserFieldsMD.SubType = SubType;
                        oUserFieldsMD.DefaultValue = SetValidValues;
                        for (intLoop = 0; intLoop <= strValue.GetLength(0) - 1; intLoop++)
                            oUserFieldsMD.ValidValues.Value = strValue[intLoop];
                            oUserFieldsMD.ValidValues.Description = strDesc[intLoop];
                            oUserFieldsMD.ValidValues.Add();
                        if (oUserFieldsMD.Add() != 0)
                            UpdateLastErrorDetails(-104, oCompany);
                catch (Exception e)
                { oApplication.MessageBox(e.Message, 1, "Ok", "", ""); }
                finally
                    if (oRecordSet != null)
                        System.Runtime.InteropServices.Marshal.ReleaseComObject(oRecordSet);
                        oRecordSet = null;
                    System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserFieldsMD);
                    GC.Collect();

    Hi,
    I am newly using BI publisher . I am using 10.1.3.4.0 . I am just trying to create a report in test name. that is the first step to create a report where i am getting error. I am using default RPD paint , where all the user and Groups are defined .

  • Runtime Error while summing a column in ALV output

    Dear All,
    I have developed an ALV Report and the report is giving output without any flaws.
    I have defined proper field catalog and displaying the results using REUSE_ALV_GRID function module.
    Now the report is generating Runtime Error while the user selects a column and click the SUM icon.
    The fields like Qty, or amounts are also theowing runtime error while summing up their column in the ALV output.
    What might be the reason and how to resolve this issu?
    Regards
    Pavan

    Hi ,
    I don't know how you have write  down the code but follow the below coding example:
    FOR TOTAL:
    there is a property of fieldcatalog, that is do_sum.
    USE COED LIKE:
    PERFORM fieldcat USING:
    '1' 'MATNR' 'I_MARD' 'MATERIAL NO' 'MARD' 'MATNR ' ' ',
    '2' 'NETWR' 'I_MARD' 'PLANT' 'MARD' 'WERKS' ' ',
    FORM fieldcat USING value(p_0029)
    value(p_0030)
    value(p_0031)
    value(p_0032)
    wa_fieldcat-col_pos = p_0029.
    wa_fieldcat-fieldname = p_0030.
    wa_fieldcat-tabname = p_0031.
    wa_fieldcat-reptext = p_0032.
    wa_fieldcat-do_sum = 'X'.
    APPEND wa_fieldcat TO i_fieldcat.
    ENDFORM. " FIELDCAT
    in final output you will get the total of currency field.
    FOR SUB TOTAL:
    decleare: i_sort type standard table of slis_sortinfo_alv,
              wa_sort type slis_t_sortinfo_alv.
    wa_sort-spos = '1'.
    wa_sort-fieldname = 'field1'.
    wa_sort-subtot = 'X'.
    append wa_tab to i_sort.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    it_fieldcat = it_fieldcat
    it_sort = i_sort
    Hope this can solve your pbs.
    If you need more inputs let me know.
    Regards,
    Tutun

  • Error while Validating the condition in Joiner

    Hi,
    Im using a Joiner transformation and entered the condition. While validating it displays an OWB error.
    OWB ERROR - The object references has been invalidated due to switching of projects
    Can you pls suggest how to resolve this.
    Thanks in Advance
    Regards
    Kishan

    Thanks for the prompt help. Is there any other way instead of removing the DTD line ?. Because the xml is coming as a string and removing the dtd and then adding it will unneccesary hamper performance. Do you any other way in which even though I don't remove the line I get the output without removing the dtd line ?.
    thanks and regards,
    Sachin

  • Strange error in Discoverer calculated columns.

    Hi,
    I got a strange error in discoverer10g worksheet. In woksheet the calculated coulmns did not return data but in PL/SQL developer when I run the query taking from the Show SQL of Discoverer Worksheet it returns. Anyone please help me to resolve this problem.
    I paste the show sql discoverer query below:
    SELECT /*+ NOREWRITE */
    O378524.NAME AS E394898,
    O397424.COMPANY AS E397430,
    O397424.SEGMENT1 AS E397431,
    O397424.INV_ORG AS E397433,
    O397424.VENDOR_NAME AS E397435,
    O397424.INVOICE_ID AS E397436,
    O397424.PERIOD_NAME AS E397438,
    O397424.AMOUNT_PAID AS E397439,
    DENSE_RANK() OVER(PARTITION BY O397424.ORG_ID ORDER BY O397424.AMOUNT_PAID DESC) AS C_5,
    (SUM(O397424.AMOUNT_PAID)
    OVER(PARTITION BY O397424.ORG_ID ORDER BY O397424.AMOUNT_PAID DESC ROWS
    UNBOUNDED PRECEDING)) /
    (SUM(O397424.AMOUNT_PAID) OVER(PARTITION BY O397424.ORG_ID)) AS C_4,
    SUM(O397424.AMOUNT_PAID) OVER(PARTITION BY O397424.ORG_ID ORDER BY O397424.AMOUNT_PAID DESC ROWS UNBOUNDED PRECEDING) AS C_1,
    O397424.AMOUNT_PAID /
    (SUM(O397424.AMOUNT_PAID) OVER(PARTITION BY O397424.ORG_ID)) AS C_3,
    SUM(O397424.AMOUNT_PAID) OVER(PARTITION BY O397424.ORG_ID) AS C_2
    FROM (SELECT * FROM APPS.HR_OPERATING_UNITS) O378524,
    (SELECT DISTINCT /*SEGMENT1*/ CODE_COMBINATION_ID, INV_ORG
    FROM (SELECT GCC.SEGMENT1,
    GCC.CODE_COMBINATION_ID,
    DECODE(GCC.SEGMENT1,
    7590,
    'Kanowna Belle Organisation',
    7060,
    'Darlot Organisation',
    7260,
    'Cowal Organisation',
    7570,
    'Kanowna Belle Organisation',
    7595,
    'Kundana Organisation',
    7070,
    'Lawlers Organisation',
    7180,
    'NULL for Yilgarn(Barrick (Services) Limited)',
    7541,
    'Granny Smith Organisation',
    7015,
    'NULL for Barrick Gold(Barrick (Australia Pacific) Limited)',
    7610,
    'Kundana Organisation',
    7014,
    'NULL for Yilgarn(Yilgarn Shared Services)',
    7538,
    'Granny Smith Organisation',
    'Unknown') INV_ORG
    FROM APPS.GL_CODE_COMBINATIONS GCC)
    /*WHERE SEGMENT1 IN
    (7590, 7060, 7260, 7570, 7595, 7070, 7180, 7541, 7015, 7610, 7014, 7538)*/
    ) O394875,
    (SELECT CHQ.ORG_ID,
    FVT.DESCRIPTION COMPANY,
    GCC.SEGMENT1,
    INVD.DIST_CODE_COMBINATION_ID,
    DECODE(GCC.SEGMENT1,
    7590,
    'Kanowna Belle Organisation',
    7060,
    'Darlot Organisation',
    7260,
    'Cowal Organisation',
    7570,
    'Kanowna Belle Organisation',
    7595,
    'Kundana Organisation',
    7070,
    'Lawlers Organisation',
    7180,
    'NULL for Yilgarn(Barrick (Services) Limited)',
    7541,
    'Granny Smith Organisation',
    7015,
    'NULL for Barrick Gold(Barrick (Australia Pacific) Limited)',
    7610,
    'Kundana Organisation',
    7014,
    'NULL for Yilgarn(Yilgarn Shared Services)',
    7538,
    'Granny Smith Organisation',
    'Unknown') INV_ORG,
    CHQ.VENDOR_ID,
    CHQ.VENDOR_NAME,
    COUNT(INV.INVOICE_ID) INVOICE_ID,
    --INVL.PRODUCT_TYPE,
    INVL.PERIOD_NAME,
    --chq.check_date,
    SUM(NVL(INVP.PAYMENT_BASE_AMOUNT, INVP.AMOUNT)) AMOUNT_PAID
    FROM APPS.AP_CHECKS_ALL CHQ,
    APPS.AP_INVOICE_PAYMENTS_ALL INVP,
    APPS.AP_INVOICES_ALL INV,
    APPS.AP_INVOICE_LINES_ALL INVL,
    APPS.AP_INVOICE_DISTRIBUTIONS_ALL INVD,
    APPS.GL_CODE_COMBINATIONS GCC,
    APPS.FND_FLEX_VALUES FV,
    APPS.FND_FLEX_VALUES_TL FVT
    WHERE CHQ.CHECK_ID = INVP.CHECK_ID
    AND INVP.INVOICE_ID = INV.INVOICE_ID
    AND INVL.INVOICE_ID = INV.INVOICE_ID
    AND INVL.LINE_NUMBER =
    (SELECT MIN(LINE_NUMBER)
    FROM APPS.AP_INVOICE_LINES_ALL
    WHERE INVOICE_ID = INVL.INVOICE_ID
    AND LINE_TYPE_LOOKUP_CODE = 'ITEM'
    AND DISCARDED_FLAG = 'N')
    AND INVL.INVOICE_ID = INVD.INVOICE_ID
    AND INVL.LINE_NUMBER = INVD.INVOICE_LINE_NUMBER
    AND INVD.DISTRIBUTION_LINE_NUMBER = 1
    AND INVD.DIST_CODE_COMBINATION_ID = GCC.CODE_COMBINATION_ID
    AND FV.FLEX_VALUE_SET_ID = 1013043
    AND FV.FLEX_VALUE = GCC.SEGMENT1
    AND FV.FLEX_VALUE_ID = FVT.FLEX_VALUE_ID
    GROUP BY CHQ.ORG_ID,
    GCC.SEGMENT1,
    CHQ.VENDOR_ID,
    CHQ.VENDOR_NAME,
    FVT.DESCRIPTION,
    --INVL.PRODUCT_TYPE,
    INVL.PERIOD_NAME,
    --chq.check_date,
    INVD.DIST_CODE_COMBINATION_ID) O397424
    WHERE ((O397424.ORG_ID = O378524.ORGANIZATION_ID) AND
    (O397424.DIST_CODE_COMBINATION_ID = O394875.CODE_COMBINATION_ID))
    AND (O397424.AMOUNT_PAID > 0)
    AND (O397424.PERIOD_NAME = /*:"Period"*/'DEC-09')
    -- AND (O394875.INV_ORG = :"Inv Org")
    AND (O378524.NAME = /*:OU*/'Barrick Yilgarn')
    ORDER BY O397424.AMOUNT_PAID DESC;
    Edited by: Soma Sekhar D on Feb 24, 2010 11:46 AM

    Hi,
    In the report I have two worksheet. The Ist worksheet has the same calculated columns as 2nd worksheet. Even the calculations are also the same. The only difference is I use different folder for the 2nd worksheet. For 2nd worksheet layout only the calculated columns will not display the result.The other columns displayed the result properly. Even in the Ist worksheet all the columns including calculated columns displayed the result correctly.The calculations are same in the 2nd worsheet with calculation names different and items coming from different folder. As these calculations are working properly in Ist worksheet,why its not appearing in the 2nd worksheet? The query I paste before is the Discoverer show sql query for 2nd worksheet.
    Please help.

  • Error while validating

    hi,
    after compile my java files on command like
    then i opend weblogic builder.
    1.i connected to server.
    2.file open then descriptors sucessfuly created.
    3.but while validating and deployement through weblogic builder i am getting error look like this"ERROR: Error compiling EJB sources
    ERROR: Error from ejbc: Compiler failed executable.exec"
    can any one help how to solve this problem
    pullareddy

    Make sure you have javac in your PATH.
    -- Rob
    pullareddy wrote:
    hi,
    after compile my java files on command like
    then i opend weblogic builder.
    1.i connected to server.
    2.file open then descriptors sucessfuly created.
    3.but while validating and deployement through weblogic builder i am getting error look like this"ERROR: Error compiling EJB sources
    ERROR: Error from ejbc: Compiler failed executable.exec"
    can any one help how to solve this problem
    pullareddy

  • Error while validating/activating views in SAP HANA

    Hi,
    I are getting below error while activating/activating view in HANA
    "exception 40109:nrepository/base/activation/activator.cpp:176nRepository: Encountered an internal error in the repository code, this is most likely a bug in the implementation;Activator failed to retrieve/lock NRIV entry for domain activation_idnexception 71000139:nptime/query/plan_executor/trex_wrapper/trex_wrapper_body/trex_update.cc:2123n[2458] current operation cancelled by request and transaction rolled backn "
    Please suggest why this error is coming & how can we rectify it.
    Regards
    Divyank Mehta

    Hi Krishna,
    I am getting  same error while activating the View.HANA Studio version is 85.
    Thanks

  • Error while validating data  template

    hi ,
    I get the following error while i validate the data template
    failed to save data
    error occured while crating xml data
    nls_error_illegal_value
    NaN
    Nan
    the following is the data template
    <dataTemplate name="dataTemplateName" description="Template description"
    dataSourceRef="val_ds" defaultPackage="employee" version="1.0">
    <parameters>
    <parameter name="department" dataType="character" defaultValue="10"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1"
    select EMPNO,ENAME,JOB from emp WHERE DEPTNO=:department
    </sqlStatement>
    <dataQuery>
    <dataTrigger name="beforeReport" source="employee.beforeReportTrigger"/>
    <datastructure>
    <group name="G_EMPLOYEE" source="Q1">
    <element name="EMPLOYEE_NUMBER" value="EMPNO"/>
    <element name="NAME" value="ENAME"/>
    <element name="SALARY" value="SAL"/>
    </group>
    </dataStructure>
    </dataTemplate>
    can someone checkfor me
    ta
    s

    Hi,
    Try removing the defaultPackage="employee" from the dataTemplate element. I also noticed that there are the following errors in your XML template:
    <sqlStatement name="Q1" is missing the closing ">"
    There are two <dataQuery> tags - the 2nd one should obviously be </dataQuery>
    You are selecting EMPNO,ENAME,JOB but reference EMPNO,ENAME and JOB in your GROUP
    Cheers
    Andy

  • Invalid column Index error - While consuming Calculation view via Native SQL

    Hi Experts,
    I am trying to consume a Calculation view (sql script one) , which has input parameters, via Native SQL in a ABAP program .
    Code snippet for the same would be as follows , Upon execution, it throws an error "Invalid Column Index (8) error " . Can anyone help what could be the issue here ?
    Thanks in Advance,
    Suma
    REPORT ZTEST_HANA2.
    *Report to consume Calculation view (script based) from ABAP
    PARAMETERS: ip_docnr type BELNR_D,
                ip_gjahr type GJAHR,
                ip_bukrs type BUKRS,
                ip_blgr type FAGL_RLDNR.
       DATA: LO_SQL_STMT TYPE REF TO CL_SQL_STATEMENT,
              LO_CONN     TYPE REF TO CL_SQL_CONNECTION,
              LO_RESULT   TYPE REF TO CL_SQL_RESULT_SET,
              LV_SQL      TYPE STRING,
              LR_DATA     TYPE REF TO DATA.
        DATA: LX_SQL_EXC           TYPE REF TO CX_SQL_EXCEPTION,
              LT_SEPMAPPS_CLSDINV  TYPE TABLE OF SEPMAPPS_CLSDINV,
              LV_TEXT              TYPE STRING.
        TRY.
    lv_sql = |SELECT * FROM "_SYS_BIC"."DEMO-ABAP/CA_GET_FI_DATA" | &&
                     |WITH PARAMETERS ('placeholder'= ('$$p_DOCNR$$','{ ip_docnr }'),| &&
                      |'placeholder'=('$$p_GJAHR$$','{ ip_gjahr }')| &&
                      |,'placeholder'= ('$$S_BUKRS$$','{ ip_bukrs }')| &&
                      |,'placeholder'= ('$$p_base_ledger$$','{ ip_blgr }') )| .
             LO_CONN = CL_SQL_CONNECTION=>GET_CONNECTION( ).
             "Create an SQL statement to be executed via the connection
              LO_SQL_STMT = LO_CONN->CREATE_STATEMENT( ).
             "Execute the native SQL query
             LO_RESULT = LO_SQL_STMT->EXECUTE_QUERY( LV_SQL ).
             "Read the result into the internal table lt_sepmapps_clsdinv
             GET REFERENCE OF LT_SEPMAPPS_CLSDINV INTO LR_DATA.
             LO_RESULT->SET_PARAM_TABLE( LR_DATA ).
             LO_RESULT->NEXT_PACKAGE( ).
             LO_RESULT->CLOSE( ).
             LO_CONN->CLOSE( ).
        CATCH CX_SQL_EXCEPTION INTO LX_SQL_EXC.
             LV_TEXT = LX_SQL_EXC->GET_TEXT( ).
             MESSAGE LV_TEXT TYPE 'E'.
        ENDTRY.

    Hi Suma,
    Post the SQL you success run directly on Studio together with error message (even if is the Invalid column index error).
    Check there if the parameters case is working properly... Is it really this confusing options:
    p_GJAHR
    S_BUKRS
    p_base_ledger
    Why not all lower or all upper? Anyhow you must test and find which option works according your modeling
    Regards, Fernando Da Rós

  • Getting an error while validating with the help of domain

    This is strange. I am validating an email address column in employees table by creating a domain and then associating it with the email column in the table. This is the code
        protected void validate() {
            //  ### Implement custom domain validation logic here. ###
            int atpos = mData.indexOf('@');
            int dotpos = mData.lastIndexOf('.');
            if (atpos > -1 || dotpos > -1) {
                throw new DataCreationException(null, "Invalid Email Address", null);
        }But while committing records, I am receiving the following error:
    Cannot convert testmailid of type class java.lang.String to class model.common.DomainEmail
    Can anyone help me?
    Oh yes, I am using JDev 11.1.2.3

    I suspect that you are using an <af:inputText> with no converter for entering the email on the page. The purpose of a converter would be to convert the String value entered by the user in the field to another datatype (e.g. to model.common.DomainEmail type) which is expected by the model layer (e.g. by the target VO attribute). If there is no such converter, JSF does not perform any datatype conversion and it tries to assign the java.lang.String value to the VO attribute (which is of model.common.DomainEmail datatype), so a type casting error occurs. If that is the case, then you should implement and attach a proper JSF converter to the <af:inputText> component.
    Dimitar

  • Error while validating flat file schema

    Hi,
    I have the flat file schema which is character delimited on '|'. It has Details and Tralier. Trailer starts with a "Tag Identifier" as 'T' and can have one value as "Total Records" i.e. T|3. Details is also delimited on the base of '|' and but has no "Tag Identifier".
    Details have min occurs as 0.
    Schema:
    Eg of the valid values:
    21788367|EN
    21848269|EN
    22004225|EN
    T|3
    This should also be the valid value (with no details and only trailer):
    T|0
    But, when I'm trying to validate this. I'm getting error:
    Unexpected data found while looking for:
    '\r\n'
    The current definition being parsed is User_details. The stream offset where the error occurred is 2. The line number where the error occurred is 1. The column where the error occurred is 2.
    I think it is trying to find Details record also. What setting I need to change?
    Please help.
    Kunal G

    This is my schema:
    <?xml version="1.0" encoding="utf-16"?>
    <xs:schema xmlns="http://BTS_POC.Users" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" targetNamespace="http://BTS_POC.Users" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:annotation>
    <xs:appinfo>
    <schemaEditorExtension:schemaInfo namespaceAlias="b" extensionClass="Microsoft.BizTalk.FlatFileExtension.FlatFileExtension" standardName="Flat File" xmlns:schemaEditorExtension="http://schemas.microsoft.com/BizTalk/2003/SchemaEditorExtensions" />
    <b:schemaInfo standard="Flat File" codepage="65001" default_pad_char=" " pad_char_type="char" count_positions_by_byte="false" parser_optimization="speed" lookahead_depth="3" suppress_empty_nodes="false" generate_empty_nodes="true" allow_early_termination="false" early_terminate_optional_fields="false" allow_message_breakup_of_infix_root="false" compile_parse_tables="false" root_reference="Users_Root" />
    </xs:appinfo>
    </xs:annotation>
    <xs:element name="Users_Root">
    <xs:annotation>
    <xs:appinfo>
    <b:recordInfo structure="delimited" child_delimiter_type="hex" child_delimiter="0xD 0xA" child_order="infix" sequence_number="1" preserve_delimiter_for_empty_data="true" suppress_trailing_delimiters="false" />
    </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
    <xs:sequence minOccurs="0">
    <xs:annotation>
    <xs:appinfo>
    <groupInfo sequence_number="0" xmlns="http://schemas.microsoft.com/BizTalk/2003" />
    </xs:appinfo>
    </xs:annotation>
    <xs:element minOccurs="0" maxOccurs="unbounded" name="Users_Detail">
    <xs:annotation>
    <xs:appinfo>
    <b:recordInfo structure="delimited" child_delimiter_type="char" child_delimiter="|" child_order="infix" sequence_number="1" preserve_delimiter_for_empty_data="true" suppress_trailing_delimiters="false" />
    </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
    <xs:sequence>
    <xs:annotation>
    <xs:appinfo>
    <groupInfo sequence_number="0" xmlns="http://schemas.microsoft.com/BizTalk/2003" />
    </xs:appinfo>
    </xs:annotation>
    <xs:element name="Name" type="xs:string">
    <xs:annotation>
    <xs:appinfo>
    <b:fieldInfo justification="left" sequence_number="1" />
    </xs:appinfo>
    </xs:annotation>
    </xs:element>
    <xs:element name="Id" type="xs:string">
    <xs:annotation>
    <xs:appinfo>
    <b:fieldInfo justification="left" sequence_number="2" />
    </xs:appinfo>
    </xs:annotation>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="Users_Trailer">
    <xs:annotation>
    <xs:appinfo>
    <b:recordInfo tag_name="T" structure="delimited" child_delimiter_type="char" child_delimiter="|" child_order="prefix" sequence_number="2" preserve_delimiter_for_empty_data="true" suppress_trailing_delimiters="false" />
    </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
    <xs:sequence>
    <xs:annotation>
    <xs:appinfo>
    <groupInfo sequence_number="0" xmlns="http://schemas.microsoft.com/BizTalk/2003" />
    </xs:appinfo>
    </xs:annotation>
    <xs:element name="TotalNumber" type="xs:string">
    <xs:annotation>
    <xs:appinfo>
    <b:fieldInfo justification="left" sequence_number="1" />
    </xs:appinfo>
    </xs:annotation>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    Kunal G

Maybe you are looking for