Error while inserting value Qualified field in the main table

Hello,
I am trying to populate Qualified field in the main table when a new record is inserted in the Products Repository.
The field is Reference Price and its a qualified lookup field. I am using the below code to create qualified lookup value and create qualified link values.
QualifiedLookupValue qlvRefPrice = new QualifiedLookupValue();
TableId qltabid = repSchema.getTableId("ReferencePrices");
FieldId qlfieldid = repSchema.getFieldId("ReferencePrices","RP_ReferncePrices");
RecordId rdRefPrice = getRecordId(connPool,session,"RP",qlfieldid,qltabid);
HashMap map = new HashMap();
map.put(repSchema.getFieldId("ReferencePrices","StartDate_ReferencePrice"),new DateTimeValue(cal));
map.put(repSchema.getFieldId("ReferencePrices","EndDate_ReferencePrice"),new DateTimeValue(cal));
map.put(repSchema.getFieldId("ReferencePrices","ListPrice"),new FloatValue(Float.parseFloat("123.3")));
map.put(repSchema.getFieldId("ReferencePrices","Currency"),new LookupValue(getLookupRecordId(connPool,session,"Currencies","Currency_Currencies","EUR")));
QualifiedLinkValue qlvLinkValue = MdmValueFactory.createQualifiedLinkValue(rdRefPrice,map);
qlvRefPrice.addValue(qlvLinkValue);
emptyRecord.setFieldValue(fieldIdRefPriceHistory,qlvRefPrice);
However when the createrecord command is executed I get the following error.
java.lang.RuntimeException: No matching validation Id 97. at com.sap.mdm.internal.validation.ValidationInfoHelper.retrieveValidations(ValidationInfoHelper.java:71) at com.sap.mdm.data.commands.CreateRecordCommand.execute(CreateRecordCommand.java:246) at com.alcatel_lucent.productdetail.ProductItemDetail_Comp.createProduct(ProductItemDetail_Comp.java:2927) at com.alcatel_lucent.productdetail.wdp.InternalProductItemDetail_Comp.createProduct(InternalProductItemDetail_Comp.java:656) at com.alcatel_lucent.productdetail.ProductItemAddView.onActionSave(ProductItemAddView.java:971) at com.alcatel_lucent.productdetail.wdp.InternalProductItemAddView.wdInvokeEventHandler(InternalProductItemAddView.java:662) at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87) at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67) at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420) at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132) at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335) at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143) at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:332) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:761) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:696) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:253) at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149) at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73) at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:869) at com.sap.tc.webdynpro.portal.pb.impl.localwd.LocalApplicationProxy.sendDataAndProcessAction(LocalApplicationProxy.java:77) at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1356) at com.sap.portal.pb.PageBuilder.SendDataAndProcessAction(PageBuilder.java:327) at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:869) at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755) at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717) at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136) at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335) at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143) at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:332) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:741) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:694) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:253) at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(AccessController.java:219) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)      
I spoke to my MDM team and they say there is no validation which they have put for Reference Price field. I have tried inserting values in another field of type qualified lookup in the same main table and that works without any issue.
The code is as below:
QualifiedLookupValue qlvRating = new QualifiedLookupValue();
TableId qlvtable = repSchema.getTableId("ProductRatings");
FieldId qlvratinglink = repSchema.getFieldId("ProductRatings","RatingLink");                    
RecordId rdidPR = getRecordId(connPool,session,"CI",qlvratinglink,qlvtable);
wdComponentAPI.getMessageManager().reportSuccess("rdidPR "+rdidPR);
HashMap mapPR = new HashMap();
mapPR.put(repSchema.getFieldId("ProductRatings","AvailRating"),new LookupValue(getLookupRecordId(connPool,session,"AvailabilityRatings","AvailabilityRating_AvailabilityRatings","CI")));
mapPR.put(repSchema.getFieldId("ProductRatings","EffectiveDate"),new DateTimeValue(cal));
mapPR.put(repSchema.getFieldId("ProductRatings","FERAIndic"),new LookupValue(getLookupRecordId(connPool,session,"ReplacementIndicators","Code","FE")));
mapPR.put(repSchema.getFieldId("ProductRatings","FERAOrdItem"),new LookupValue(getLookupRecordId(connPool,session,"ReplProducts","ProdID","100008200")));
QualifiedLinkValue qlvLink = MdmValueFactory.createQualifiedLinkValue(rdidPR,mapPR);
qlvRating.addValue(qlvLink);
emptyRecord.setFieldValue(fieldIdRatingHistory,qlvRating);     
I would really appreciate if someone can help in solving the issue.
Thanks in advance,
Aamod

