'duplicate column name'-Exception when using identical objects

Hi all,
we're currently experiencing problems when using one single object instance for two different members of a mapped class. Here is an excerpt from our ToplinkMapping.java which shows the relevant parts:
public ClassDescriptor buildQuotationDefDescriptor() {
RelationalDescriptor descriptor = new RelationalDescriptor();
descriptor.descriptorIsAggregate();
descriptor.setJavaClass(de.hvb.ha.data.QuotationDef.class);
// Descriptor Properties.
descriptor.setAlias("QuotationDef");
AggregateObjectMapping commonQtyMapping = new AggregateObjectMapping();
commonQtyMapping.setAttributeName("commonQty");
commonQtyMapping.setReferenceClass(de.hvb.ha.data.type.VolumeDT.class);
commonQtyMapping.setIsNullAllowed(false);
commonQtyMapping.addFieldNameTranslation("commonQty_value->DIRECT", "value->DIRECT");
descriptor.addMapping(commonQtyMapping);     
AggregateObjectMapping wideningQtyMapping = new AggregateObjectMapping();
wideningQtyMapping.setAttributeName("wideningQty");
wideningQtyMapping.setReferenceClass(de.hvb.ha.data.type.VolumeDT.class);
wideningQtyMapping.setIsNullAllowed(false);
wideningQtyMapping.addFieldNameTranslation("wideningQty_value->DIRECT", "value->DIRECT");
descriptor.addMapping(wideningQtyMapping);
well, if we now assign one object-instance of VolumeDT to both members, i.e. like:
VolumeDT vol = new VolumeDT();
quotationDef.commonQty = vol;
quotationDef.wideningQty = vol;
we end up in the mentioned SQL-Exception, because toplink produces the following SQL-Statement:
UPDATE T_QUOTATIONTARGET SET WIDENING_QUANTITY = 0.0, WIDENING_QUANTITY = 0.0 WHERE …
but we've expected something like:
UPDATE T_QUOTATIONTARGET SET COMMON_QUANTITY = 0.0, WIDENING_QUANTITY = 0.0 WHERE …
Any idea we can prevent this behavior and still use one object-reference for both members??
Appreciate any help!

Thanks for the reply but unfortunately the mentioned change didn't fixed the problem. The sql-statement produced by toplink still looks like the one mentioned above. Moreover, the mentioned change couldn't be managed by the Workbench (which we use in the project to create the mappings), could it?
We currently use TopLink Version 10.1.3.3.
Since you've asked I post the relevant parts of the Parent-Mapping (and again its Parent), so sorry for the verbose post:
public ClassDescriptor buildQuotationORMWrapperDescriptor() {
RelationalDescriptor descriptor = new RelationalDescriptor();
descriptor.setJavaClass(de.hvb.ha.server.businessobjects.techapi.instrument.toplink.quotation.QuotationORMWrapper.class);
descriptor.addTableName("T_QUOTATION");
descriptor.addPrimaryKeyFieldName("T_QUOTATION.SEQ_KEY");
// Descriptor Properties.
descriptor.useSoftCacheWeakIdentityMap();
descriptor.setIdentityMapSize(300);
descriptor.useRemoteSoftCacheWeakIdentityMap();
descriptor.setRemoteIdentityMapSize(300);
descriptor.setSequenceNumberFieldName("T_QUOTATION.SEQ_KEY");
descriptor.setSequenceNumberName("Quotation");
descriptor.setAlias("QuotationORMWrapper");     
// Query Manager.
descriptor.getQueryManager().checkCacheForDoesExist();
OneToManyMapping quotationDefsMapping = new OneToManyMapping();
quotationDefsMapping.setAttributeName("quotationDefs");
quotationDefsMapping.setReferenceClass(de.hvb.ha.server.businessobjects.techapi.instrument.toplink.quotation.QuotationDefORMWrapper.class);
quotationDefsMapping.dontUseIndirection();
quotationDefsMapping.privateOwnedRelationship();
quotationDefsMapping.useCollectionClass(java.util.ArrayList.class);
quotationDefsMapping.addAscendingOrdering("orderBy");
quotationDefsMapping.addTargetForeignKeyFieldName("T_QUOTATIONTARGET.SEQ_KEY", "T_QUOTATION.SEQ_KEY");
descriptor.addMapping(quotationDefsMapping);
and now the parent of QuotationORMWrapper:
public ClassDescriptor buildPersistentInstrumentDescriptor() {
RelationalDescriptor descriptor = new RelationalDescriptor();
descriptor.setJavaClass(de.hvb.ha.server.businessobjects.techapi.instrument.toplink.PersistentInstrument.class);
descriptor.addTableName("T_INSTRUMENT");
descriptor.addPrimaryKeyFieldName("T_INSTRUMENT.INSTR_ID");
descriptor.addPrimaryKeyFieldName("T_INSTRUMENT.INSTR_KEYTYPE");     
// Descriptor Properties.
descriptor.useSoftCacheWeakIdentityMap();
descriptor.setIdentityMapSize(300);
descriptor.useRemoteSoftCacheWeakIdentityMap();
descriptor.setRemoteIdentityMapSize(300);
descriptor.setAlias("PersistentInstrument");
OneToOneMapping quotationMapping = new OneToOneMapping();
quotationMapping.setAttributeName("quotation");
quotationMapping.setReferenceClass(de.hvb.ha.server.businessobjects.techapi.instrument.toplink.quotation.QuotationORMWrapper.class);
quotationMapping.useBasicIndirection();
quotationMapping.privateOwnedRelationship();
quotationMapping.addTargetForeignKeyFieldName("T_QUOTATION.INSTR_ID", "T_INSTRUMENT.INSTR_ID");
quotationMapping.addTargetForeignKeyFieldName("T_QUOTATION.INSTR_KEYTYPE", "T_INSTRUMENT.INSTR_KEYTYPE");
descriptor.addMapping(quotationMapping)
I hope I don't missed any relevant parts. By the way, where could I log a bug for this issue and can it be considered a bug?
Thanks in advance!
Message was edited by:
user630939

Similar Messages

  • Extra column names selected when using the 'popup describe' for selecting columns

    Hi,
    In SQL Developer 3.2.20.09, if you use the popup describe function on a table and individually select some columns using Ctrl + click (not shift click which would select a range of columns), and then drag them to the SQL worksheet so the column names come across, it will include all columns between the individual columns that were  selected.
    For example if I choose column 1 and 5, it will include columns 1,2,3,4,5 when I drag them across.
    Simple to reproduce on any table, just open the SQL worksheet, type the name of a table, open the popup describe and select some columns.
    regards,
    Steve

    This isn't happening in v4 EA2 so it appears to be fixed.

  • Duplicate column name when inserting a batch to biztalk

    I wonder why I get the following error:
    The adapter failed to transmit message going to send port "SEND_PORT_TESTORCHESTRATION_00010" with URL "oracledb://OracleServer/?PollingId=TEST_ORCHESTRATION_ORACLE_00010". It will be retransmitted after the retry interval specified for
    this Send Port. Details:"Microsoft.ServiceModel.Channels.Common.TargetSystemException: ORA-06550: line 2, column 290:
    PL/SQL: ORA-00957: duplicate column name
    ORA-06550: line 2, column 1:
    PL/SQL: SQL Statement ignored ---> Oracle.DataAccess.Client.OracleException: ORA-06550: line 2, column 290:
    PL/SQL: ORA-00957: duplicate column name
    ORA-06550: line 2, column 1:
    PL/SQL: SQL Statement ignored
       at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck)
       at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, Boolean bCheck)
       at Oracle.DataAccess.Client.OracleCommand.ExecuteNonQuery()
       at Microsoft.Adapters.OracleCommon.OracleCommonUtils.ExecuteNonQuery(OracleCommand command, OracleCommonExecutionHelper executionHelper)
       --- End of inner exception stack trace ---
    When I tried to pull a batch from sql server to insert to an oracle table. I have checked and none of the records were duplicate or had the same key. If I sent a batch of only 1 record, it went through fine and oracle database was updated.
    However, in either cases, no response from Oracle were received. I had a FILE port to save oracle response to file because the oracle port in the orchestration was 2 way (Send/Receive) port.
    Why was BizTalk not writing the response to file?
    Your hint/instruction to shed some light to this mystery is highly appreciated. Thanks!
    Note: When I tried to look the orchestration debugger, I saw the same message from sql being transmitted twice...why is BizTalk doing that?

    Hi BoatSeller,
    I think it may be something related to the map, I just do not know what. This is what I saw from the message part:
    <ns0:Insert xmlns:ns0="http://Microsoft.LobServices.OracleDB/2007/03/ORACLETABLE/Table/ROTATION_REQ">
    <ns0:RECORDSET>
    <ns0:ROTATION_REQRECORDINSERT>
    <ns0:RotationID>D4-2015-CO1</ns0:RotationID>
    <ns0:RotationID>D4-015-GL1</ns0:RotationID>
    <ns0:Year>2015</ns0:Year>
    <ns0:Year>2015</ns0:Year>
    <ns0:Class>D4</ns0:Class>
    <ns0:Class>D4</ns0:Class>
    <ns0:Rotation>CROSSOVER</ns0:Rotation>
    <ns0:Rotation>GOOCHLAND CLINIC</ns0:Rotation>
    <ns0:From>2014-08-06</ns0:From>
    <ns0:From>2014-05-20</ns0:From>
    <ns0:To>2015-03-05</ns0:To>
    <ns0:To>2015-03-05</ns0:To>
    <ns0:NumberOfConsecutiveSession>1</ns0:NumberOfConsecutiveSession>
    <ns0:NumberOfConsecutiveSession>1</ns0:NumberOfConsecutiveSession>
    <ns0:AmOrPM InlineValue="1"></ns0:AmOrPM>
    <ns0:AmOrPM InlineValue="2"></ns0:AmOrPM>
    <ns0:DayOfWeek>5</ns0:DayOfWeek>
    <ns0:DayOfWeek>4</ns0:DayOfWeek>
    </ns0:ROTATION_REQRECORDINSERT>
    </ns0:RECORDSET>
    </ns0:Insert>
    I thought that would be an issue because it looks like it was repeating the content, but if I understand you correctly, this is what the message content supposed to be? If not, what should I change in the map so that Oracle will get the following?
    <Record1> <field1>..</field1><field2>..</field2></Record1>
    <Record2> <field1>..</field1><field2>..</field2></Record2>
    This is the print screen of my orchestration debugger:
    If this is a problem, how should I fix this?
    And this is my mapping:
    Thanks,

  • Generating Duplicate Columns Names in CMP's

    Hi,
    We are having trouble with the automatic key generation of the CMP beans. We are using java.lang.Object as primary key class and the autogenerated col is ejb_pk but still it doesnt work.
    The Generated Class files show the insert and update statements with duplicate column names.
    The exception trace is
    <i>
    Caused by: com.sap.engine.services.ejb.exceptions.BaseEJBException: SQLException while the data is being flushed.
    The persistent object is com.ejb.PriorityCMP220Persistent.
    at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.ejbFlush(UpdatablePersistent.java:106)
    at com.sap.engine.services.ejb.entity.pm.TransactionContext.flushAll(TransactionContext.java:380)
    at com.sap.engine.services.ejb.entity.pm.TransactionContext.flush(TransactionContext.java:343)
    at com.sap.engine.services.ejb.entity.pm.TransactionContext.beforeCompletionTransactionContext.java:446)
    at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:230) ... 50
    more Caused by: java.sql.SQLException: [SAP_Portals][SQLServer JDBC Driver][SQLServer]Column name 'PRIORITY_ID' appears more than once in the result column list. </i>
    We are using p9 sqlserver driver . Is it something related to driver problem or some configuration issue.
    Please Suggest,
    Thanks,
    Mukul.
    Edited by: Mukul Mangla on Mar 25, 2009 2:03 PM

    As stated by Ken, the Organizer does not consider duplicate file names as duplicate files : the full path with folder hierarchy is taken into account. I have the same situation than you with my camera limited to 10 000 ... I am working with this fact since 1999, and I have no organization problem with that. Absolutely no necessity to rename in my case, but you may have other requirements ?
    If so, it's good to know that you can use the downloader to rename at the import stage (hence the questions of Ken about the way you import).
    You mentionned batch renaming : that can only be made from within the organizer, and I would seriously recommend thinking twice before deciding to do so, a full backup before that being a must.

  • Invalid column name exception

    I am receiving an Invalid column name SQLException. I initially
    thought it was a problem with the computed fields, but was after
    making the usual changes to the model implementation the exception is
    still occurring. I can run the SQL statement in SQLplus and get no
    errors and the three results I'm expecting (grabbing the SQL statement
    from the model's beforeExecute event). The mystifying part is that it
    returns one of the three rows that I'm expecting. That is, the model
    executes and the result set is partially filled. The model is Select
    only. The computed fields are concatenated strings. After logging the
    exception I call getNumRows() on the model and receive a 1 back. The
    computed fields are returned in that one record. Any ideas about what
    to try or where to look next?
    Thanks,
    paul

    Kostas,
    Thanks for your help. During migration a QueryFieldDescriptor was
    created for a field that is only used in the where clause. I'm
    assuming it then couldn't be mapped back to the ResultSet, and this
    caused the Invalid Column Name exception. That is, I am selecting 5
    fields, but had 6 QueryFieldDescriptors.
    paul
    --- In SunONE-JATO@y..., Kostas Morfis <kmorfis@i...> wrote:
    Hi Paul,
    It would appear you have a column name mismatch between what isdefines in
    your modelImpl
    and what is being returned by the JDBC driver.
    From the SQL you sent, the Column Names would be something like:
    'SURVEYGROUP_XREF',SURVEY_ID', CF_SURVEYANDGROUP', 'CF_SURVEYGROUP',
    'RESULTS_VIEWER_ID'
    Do all your column names definitions in your modelImpl match up tothese ?
    >
    eg public static final StringCOLUMN_WIS_SURVEYANDGROUP="CF_SURVEYANDGROUP";
    >
    Note: the qualified column vairables (QUALIFIED_COLUMN_XXXXXX) doNOT get
    used for Select queries.
    If it still unclear where the mismatch is occurring, you can addsome simple
    debugging :
    To tell you what you are trying to access add the the following in
    ResultSetModelBase just before the
    exception occurred:
    System.out.println("UPDATE_MODEL: Attempting to Access Column Name:
    "+fd.getColumnName());
    Object value=resultSet.getObject(fd.getColumnName());
    If still need more information,you can look at the column namesreturned by
    the JDBC calls by doing something like:
    ResultSetMetaData metaData = resultSet.getMetaData();
    int columnCount = metaData.getColumnCount();
    for(int i = 0; i < columnCount ; i++)
    System.out.println("Colummn["+i+"]"+
    metaData.getColumnName(i+1));
    Hope that helps.
    Kostas

  • JPA -- Inheritance with duplicate column names

    Hi,
    I have the following problem:
    I have two tables. Let's call them BASE_TABLE and CHILD_TABLE. They are mapped through Join Inheritance in Java. In other words:
    @Inheritance(strategy=InheritanceType.JOINED)Let's say, the tables look like:
    BASE_TABLE (
        ID NUMBER(18),
        TYPE VARCHAR2(1),
        CODE NUMBER(5))
    CHILD_TABLE (
        ID NUMBER(18),
        CODE NUMBER(5),
        NAME VARCHAR2(50))Here's where the problem lies: I have duplicate column names. In my example, this is the CODE column. When mapping to Java classes, I can have something like:
    @Entity
    @Table(name="BASE_TABLE")
    @Inheritance(strategy=InheritanceType.JOINED)
    @DiscriminatorColumn(name="TYPE", discriminatorType=DiscriminatorType.STRING)
    @DiscriminatorValue("0")
    class BaseEntity {
        @Column(name="CODE")
        private Integer code;
        public Integer getCode_Base() {
            return code;
        public setCode_Base(Integer code) {
            this.code = code;
    @Entity
    @Table(name="CHILD_TABLE")
    @DiscriminatorValue("1")
    @PrimaryKeyJoinColumn(name="ID")
    class ChildEntity extends BaseEntity {
        @Column(name="CODE")
        private Integer code;
        public Integer getCode() {
            return code;
        public setCode(Integer code) {
            this.code = code;
    }The trouble is, that TopLink only handles ONE of the CODE columns. When SELECTing, it only selects the CODE column from table BASE_TABLE. When generating DML statements, again it only uses the CODE column from table BASE_TABLE.
    I wasn't able to make it use BOTH columns.
    Please, help. The DB design cannot be changed at the moment. However, I must find a way to make TopLink Essentials use both CODE columns, not just the one from BASE_TABLE.
    Thank you in advance!
    Best regards,
    Bisser

    Hi Chris,
    I was under the impression, that since the attributes were private, they would be treated as two different attributes by TopLink Essentials.
    Java definitely treats them as two different attributes, and not as one overriding the other. I had made sure that I could set both of them with different values (via the differently named accessors) and, indeed, both values were there. I printed them both out on the console, just to make sure. They were printed out ok, the values were indeed different.
    But TopLink Essentials was ignoring one of them.
    Now that you told me that I should use different names for the attributes, I did just that. And lo and behold, it worked!!! I couldn't even imagine that it would matter to TopLink what the names were, given that they were in two different entities that were mapped to two different tables, inheritance or not.
    As I said, Java treats them as two completely different attributes, unlike TopLink Essentials. In future, I will know that even the attribute names matter. Thank you again.
    Best regards,
    Bisser

  • ORA-00957: duplicate column name

    When I am enableversioning of a table, I get following error messages:
    SQL> execute dbms_wm.enableversioning('transcript');
    BEGIN dbms_wm.enableversioning('transcript'); END;
    ERROR at line 1:
    ORA-00957: duplicate column name
    ORA-06512: at "SYS.LTDDL", line 399
    ORA-06512: at "SYS.LTDDL", line 1117
    ORA-06512: at "SYS.LT", line 7181
    ORA-06512: at line 1
    I checked the column name that will be add by dbms_wm package and did not see any column which would cause this problem.
    Could some one give me the list of reserved column names for dbms_wm package?
    Thanks
    Ashley

    Ashley
    These are some the reserved words used by OWM in its internal views. These can also conflict on enable versioning
    statements.
    RIDCHILD RIDBASE RIDPARENT CHILDSTATE PARENTSTATE BASEDS CHILDDS PARENTDS
    FIRSTCHILDVER CHILDVER PARENTVER POS RID VERSION NEXTVER DELSTATUS
    LTLOCK
    In the release after 9iR2, we have augmented reserved words with a prefix that will commonly not conflict with
    user schema column names.
    Let me know if you were able to identify the reserve word conflict.
    Arun
    [email protected]

  • Data subsetting [ORA-00957: duplicate column name]

    I want to select only rows with a certain id from a table.
    The code for the publication :
    SELECT * FROM ZOO.ANIMAL A, ZOO.TYPE_ANIMAL TA, ZOO.ANIMAL_EMPLOYE AE WHERE A.IDTYPEANIMAL = TA.IDTYPEANIMAL AND TA.IDTYPEANIMAL = AE.IDTYPEANIMAL AND AE.IDEMPLOYE = :employe
    When i publish with .jar, i have this error :
    ORA-00957: duplicate column name
    What is the problem ? The query works in iSQL*Plus !
    Thanks
    Message was edited by:
    user460585

    Hi,
    I guess that you are tired or something …
    01 update requisicoes set
    02 requisicao_num = '4321',
    03 requisicao_desc = 'dfgb',
    04 empresa_id = 3,
    05 posicao_id = 2, -- equals to 14
    06 solicitante = 'dfvsdfv',
    07 centrodecusto_solicitante = '5131',
    08 centrodecusto_executante = '5151',
    09 centrodecusto_aplicacao = '5141',
    10 data_saida = to_date('12/12/2004', 'dd/mm/yyyy'),
    11 data_desejada = to_date('12/12/2004', 'dd/mm/yyyy'),
    12 prioridade_id = 1,
    13 observacao = 'sgfbfdgbdfgb',
    14 posicao_id = 2
    15 where requisicao_id = 3
    Don’t you have:
    posicao_id = 2 in 5th line and in the 14th line ??
    Bye,
    Vitor

  • Alias required in SELECT list of cursors to avoid duplicate column names

    I got some error messages while compiling the following.
    DECLARE
         alert_id                              NUMBER;
         CURSOR cur_search IS SELECT c.item_description,
         d.name modelname,
         SUM(b.quentaty),
         SUM(b.balence)
         FROM      item_procurement_history_dtl a,
                        item_procurement_history b,
                        item_master c,
                        model_master d
         WHERE a.item_code = b.item_code
         AND a.lot_no = b.lot_no
         AND a.item_code = c.item_code
         AND b.modelcode = d.modelcode
         AND (c.item_description LIKE '%'||:blk_stock_search_fields.item_name||'%' OR :blk_stock_search_fields.item_name IS NULL)
         AND (d.name LIKE '%'||:blk_stock_search_fields.modelname||'%' OR :blk_stock_search_fields.modelname IS NULL)
         AND (a.status = :blk_stock_search_fields.status OR :blk_stock_search_fields.status IS NULL)
         GROUP BY c.item_description, d.name
         ORDER BY c.item_description, d.name;
    BEGIN
         GO_BLOCK('blk_stock_search_fields');
         CLEAR_BLOCK(NO_VALIDATE);
         FOR i IN cur_search LOOP
         :blk_stock_search_data.item_name                := i.item_description;
              :blk_stock_search_data.modelname               := i.modelname;
              :blk_stock_search_data.tot_qty                    := i.tot_qty;
              :blk_stock_search_data.available_qty     := i.available_qty;
              NEXT_RECORD;
         END LOOP;
         FIRST_RECORD;
         GO_ITEM('blk_stock_search_fields.pb_search');
    END;
    The error is as follows :-
    Error 403 at line 23 column 2
    Alias required in SELECT list of cursors to avoid duplicate column names.
    What will be the solution for this error?
    Thanx and Regards,
    Vikas

    Vikas,
    The problem is that you are referencing a column name in your LOOP that does not exist in your CURSOR. Therefore, Oracle has interpreted this to its BEST guess Exception. This can be resolved as follows:
    DECLARE
       alert_id NUMBER;
       CURSOR cur_search IS
          SELECT c.item_description,
                 d.name modelname,
                 /* You need to ALIAS the product of the SUM() so you can reference it by name.*/
                 SUM(b.quentaty) AS tot_qty,
                 /* Same issue here, you must ALIAS the SUM() of Balance in order to reference it by a name.*/
                 SUM(b.balence) as available_qty
            FROM item_procurement_history_dtl a,
                 item_procurement_history b,
                 item_master c,
                 model_master d
           WHERE a.item_code = b.item_code
             AND a.lot_no = b.lot_no
             AND a.item_code = c.item_code
             AND b.modelcode = d.modelcode
             AND (c.item_description LIKE '%'||:blk_stock_search_fields.item_name||'%' OR :blk_stock_search_fields.item_name IS NULL)
             AND (d.name LIKE '%'||:blk_stock_search_fields.modelname||'%' OR :blk_stock_search_fields.modelname IS NULL)
             AND (a.status = :blk_stock_search_fields.status OR :blk_stock_search_fields.status IS NULL)
           GROUP BY c.item_description, d.name
           ORDER BY c.item_description, d.name;
    BEGIN
       GO_BLOCK('blk_stock_search_fields');
       CLEAR_BLOCK(NO_VALIDATE);
       FOR i IN cur_search LOOP
          :blk_stock_search_data.item_name := i.item_description;
          :blk_stock_search_data.modelname := i.modelname;
          :blk_stock_search_data.tot_qty := i.tot_qty;
          :blk_stock_search_data.available_qty := i.available_qty;
          NEXT_RECORD;
       END LOOP;
       FIRST_RECORD;
       GO_ITEM('blk_stock_search_fields.pb_search');
    END;Just an observation. Also, There are some misspellings in your cursor. Does this match your table?
    Hope this helps.
    Craig...

  • [Microsoft][SQL Server Native Client 11.0][SQL Server]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.  'Items' (OITM) (OITM)

    Dear Experts,
    i am getting the below error when i was giving * (Star) to view all the items in DB
    [Microsoft][SQL Server Native Client 11.0][SQL Server]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.  'Items' (OITM) (OITM)
    As i was searching individually it is working fine
    can any one help me how to find this..
    Regards,
    Meghanath.S

    Dear Nithi Anandham,
    i am not having any query while finding all the items in item master data i am giving find mode and in item code i was trying to type *(Star) and enter while typing enter the above issue i was facing..
    Regards,
    Meghanath

  • Error in SQL Query The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query

    hi Experts,
    while running SQL Query i am getting an error as
    The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    T2.LineText
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,T2.LineText
    how to resolve the issue

    Dear Meghanath,
    Please use the following query, Hope your purpose will serve.
    select  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
    CAST(T2.LineText as nvarchar (MAX))[LineText]
    from OQUT T0  INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
    QUT10 T2 ON T1.DocEntry = T2.DocEntry --where T1.DocEntry='590'
    group by  T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
    ,CAST(T2.LineText as nvarchar (MAX))
    Regards,
    Amit

  • HT2188 I can hear caller but they can not hear me except when using speaker phone

    I can hear caller but they can not hear me except when using speaker phone

    First of all,  make sure that your iPhone as the most recent iOS available. Check in "Settings>General>Software Update".
    One other problem could be your microphone. Does it work for anything else other than a call?
    Good-Luck!
    kpower28
    Please mark this as "solved my problem" or "helped me"!

  • Duplicate Column Name: VIEW

    Hi. Im writing a VIEW:
    CREATE OR REPLACE VIEW viewexample AS
    SELECT c.customer_id, c.details, o.order_id,
    o.details, op.product_id, op.description
    FROM customer c, order o, order_product op
    (...more... )
    Yet, i get this message:
    duplicate column name
    And its pointing to line 3. Any ideas?

    A problem has arisen.
    I have developed this View further but it seems im getting a Cartesian product.
    I am not tip-top on joins, but i included some inner joins that i thought would not return a Cartesian.
    Here is the code:
    CREATE OR REPLACE VIEW myview AS
         SELECT      co.order_id,
              o.description o_d,
              co.customer_id,
              cp.product_description,
              c.name c_n
         FROM     customer_order co, order o, customer c,
              customer_product cp
         WHERE     cp.product_description BETWEEN
              '000' AND '010'
         AND      co.order_id = o.order_id
         AND     co.customer_id = c.customer_id;
    with the select statment:
    select * from myview;
    I am expecting 10 selections, yet i recieve about 1000.
    Any ideas?

  • Wrong number of parameters exception when using PreparedStatement

    Hi,
    I'm getting Wrong number of parameters exception when using a prepared statement. It's very weird. The code is:
    sqlstmt="update blah1 set blah2=? where blah3=?";
    myps = Conn.prepareStatement(sqlstmt);
    myps.setString(1, p1);
    myps.setInt(2, p2);
    myps.executeUpdate(sqlstmt);
    The error is:
    SQLException: [IBM][CLI Driver] CLI0100E Wrong number of parameters. SQLSTATE=07001:07001
    Could someone please help? Thanks
    Mahdad

    Hi and thanks for the reply.
    Actually this is the try block...
    The variable's defintions are correct.
    PreparedStatement myps;
    try {
    sqlstmt="update blah1 set blah2=? where blah3=?";
    myps = Conn.prepareStatement(sqlstmt);
    myps.setString(1, blah4);
    myps.setInt(2, blah5);
    myps.executeUpdate(sqlstmt);
    catch (SQLException e) {
    System.out.println("SQLException: " + e.getMessage() + ":" + e.getSQLState());
    blah6++;

  • Did IOS8 upgrade w/iPhone5 / lost names associated when using e-mail - only displaying telephone numbers / what are the steps to correct to show names?

    Did IOS8 upgrade w/iPhone5 / lost names associated when using e-mail - only displaying telephone numbers / what are the steps to correct to show names?

    maybe OP want to extract all numbers from his inbox using regular expressions?

Maybe you are looking for

  • BAPI_ACC_INVOICE_RECEIPT_POST

    Hi,   can someone tell me the required parameter of the Fm.   I want to post some parked invoice through this.    Thanks,    sanjukta

  • Regarding Invoice No 1003 in SAP Demo Database

    Hi In sap Demo Database SBODemo_US, for Invoice no 1003, for an item A00006 Price is given as 786.60. Choose Goto Menu and further choose Gross Profit, it displays the base price and Sales Price(770.87). How can the price be different at two places?

  • How to Query Internal tables in PCR

    Hi Experts, When I tried by using operation u201CVAKEYu201D to query the Internal tables, but it was not working I would like to write one PCR in the Indian Payroll Please can anyone help me on the same? The requirement as below; u201CIf the DDNTK ta

  • How to organize in a desktop folder

    For the fifth time this week I just lost hours worth of work because Apple refuses to let us, the users, organize our folder in a way that makes sense. I work on several small projects during the week and as such I have many clips and voice overs and

  • Why is FaceTime not working in UAE

    Why is FaceTime not working in UAE ? Also is iMessage working ? In UAE ?