Hi Aamod,
Sees that some validation/assignments are getting triggered as soon as you make changes to the record in MDM. Please check once after removing validations/workflow that you may have. This way you may debug the issue.
Hope this helps!!
Cheers,
Arafat

Similar Messages

  • Error while insert data using execute immediate in dynamic table in oracle

    Error while insert data using execute immediate in dynamic table created in oracle 11g .
    first the dynamic nested table (op_sample) was created using the executed immediate...
    object is
    CREATE OR REPLACE TYPE ASI.sub_mark AS OBJECT (
    mark1 number,
    mark2 number
    t_sub_mark is a class of type sub_mark
    CREATE OR REPLACE TYPE ASI.t_sub_mark is table of sub_mark;
    create table sam1(id number,name varchar2(30));
    nested table is created below:
    begin
    EXECUTE IMMEDIATE ' create table '||op_sample||'
    (id number,name varchar2(30),subject_obj t_sub_mark) nested table subject_obj store as nest_tab return as value';
    end;
    now data from sam1 table and object (subject_obj) are inserted into the dynamic table
    declare
    subject_obj t_sub_mark;
    begin
    subject_obj:= t_sub_mark();
    EXECUTE IMMEDIATE 'insert into op_sample (select id,name,subject_obj from sam1) ';
    end;
    and got the below error:
    ORA-00904: "SUBJECT_OBJ": invalid identifier
    ORA-06512: at line 7
    then when we tried to insert the data into the dynam_table with the subject_marks object as null,we received the following error..
    execute immediate 'insert into '||dynam_table ||'
    (SELECT

    887684 wrote:
    ORA-00904: "SUBJECT_OBJ": invalid identifier
    ORA-06512: at line 7The problem is that your variable subject_obj is not in scope inside the dynamic SQL you are building. The SQL engine does not know your PL/SQL variable, so it tries to find a column named SUBJECT_OBJ in your SAM1 table.
    If you need to use dynamic SQL for this, then you must bind the variable. Something like this:
    EXECUTE IMMEDIATE 'insert into op_sample (select id,name,:bind_subject_obj from sam1) ' USING subject_obj;Alternatively you might figure out to use static SQL rather than dynamic SQL (if possible for your project.) In static SQL the PL/SQL engine binds the variables for you automatically.

  • Automatic assignment of hierarchy field in the main table

    Hi,
    We are upgrading from SRM-MDM catalog 2.0 to SRM-MDM catalog 3.0 sp07 patch 10.
    In the main table, we have the standard field Hierarchy, that is a lookup on table Hierarchy.
    In order to value this field, we have a specific field in the Main table, the UNSPSC code, that is a lookup on a specific reference table. This reference table makes the link between UNSPSC codes and nodes of the Hierarchy table.
    After importing a new record that contains the UNSPSC code, we want to automatically assign a value to the hierarchy field in the Main table by the assignment's expression "[main table]UNSPSC code. [specific table]name of hierarchy. [Hierarchy table]name of hierarchy".
    When executing this assignment, we get the error "Assignment operation failed: A runtime error occurred while evaluating an assignment, validation or calculated field".
    Do you know if this kind of assignment is possible (it worked in MDM 5.5 but not anymore in 7.1) ? Or if there is a workaround ?
    Thanks for your kind help.
    Catherine

    Hi Mandeep,
    Thanks for your answer.
    But, I do not want to assign a specific value to the Hierarchy field in the Main table. I want to determine it via a specific table.
    Here is a sample of our data model to try to explain :
    Main table :
    item reference [Display field]
    hierarchy --- lookup on Hierarchy table
    UNSPSC code --- lookup on Specific reference table
    Hierarchy table :
    hierarchy name [Display field]
    hierarchy code
    Specific reference table, type flat :
    UNSPSC code [Display field]
    hierarchy name --- lookup on Hierarchy table
    After import, in the Main table, item reference and UNSPSC code are valued.
    In order to value the hierarchy field in the Main table, we would like to use the specific reference table :
    [Main table]UNSPSC code >>> [Specific reference table]hierarchy name >>> [Hierarchy]hierarchy name.
    This assignment works if the assignment field is a plain text field but not if it is the Hierarchy field of the Main table, which is on lookup on the Hierarchy table.
    Thanks for your help !
    Best regards,
    Catherine

  • Error while adding a new field to the Segment in we31

    Hi ,
    I am getting error when i am trying to add the new field to the cust. segment.
    It is released for the adding the new fields i am cancelling the release , but i got a message like this
    Error while resetting release of segment 'segment name'.
    it is comming from the message class EA and message number 259.
    Thanks in advance.
    Reagrds,
    bharani

    Hi,
    Have you tried Cancelling the release before adding the version?
    Select the active version of the IDOC Segment and cancel its release first. Only then you will be able to add a version.
    Please let me know if it worked!
    Vijay

  • Error while adding content type fields in the EditForm.aspx for an customlist item.

    This is office 365. I have content type which is attached to custom list.
    Added new site column "CustomerAction" which was added to Content type, now when I added this field in the EDITForm.aspx using the SharePoint designer, this form is called when the custom list item is being edited.
    But when I added this extra field to EDITFORM.aspx it is giving error,. the standard correlationid error.
    Can anyone suggest, what could be problem !
    Thanks
    Labhesh
    Labhesh Shrimali

    Hi Labhesh,
    When we add the site column to the content type, there is an option to update the all
    content types which inheriting from this type.
    If we set this to Yes, then the site column will be added to the list where the content type or its child content type has been used and this column will be added to the EDITFORM.aspx too.
    So we don’t need to re-add this site column to EDITFORM.aspx.
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Inserting a single field in a custom table

    hi all,
    can u tell me hw could i insert a single field in the custom table.
    i have abt 6 fields in the custom table.
    5 fields are already populated...
    i have to insert one field ..i dont want to use insert statement.
    thanx in advance

    HI,
    You can use UPDATE statement
    UPDATE ztable SET SIXTH_FIELD  = 'value'
                  WHERE key_field = 'asdf'.
    Thanks
    Naren

  • Display many fields of a lookup table in the main table

    Hello Experts,
    In MDM, I have a "Suppliers" table which is a lookup table. This table has 4 fields :
    - Supplier Name (Display Field)
    - Supplier Code
    - Email
    - Phone number
    In the main table, a field "Supplier" uses the "Suppliers" lookup table. This fields displays the "Supplier Name" of the "Suppliers" lookup table.
    Now I also want to display the "Email" and the "Phone Number" of the supplier. If I set these fields as Display Fields in the "Suppliers" lookup table, they appear concatenated in the main table, which I don't want.
    The only way I found to display those fields is to set 2 new fields in the main table as calculated fields, eg: IF(TRUE, Supplier.Email).
    Is there any way to display those fields w/o using calculated fields?
    Thanks for your help

    Hi Christian,
    Thanks for your help. Actually I am working on the SRM part of MDM, so I do not use portal to display data but the SRM-MDM UI on which I can not manage iViews.
    The need is to have, for each Material displayed, the name and the contact data of the Supplier. If I concatenate those data  the display is not very clear for the user. Eg:
    Supplier data: TOTO, contact_at_toto.com, 1234567890
    I would rather have :
    Supplier: TOTO
    EMail: contact_at_toto.com
    Phone Number: 1234567890
    As you said, the non automatic update of calculated fields is an issue in my case. So I am currently looking at assignments, which seems to be schedulable via a workflow but I don't know if it's a good mean?
    Best regards,
    Patrick

  • How to populate the main table and the lookup's at the same time

    Hi ,
       What I have with me is the XML files which contain the data from the material master and the excel sheet which talks about the mapping . it basically tells me which field of the main table maps to which field of which segment in the IDOC and also the name of the table and the field in the R3 system .
    I wish to use this info to populate the data in the material repository .
    - How can I populate the data in the lookup table at the same time when I am populating the main table ? I have only the XML's that correspond to the main table . I don't have seperate data for the lookup tables .
    - Can I use the standard maps available for import in the business content of material repository in MDM ?
    - If the answer to the second question is NO then I think i can create the maps and save them for future use .
    Regards
    Deepak Singh

    Hi, Deepak
    >>> - How can I populate the data in the lookup table at the same time when I am populating the main table ? I have only the XML's that correspond to the main table . I don't have seperate data for the lookup tables .
    I don't think you can populate both main table and all fields of lookup tables at the same time, i.e. using same map. You can consider 2 options to upload all information you have:
    1) If your XML file contains data you would like to upload to lookup tables, you can upload it to MDM lookup tables with several maps using same XML and choosing different sections of that XML corresponding to different MDM lookup tables.
    2) Also you can upload main table simultaneously with lookup table entries (using same map), but in this case new lookup table entries will only contain display field values that you mapped. To do this you should use 'Add' value mapping functionality for fields that you mapped to lookup tables.
    >>>- Can I use the standard maps available for import in the business content of material repository in MDM ?
    1) In case you have material master repository delivered by SAP and you use XML files which structure corresponds to SAP predelivered XSD schemas then you can use these maps undoubtedly.
    2) If your repository is based on SAP predelivered, but you changed it ,you should adjust these maps due to differences in repository structure and  XML files structure.
    3) If you created your repository from scratch you should consider option of making your own import maps.
    Regards,
    Vadim Kalabin

  • Unable to delete Flat Table Field in Products (Main) Table..!!

    Hi Friends,
    I have created a flat table and assigned it to the main table as a field. Later i added data and also removed. Now , when i am trying to delete that field in the main table then i am getting the below error
    "<i><b>The field cannont be deleted until references to in the Family Tree are removed</b></i>"
    I checked in the Families, i havent found any entry.  I am new to the MDM.. I am unable to find the solution.
    Thanks,
    Raags

    I am able to solve problem. In the datamanager i found that the partition is done on this field. i removed it from family mode.
    thanks,
    raags

  • Syndicatng from both the main tables on change in lookup main table

    Hi SDNers,
    I have 2 main tables, say Main table, Lookup Main Table.
    The requirement is, on change/addition of values in Lookup Main table, I want the record to be syndicated consisting of the fields from the lookup main table and the corrseponding fields from the Main table.
    If any one has tried this/ any work arounds, please guide.
    Thanks,
    Priti

    Hey
    This can not be done through regular syndicator, you need to use Java API/ webservice for this.
    Thanks
    Aamir

  • Error while inserting record in Key-Flex Values Set interface

    Guys
    on 11.5.10.2
    Actually the problem is being occurred while inserting value in Job Flex Field Value set, we have created two segment for job key flex filed, No and name, it was working fine, but since we have uploaded bulk data via api "fnd_flex_values_pkg.INSERT_ROW" which was around 100 off record, but after completion this task system is not taking new value by Values set interface, and show message "APPS-FND-01206: You entered duplicate values or sequence of value that must be unique for every record",
    However, we insert the job number through api, it is inserting without error while
    Interface is not taking value and raise duplicate message error,
    which is APPS-FND-01206
    Please Advice.

    Thanks for supporting dunacan
    I have mentioned both of segment detail . please advice,
    1.One is Job No segment
    Segment1 number 10
    Required Check Yes
    Value set Info JOB_NO
    List Type : List of Values
    Security Type : No Security
    Format Validation : select number 7,0 and check on number only (0-9)
    Validation Type Independent
    2.One is Job Name segment
    Segment2 number 20
    Required Check Yes
    Value set Info JOB_NAME
    List Type : List of Values
    Security Type : No Security
    Format Validation : select CHAR 60 Validation Type Independent
    It was strange that how could it possible duplication value without having database,i am unable to find this issued,
    Edited by: oracle0282 on Jan 17, 2011 3:32 AM

  • Error while updating a NCLOB field

    Hi,
    I'm using latest SQL Developer with Linux (Ubuntu 6.06.1), Sun JDK 1.5.0_08 and while modifying a NCLOB field with the data grid editor, I have the following error while commiting :
    UPDATE "STD"."PROCESS_STEP" SET XML_PARAM = '<?xml version="1.0" encoding="UTF-8"?>
    <Root><Options><Option type="PRES" code="PRES" label_1="Présentation du service" label_2="Présentation du service" mandatory="false" state="CONFIGURATION_NONE">
    <Item code="ADM_ROOT" label_1="pour le rôle" label_2="pour le rÿle" inputType="SELECT" length="100" size="100" />
    <Item code="ADM_DELEG" label_1="pour le rÿle" label_2="pour le rÿle" inputType="SELECT" length="100" size="100" />
    <Item code="PUBLIC" label_1="pour le rÿle" label_2="pour le rÿle" inputType="SELECT" length="100" size="100" />
    <Item code="MEMBER" label_1="pour le rÿle" label_2="pour le rôle" inputType="SELECT" length="100" size="100" />
    <Item code="VIP" label_1="pour le rÿle" label_2="pour le rÿle" inputType="SELECT" length="100" size="100" />
    <Item code="ANONYME" label_1="pour le rÿle" label_2="pour le rÿle" inputType="SELECT" length="100" size="100" />
    <Item code="ROLE_EXT1" label_1="pour le rÿle" label_2="pour le rÿle" inputType="SELECT" length="100" size="100" />
    <Item code="ROLE_EXT2" label_1="pour le rÿle" label_2="pour le rÿle" inputType="SELECT" length="100" size="100" />
    <Item code="ROLE_EXT3" label_1="pour le rÿle" label_2="pour le rÿle" inputType="SELECT" length="100" size="100" />
    <Item code="ROLE_EXT4" label_1="pour le rÿle" label_2="pour le rÿle" inputType="SELECT" length="100" size="100" />
    <Item code="ROLE_EXT5" label_1="pour le rÿle" label_2="pour le rÿle" inputType="SELECT" length="100" size="100" />
    </Option></Options></Root>
    ' WHERE ROWID = 'AAAOn6AAHAAAFWEAAA'
    One error saving changes to table "STD"."PROCESS_STEP":
    The stdout log show the following exception :
    java.lang.ArrayIndexOutOfBoundsException: 26
    at oracle.jdbc.driver.OraclePreparedStatement.setFormOfUse(OraclePreparedStatement.java:9398)
    at oracle.dbtools.raptor.models.EditableResultSetTableModel.updateRow(EditableResultSetTableModel.java:1080)
    at oracle.dbtools.raptor.models.EditableResultSetTableModel.save(EditableResultSetTableModel.java:412)
    at oracle.dbtools.raptor.controls.EditableResultSetTable.save(EditableResultSetTable.java:187)
    at oracle.dbdev.oviewer.table.DataEditor.saveChanges(DataEditor.java:187)
    at oracle.dbdev.oviewer.table.DataEditor.handleEvent(DataEditor.java:648)
    at oracle.ide.controller.IdeAction.performAction(IdeAction.java:530)
    at oracle.ide.controller.IdeAction$1.run(IdeAction.java:785)
    at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:804)
    at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:499)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
    at java.awt.Component.processMouseEvent(Component.java:5488)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1778)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    I don't know if the bug is related to the embedded JDBC driver or with SQLDevelopper. But the update command works well when using it directly with the SQL editor.
    Do you have any hint ?
    Thanks
    -eric

    This bug becomes annoying because it occurs randomly.
    I found a way to reproduce it every time :
    1. First use the script below:
    DROP TABLE TABLE1;
    CREATE TABLE TABLE1
    (     "ID" NVARCHAR2(50) NOT NULL ENABLE,
         "TYPE" NVARCHAR2(50) NOT NULL ENABLE,
         "VALEUR" NVARCHAR2(255),
         "ORDRE" NUMBER(38,0),
         "PACKAGE" NVARCHAR2(50) NOT NULL ENABLE,
         "LABEL" NVARCHAR2(100),
         "INTERN" CHAR(1 BYTE) DEFAULT 'Y' NOT NULL ENABLE,
         "CRITIC" CHAR(1 BYTE) DEFAULT 'N',
         CONSTRAINT "PK_TABLE1" PRIMARY KEY ("ID") ENABLE
    INSERT INTO TABLE1 (ID, TYPE, VALEUR, ORDRE, PACKAGE, LABEL, INTERN, CRITIC) VALUES ('1', '2', '3', '4', '5', '6', 'Y', 'Y');
    INSERT INTO TABLE1 (ID, TYPE, VALEUR, ORDRE, PACKAGE, LABEL, INTERN, CRITIC) VALUES ('9', '10', '11', '12', '13', '14', 'Y', 'Y');
    INSERT INTO TABLE1 (ID, TYPE, VALEUR, ORDRE, PACKAGE, LABEL, INTERN, CRITIC) VALUES ('17', '18', '19', '20', '21', '22', 'Y', 'Y');
    2. Then try to change the 11 value in the grid editor and commit. There is an ArrayOutOfBoundsException : 2 in the stdout and the 'Data Editor Log' say :
    "One error saving changes to table "TEST"."TABLE1":"
    This bug occurs in every computer (Linux / Windows).
    Can you help me ?
    Thanks,
    -eric

  • Getting a Runtime Exception while inserting value in MSAccess 2000

    I am using below mentioned code to insert values in MSAccess 2000 which having table structure as mentioned below:-
    Field Name
    Data Type
    TodaysDate
    Date/Time
    Cart ID
    Number
    Client Name
    Text
    Team & Segment
    Text
    Duration
    Number
    Tape ID
    Text
    Start Date
    Date/Time
    End Date
    Date/Time
    Code:-
    private boolean enterDataIntoMSAccessDatabaseusingPreparedStatement()
            try {
                ps = connection.prepareStatement("INSERT INTO [Cart ID Details] VALUES (?,?,?,?,?,?,?,?)");
                System.out.println("After Query");
            catch (SQLException se) {
                generateErrorMessage("Error in Prepared Statement \n " + se.getMessage() );
                return false;
            catch (Exception e)
                generateErrorMessage("Unexpected Error Occured \n " + e.getMessage());
            String todaysDate = cartIDApplicationAddCartIDDatejTextField.getText().trim();
            String cartID = cartIDApplicationAddCartIDCartIDjTextField.getText().trim();
            String clientName = cartIDApplicationAddCartIDClientNamejTextField.getText().trim();
            String teamSegment = cartIDApplicationAddCartIDTeamAndSegmentjTextField.getText().trim();
            String duration = cartIDApplicationAddCartIDDurationjTextField.getText().trim();
            String tapeID = cartIDApplicationAddCartIDTapeIDjTextField.getText().trim();
            String startDate = cartIDApplicationAddCartIDStartDatejTextField.getText().trim();
            String endDate = cartIDApplicationAddCartIDEndDatejTextField.getText().trim();
            try {
                //System.out.println("Before ps.setString()");
                ps.setString(1, todaysDate);
                ps.setString(2, cartID );
                ps.setString(3, clientName);
                ps.setString(4, teamSegment);
                ps.setString(5, duration);
                ps.setString(6, tapeID);
                ps.setString(7, startDate);
                ps.setString(8, endDate);
                //System.out.println("After ps.setString()");
                    ps.executeUpdate();
            catch (SQLException se) {
                generateErrorMessage("Error while inserting data in database \n " + se.getMessage());
                return false;
            catch (Exception e)
                generateErrorMessage("Unexpected Error Occured \n" + e.getMessage() );
            return true;
    The above boolean function is called in "Save Button" action event, but when I click Save I am getting as Runtime Exception.
    Kindly help me to sort out this issue.

    Print stack traces not just messages.  And it will tell you what is wrong.  And if you posted the stack trace someone else might be able to tell you.
    If you get an exception DO NOT CONTINUE.  You can't do an update if the prepared statement failed so there is no point in trying.  (Of course that depends on what 'generateErrorMessage' does)
    Other than that note that you are using strings for everything even though the data types are not all text fields.

  • Error while deleting values of characteristic /1FB/COMPANY/Company (RFC des

    Dear all,
    I am trying to synchronize Company master data between local BCS system and SAP BW with UGMD_BATCH_SYNC program. In the synchronization mode, Full Synschronization (Write and Delete) was selected.
    However, I receive the following error message when executing the program:
    Error while deleting values of characteristic /1FB/COMPANY/Company (RFC destination )
    Message no. UGMD077
    Diagnosis
    When writing or deleting values of characteristic /1FB/COMPANY/Company errors occurred in the system with RFC destination . As the changes have already been defined in the local storage location this results in the master data being asynchronous between the local and remote storage location.
    System Response
    Processing is continued.
    Procedure
    Carry out a manual synchronization of the master data later using report UGMD_BATCH_SYNC. You can find additional information there under Application Help.
    FYI, RFC Destination for my data basis is left blank.
    What may causes this error and how to resolve it?
    Thank you.

    Hi MontyBurns,
    May I know what settings that I need to check in UGMDSYNC program? As far as I can tell, there is only one parameter that we need to specify in the program i.e. Field Name. As I am trying to synchronize from BCS to BW, I have chosen the followings settings:
    Source = LOCAL
    Target = ALLBW
    All,
    Interesting thing that I notice after executing the UGMDSYNC program is the following message:
    Synchronize/Display Variances Between Systems
         The compound dependencies for the attributes or texts are not defined
         uniformly in the systems investigated.
         Example:
         Texts are defined as language-specific in the local systems and as
         language-independent in remote systems (for example BW systems). The
         same can apply for other compounds such as version or time dependencies.
    System Response
         The display of differences between the systems will be affected. A
         manual synchronization will not be completely successful.
    Procedure
         1.  Ensure that the dependencies for the attributes and texts are the
             same in all systems.
         2.  Start the synchronization process again.
    Procedure for System Administration
    I can check the attributes and texts in BW via RSD1 by specifying InfoObject = 0COMPANY and checking the Master data/texts and Attribute tabs. But how do I check similar settings in BCS Workbench? I can't determine whether the Company text is language-dependent or not simply by displaying specific Company from Process View > Master Data > Consolidation Units > Company.
    Thanks.

  • ERROR WHILE INSERTING BLOBS AS PARAMETERS OF EXISTING STORED PROCEDURE

    I have 2 simple tables to keep large application data (as XMLDOCUMENT in one table and BLOB in another):
    SQL> desc bindata_tbl;
    Name Null? Type
    BDATA_ID NOT NULL NUMBER(10)
    BDATA NOT NULL BLOB
    SQL> desc metadata_tbl;
    Name Null? Type
    MDATA_ID NOT NULL NUMBER(10)
    MDATA NOT NULL SYS.XMLTYPE
    and stored preocedure to input new data into those tables:
    "SP_TEST_BIN_META_DATA"
    i_MetaData in METADATA_TBL.MDATA%TYPE,
    i_BinData in BINDATA_TBL.BDATA%TYPE
    as
    begin
    if i_MetaData is not null then
    insert into METADATA_TBL (MDATA_ID, MDATA)
    values (METADATA_SEQ.nextval, i_MetaData);
    end if;
    if i_BinData is not null then
    insert into BINDATA_TBL (BDATA_ID, BDATA)
    values (BINDATA_SEQ.nextval, i_BinData);
    end if;
    COMMIT;
    -- Handle exceptions
    EXCEPTION
    WHEN OTHERS THEN
    ROLLBACK;
    RAISE;
    end;
    I communicate with database from .Net application using "Oracle.DataAccess 10.1.0.200 (Runtime version v1.0.3705)" component.
    Following procesure is a [simplified] examlple of the code I use, which demonstrates the errors while inserting XMLDOCUMENT and BLOB values simultaneously.
    In my application those should be quite big objects (~200 K XML and ~5-25M binary image data), but following sample keeps failing even with very small-sized objects:
    Line Number
    1          private void PureTest()
    2          {
    3               OracleConnection conn = null;
    4               OracleTransaction tx = null;
    5               OracleCommand command = null;
    6
    7               try
    8               {
    9                    // Open connection
    10                    string strConn = "Data Source=AthenaWf; User ID=AthenaWf; Password=Poseidon";
    11                    conn = new OracleConnection( strConn );
    12                    conn.Open();
    13
    14                    // Begin transaction (not sure if really needed)
    15                    tx = conn.BeginTransaction();
    16
    17                    // Create command
    18                    string strSql = "SP_TEST_BIN_META_DATA";
    19                    command = new OracleCommand();
    20                    command.Connection = conn;
    21                    command.CommandText = strSql;
    22                    command.CommandType = CommandType.StoredProcedure;
    23
    24                    // Create parameters
    25                    // 1) XmlType parameter
    26                    string strXml = "<?xml version=\"1.0\"?><configuration testValue=\"123456789\"/>";
    27                    XmlDocument xmlDoc = new XmlDocument();
    28                    xmlDoc.LoadXml( strXml );
    29                    OracleXmlType oraXml = new OracleXmlType( conn, xmlDoc );
    30                    //oraXml = null;
    31                    //
    32                    OracleParameter xmlPrm = new OracleParameter();
    33                    xmlPrm.ParameterName = "i_MetaData";
    34                    xmlPrm.Direction = ParameterDirection.Input;
    35                    xmlPrm.OracleDbType = OracleDbType.XmlType;
    36                    xmlPrm.Value = oraXml;
    37                    command.Parameters.Add( xmlPrm );
    38
    39                    // 2) Blob type
    40                    byte[] buf = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
    41                    OracleBlob oraBlob = new OracleBlob( conn, true );
    42                    //oraBlob.Write( buf, 0, buf.Length );
    43                    oraBlob = null;
    44                    //
    45                    OracleParameter blobPrm = new OracleParameter();
    46                    blobPrm.ParameterName = "i_BinData";
    47                    blobPrm.Direction = ParameterDirection.Input;
    48                    blobPrm.OracleDbType = OracleDbType.Blob;
    49                    blobPrm.Value = oraBlob;
    50                    command.Parameters.Add( blobPrm );
    51
    52
    53                    // Execute command finally
    54                    command.ExecuteNonQuery();
    55                    tx.Commit();
    56               }
    57               catch( Exception ex )
    58               {
    59                    // Clean-up
    60                    if( command != null )
    61                    {
    62                         command.Dispose();
    63                    }
    64                    if( tx != null )
    65                    {
    66                         tx.Dispose();
    67                    }
    68                    if( conn != null )
    69                    {
    70                         conn.Dispose();
    71                    }
    72
    73                    // Display error message
    74                    MessageBox.Show( ex.Message, "Error" );
    75               }
    76          }
    If I try insert only XMLDOCUMENT object (lines 30, 42 are commented out, 43 IS NOT) - everything is OK.
    If I try to insert only BLOB object (lines 30, 42 are NOT COMMENTED OUT, line 43 is commented out) - everything is OK again.
    If I try to insert them both having some values (lines 30, 43 are commented out, 42 is not commented out) - it fails right on "command.ExecuteNonQuery();" (line 54)
    with the following exception:
    "ORA-21500: internal error code, arguments: [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%]".
    Even when I nullify oraBlob before assigning it to OracleParameter value (line 30 is commented out, line 42 and 43 are not) I have the same exception.
    XMLDOCUMENT and DLOB data logically are very coupled objects (in my application), so I really want to insert them simultaneously in one stored procedure in transactional way.
    Is it bug of drivers, server, .net environment, or I miss something in implementation?
    PS. In some articles on Oracle web and in MSDN site I found a mention about necessity of wrapping all write/update operations in a transaction, while working with temporary LOBs. I use it here, but it does not look like changing anything.

    Hello,
    I tested your code with the 10.1.0.4.0 ODP and 10.1.0.4.0 Client and it worked fine.
    Can you please apply the 10.1.0.4.0 patches for both ODP and client to see if this resolves the issue for you.
    Here is the output from the same execution of the ODP application you provided as a testcase. These rows were inserted at the same time when I executed the application and passed the data as parameters to the SP you provided.
    Results of Testing with 10.1.0.4.0
    ==========================
    SQL> select count(*) from BINDATA_TBL
    2 ;
    COUNT(*)
    1
    SQL> select count(*) from METADATA_TBL;
    COUNT(*)
    1
    SQL> select dbms_lob.getlength(bdata) from BINDATA_TBL;
    DBMS_LOB.GETLENGTH(BDATA)
    10
    SQL> select mdata from METADATA_TBL;
    MDATA
    <?xml version="1.0"?><configuration testValue="123456789" />

Maybe you are looking for

  • Restoring a time machine backup from a Mac mini to a new Mac mini server

    Hi, I just replaced a faulty Mac mini with a Mac mini server. I have a time machine backup of my Mac mini and want to transfer it over to the Mac mini. How do I do this?

  • I need help urgent please :(

    Hi i'm too much worried about my laptop because before 1 hours its working perfectly and while i working on my laptop suddenly laptop is off and now when i presss power on button its on for 4 seconds with a fast fan voice and no display on screen and

  • Unexpectedly quit

    Hello, I am running 10.2.8 on my b/w g3 and lots of apps are quitting. how do i stop it? it there a firmware i'm supposed to install? i tried to do some system updates but it unexpectedly quit too. HELP! themacguy

  • Page allocation failed

    Hello Gurus, I have a program which is fetching a huge data for getting BOM information. And to use these records it tryies to append this huge data to an internal table. The dump is at this very point of appending. I can't avoide this append sstatem

  • How should I go about setting an ssd   hdd to my macbook pro

    I currently have a macbook air. I am going to get a macbook pro 15 inch and take out the optical drive and put the hdd there and then a samsung 840 pro ssd in the spot for the orginal hdd. What i want to do is first copy my disk from my air to the ss