Why JD is trying to insert fields not selected?

Hi,
My table has a default value for a column which is not null.
(sysdate for the record creation date).
When I insert a record through SQLPlus without selecting this
column, this columns gets populated with the sysdate. The same
works with Forms 4.5 also.
But when I do the same thing with JDeveloper, the database is
throwing back an error ORA-01400 Null cannot be inserted in to
the database.
The Query statement in the error (BEGIN INSERT...) shows all the
fields in the table, though I haven't chosen the created date
field. (nor a couple of other fields). Why JD is trying to
insert values to the fields that are not there in the query and
not selectd.
Now what do I do with this??
Can u tell me whether this JDeveloper tool is meant for
developing serious applications.
Gopal.
null

Hi,
Bug for sure!. Because this tool is full of them! What I would
like to know is the possibility of getting a patch. Is there any
plan?
One more thing. I think I have understood what is happening in
this situation. Irrespective of what columns I select in the
query, the entire metadata about the table comes and sits in the
xml file. In my specific case, I tried to delete the attribute
for created date from the xml file. Still it was trying to insert
the value. Later, I found the notnull constraint in the xml file
for this column. When I deleted that attribute also, it worked
properly. I suspect that the insert statement is created by
parsing the xml file. In that case the bug is not in IB data
access layer. It is in creating the xml file itself.
Hope u can throw more light in to this.
--Gopal
Oracle JDeveloper Team wrote:
: This is a bug in the InfoBus data access layer. The suggested
: workaround is to substitute the default value into the insert.
: - PSW
: Gopal (guest) wrote:
: : Hi
: : I used the queryInfo editor of the rowsetinfo. Once I browsed
: the
: : table, selected the required columns and pasted it to query.
: : Second time,
: : I just keyed in the columns and table in the appropriate
places
: : in
: : the queryinfo editor. Results were same in both the cases.
The
: : query info
: : in the code or in the editor shows only columns that I have
: : selectd.
: : Gopal
: : JDev Team (guest) wrote:
: : : How did you set up the query statement in JDev?
: : : - PSW
: : : Gopal (guest) wrote:
: : : : Hi,
: : : : My table has a default value for a column which is not
: null.
: : : : (sysdate for the record creation date).
: : : : When I insert a record through SQLPlus without selecting
: : this
: : : : column, this columns gets populated with the sysdate. The
: : same
: : : : works with Forms 4.5 also.
: : : : But when I do the same thing with JDeveloper, the
database
: is
: : : : throwing back an error ORA-01400 Null cannot be inserted
in
: : to
: : : : the database.
: : : : The Query statement in the error (BEGIN INSERT...) shows
: all
: : : the
: : : : fields in the table, though I haven't chosen the created
: : date
: : : : field. (nor a couple of other fields). Why JD is trying
to
: : : : insert values to the fields that are not there in the
query
: : and
: : : : not selectd.
: : : : Now what do I do with this??
: : : : Can u tell me whether this JDeveloper tool is meant for
: : : : developing serious applications.
: : : : Gopal.
: Oracle Technology Network
: http://technet.oracle.com
null

Similar Messages

  • Why is Forms trying to insert??

    I have a block with items from a table. If I make a change to an item, and leave the block, it updates fine. However, if from another canvas I change the items in the original block (:block.item := :thisblock.item), it wants to INSERT, even though I didn't touch the primary key. help!

    After I populate items from another canvas/block, I close the other canvas and see that the items have been updated properly, not into a new record but the correct one. Yet it still wants to insert, and that's when I get an error because the primary key is not unique. Which I KNOW since I just want to update that record, NOT insert it.

  • Why iPhone only allows sync ALL contacts, not selected groups?

    THE OBJECTIVE: To back up the names and phone numbers I've manually input into my iPhone.
    THE MONKEY WRENCH: When I plug my iPhone 3g into my Powerbook, under the Info tab is a Contacts section. The Sync Address Book contacts box is checked, and below that box are two choices: All contacts or Selected groups. Computer will not allow me to choose Selected groups, nor can I check off "Put new contacts created on this iPhone into this group", which sounds like, if working properly, would all me to back up my iPhones names and numbers. Please help!
    If you're feeling motivated, you can check out my still unsolved post about trouble I've been having with synching TV shows and let me know if there's one solution to address both issues. Thanks a gazillion.

    Step 1: Configure your iPhone for iCloud, go to Settings > iCloud and toggle the Contacts to Off. It will ask if you want to Keep your contacts that are present in your iPhone or Delete them. Delete only if you have a backup in your Mac or PC. We will be syncing your contacts again from your Mac or PC and upload it to iCloud.
    Step 2: Now, sync contacts with iPhone using your Mac or PC.
    Step 3: Next, go to Settings > iCloud and toggle the Contacts to On. This will Turn on the contacts again. You will get the following screen once you turn on the contacts under iCloud.
    Step 4: You can click on Merge. This will upload your contacts to your iCloud account in a while.
    Step 5: Go to the contacts app to verify if you have only all the contacts synced to your iCloud account.

  • Why is the child table inserting first in a composite association?

    Guys and Gals,
    Studio Edition Version 11.1.1.3.0.
    This one has gotten me all day. I have a child table which is inserting before its master table, even though the relationship is defined as a composite relationship.
    Process:
    1) User adds a part with a purchase price into the Part table.
    2) Via Part-PartHistories View Link, part is inserted into PartHistories.
    3) Via BPL-BPLRows View Link, part is inserted into BPLRows along with its purchase price. The part number is part of a composite primary key (BPL,PartNumber) and is a foreign key to the Part table.
    4) Via BPL-PL View Link, and then Via PL-PLRows View Link, part is inserted into PLRows along with its purchase price. The part number is part of a composite primary key (PL,PartNumber) and is a foreign key to the Part table.
    It is #4 which gives me an integrity constraint (PCS.PRICE_BUCKETS_PARTS_FK1) violated - parent key not found error. JDev is trying to insert in the order 4,1,2,3 when it should be 1,2,3,4. The kicker is that there is a composite association between #1 and #4 which should guarantee that 1 is inserted first. If I remove #4's process, steps 1-3 run fine. If I remove the composite association, JDev inserts correctly steps 1,2,3,4.
    Why is JDev trying to insert #4 first? I do a CreateInsert on the Parts table first so the creation order is correct. Furthermore, there is a composite association defined between Parts - PLRows.
    Something is indeed fishy in Denmark.

    LovettWB,
    You talk about VOs, but composite relationships need to be defined at the EO level. If you have indeed defined the proper composite associations, this sounds like a perfect test case to submit to Oracle Support to evaluate.
    If you do have the proper associations set up and things don't work, you could try [url http://download.oracle.com/docs/cd/E17904_01/web.1111/b31974/bcadveo.htm#CEGECADE]this technique as a workaround.
    John

  • Cannot insert field or paste in existing Local Variable (container of booleans)

    Cannot insert field or paste in existing Local Variable (container of booleans)...  TestStand 4.1.
    This is very strange, especially since I have done it before. 
    The "paste" and "insert field" selections are greyed out and disabled from the right-click menu.  I have tried everything I could imagine, and searched various combinations of posts.  I am sure it is something redicoulously simple, bu I cannot find the redicule to solve this annoying issue.
    The local variable is a container of booleans.  It has 90 elements and I need to add one more.  I cannot edit / rename or do anything with this Local.  Must be karma (for thos who know me in the LabVIEW forum).  Usually, you right click, insert field and it's there..  Not this one..
    Has anyone seen this before?  Closing and re-opening TestStand did not change anything.  There is a matching cluster in LabVIEW which feeds the local in TestStand.
    It is a container of custm data type.  The Edit Flags are ok (edit is allowed).  Can't think of any other valuable info..
    Solved!
    Go to Solution.

    I should correct an erratum in my original post.. 
    Since I am not the original author of the code, I am not sure it is a custom container.  As a matter of fact, I don't think it is.
    It does not appear in the custom data types.  So it must be a Local.
    I will attempt to clarify what I am dealing with...  (TestStand 4.1)
    Maybe pictures are worth thousands of words.
    As with typical TestStand projects, there are various variables:  Locals, Parameters, FileGlobals, etc..  Nothing odd here.
    The one I am concerned about is the Options_Present which is a container of booleans.
    I am sure I have edited this one before.  Although I seem to recall that it was automatic after changing the cluster in LabVIEW.
    Within the Locals, the  2 that are underligned in red do not allow to edit anything (change name, add, delete, paste).
    Trying to Insert Field or paste are not possible.
    Attachments:
    Variables.PNG ‏8 KB
    Locals.PNG ‏28 KB
    cannotInsert.PNG ‏9 KB

  • Custom Fields not shown in BSEG using OXK3 transaction

    Hi,
    I have added new custom fields in Expert Mode using OXK3 transaction to add new fields in BSEG table.
    The Include CI_COBL is created with custom fields in OXK3  .
    I then tried to add fields by selecting "Add Field to BSEG" but an access key is required which I do not have.
    Now is there any other way or what is the next step to reflect the custom fields in BSEG table after creating the CI_COBL in OXK3 transaction.
    I do not have access to SAP Marketplace from where I can refer to SAP Notes.
    Thanks
    Amit

    Hello Amit,
    Are you sure this is a question related to SAP ByDesign and not SAP ECC?
    You will certainly have more luck finding answers in the right forum thread.
    Best regards.
    Jacques-Antoine Ollier

  • Chart Expert - Why are some formula fields not available?

    I have a report where I had to do Running Totals with formulas.  Following what I learned long ago from the documentation, I laid in my formulas, and then setup some "Display" formulas to print out the results at the end of my report.
    Now I am adding a chart to show a sort of 'summarized' version of the report - its a simple Pie chart...
    But when I go into the Chart Expert and want to select those Display formula fields (there are 4 of them) - they do not appear in the list?
    FYI - These four Display formulas are in the Report Footer of the report, and my chart is in the Report Header. 
    Why do some of my formula fields appear in the Chart Expert "select field" list - while others do not?
    I checked the documentation on this, but it is very "lite" and does not indicate why this might be...
    Any help is most appreciated!

    Read again -  "Problem has been circumvented" NOT "worked around".  In other words, when you pay a fortune for a poorly documented piece of software and you are dependent on answers from a Forum, where at times no one answers your question(s) and your boss is shouting at you as to how you selected such a lousy piece of software with such "lite" documentation and is hardly going to pay any more money for a support call to answer a simple question that should have been covered (and then some) in the documentation, (let alone support of the problem) - you CIRCUMVENT, i.e. give up and find some other way to do what you were trying to do.
    Hence, problem circumvented, NOT worked around.
    Thanks for asking - here's 10 points for your efforts.

  • Oracle error ORA-01461when trying to insert into an ORACLE BLOB field

    I am getting Oracle error ‘ORA-01461: can bind a LONG value only  for insert into a LONG column' when trying to insert into an ORACLE BLOB field. The error occurs when trying to insert a large BLOB (JPG), but does not occur when inserting a small (<1K) picture BLOB.(JPG). Any ideas?
    BTW, when using a SQL Server datasource using the same code.... everything works with no problems.
    ORACLE version is 11.2.0.1
    The ORACLE datasource is JDBC using Oracle's JDBC driver ojdbc6.jar v11.2.0.1 (I also have tried ojdbc5.jar v11.2.0.1; ojdbc5.jar v11.2.0.4; and ojdbc6.jar v11.2.0.4 with the same error result.)
    Here is my code:
    <cfset file_mime = Lcase(Right(postedXMLRoot.objname.XmlText, 3))>
    <cfif file_mime EQ 'jpg'><cfset file_mime = 'jpeg'></cfif>
    <cfset file_mime = 'data:image/' & file_mime & ';base64,'>
    <cfset image64 = ImageReadBase64("#file_mime##postedXMLRoot.objbase64.XmlText#")>
    <cfset ramfile = "ram://" & postedXMLRoot.objname.XmlText>
    <cfimage action="write" source="#image64#" destination="#ramfile#" overwrite="true">
    <cffile action="readbinary" file="#ramfile#" variable="image_bin">
    <cffile action="delete" file="#ramfile#">
    <cfquery name="InsertImage" datasource="#datasource#">
    INSERT INTO test_images
    image_blob
    SELECT
    <cfqueryparam value="#image_bin#" cfsqltype="CF_SQL_BLOB">
    FROM          dual
    </cfquery>

    Can't you use "alter index <shema.spatial_index_name> rebuild ONLINE" ? Thanks. I could switch to "rebuild ONLINE" and see if that helps. Are there any potential adverse effects going forward, e.g. significantly longer rebuild than not using the ONLINE keyword, etc? Also wondering if spatial index operations (index type = DOMAIN) obey all the typical things you'd expect with "regular" indexes, e.g. B-TREE, etc.

  • "The selected cells are read-only" error on Custom Field when trying to insert in Datasheet mode

    I have a custom field that works completely fine. Yesterday our QA team found out that when trying to insert in Datasheet format, the error "The selected cells are read-only" was thrown. Any ideas? I tried passing the following property to my fldtypes_field.xml file:
        <Field Name="ReadOnly">FALSE</Field>
    No luck.Victor Palma

    Unfortunately it did not work. I also developed the code and access the field and checked its property called "ReadOnlyField"  which is already set to false.
    Below is the xml that i am using. Can you please share the xml that you had used?
    <?xml version="1.0" encoding="utf-8"?>
    <FieldTypes>
      <FieldType>
        <Field Name="TypeName">MyCustomField</Field>
        <Field Name="ParentType">Text</Field>
        <Field Name="TypeDisplayName"> My Custom Field</Field>
        <Field Name="TypeShortDescription"> My Custom Field</Field>
        <Field Name="AllowBaseTypeRendering">True</Field>
        <Field Name="ReadOnlyField">False</Field>
        <Field Name="UserCreatable">TRUE</Field>
        <Field Name="ShowInListCreate">TRUE</Field>
        <Field Name="ShowInSurveyCreate">TRUE</Field>
        <Field Name="ShowInDocumentLibraryCreate">TRUE</Field>
        <Field Name="ShowInColumnTemplateCreate">TRUE</Field>
        <Field Name="FieldTypeClass">My Assembly Information goes here</Field>
      </FieldType>
    </FieldTypes>

  • Why does this come up when trying to insert a fluid div tag

    Can someone tell me please   why i get this when trying to insert a fluid div tag on my  page  thanks in advance mark  @charset "utf-8"; /* Simple fluid media Note: Fluid media requires that you remove the media's height and width attributes from the HTML http://www.alistapart.com/articles/fluid-images/ */ img, object, embed, video { max-width: 100%; } /* IE 6 does not support max-width so default to width 100% */ .ie6 img { width:100%; } /* Dreamweaver Fluid Grid Properties ---------------------------------- dw-num-cols-mobile:    5; dw-num-cols-tablet:    12; dw-num-cols-desktop:    20; dw-gutter-percentage:    15; Inspiration from "Responsive Web Design" by Ethan Marcotte http://www.alistapart.com/articles/responsive-web-design and Golden Grid System by Joni Korpi http://goldengridsystem.com/ */ /* Mobile Layout: 480px and below. */ .gridContainer { margin-left: auto; margin-right: auto; width: 97.3913%; padding-left: 1.3043%; padding-right: 1.3043%; } #LayoutDiv1 { clear: both; float: left; margin-left: 0; width: 100%; display: block; } #LayoutDiv2 { clear: both; float: left; margin-left: 0; width: 100%; display: block; } /* Tablet Layout: 481px to 768px. Inherits styles from: Mobile Layout. */ @media only screen and (min-width: 481px) { .gridContainer { width: 98.913%; padding-left: 0.5434%; padding-right: 0.5434%; } #LayoutDiv1 { clear: both; float: left; margin-left: 0; width: 100%; display: block; } #LayoutDiv2 { clear: both; float: left; margin-left: 0; width: 100%; display: block; } } /* Desktop Layout: 769px to a max of 1232px. Inherits styles from: Mobile Layout and Tablet Layout. */ @media only screen and (min-width: 769px) { .gridContainer { width: 99.3478%; max-width: 1232px; padding-left: 0.326%; padding-right: 0.326%; margin: auto; } #LayoutDiv1 { clear: both; float: left; margin-left: 0; width: 100%; display: block; } #LayoutDiv2 { clear: both; float: left; margin-left: 0; width: 100%; display: block; } }

    Firefox the web browser (from mozilla.org) nor Mozilla will NOT send any form or viruses, malware or toolbars into Firefox as it would hurt Mozilla far too much for any little gain.
    You seem to have the current Release Firefox 30.0 so there should be no more updates until Firefox 31.0 unless a chemspill update (30.0.1) was warranted in meantime for security and or stability fixes.
    So you are considering filing a lawasuit for Firefox prompting you for a Firefox update?.
    There are other reasons for connections like say looking updates for any Extensions and Themes you have installed, updates to a blocklist for Extensions and other safe things like mentioned at http://kb.mozillazine.org/Connections_established_on_startup_-_Firefox

  • Field not in "Insert Group" list

    I need to group a report's results based on a field, but that field is not listed among the fields in the "Insert Group" dialog.  What are some reasons a field would not show up there, despite being in the Database Fields list in Field Explorer?

    If the field is a memo field or if you are trying to insert a formula as a group then the formula should not contain any summaries and evaluation function like whieprintingrecords; Also you cannot insert a group on formula that doen't contain any database field.
    regards,
    Raghavendra.G

  • Formula calculated database field tries to insert null

    Good Morning,
    I have 3 database text items Amount , rate and result.
    I input the two values (Amount and rate) and using the formula property "result" gets the calculated value.
    On display all the values are shown correctly but when trying to save my information the text field "result" is trying to insert null.
    Any suggestions?
    Forms 11g
    Thank you in Advance

    794018 wrote:
    Good Morning,
    I have 3 database text items Amount , rate and result.
    I input the two values (Amount and rate) and using the formula property "result" gets the calculated value.
    On display all the values are shown correctly but when trying to save my information the text field "result" is trying to insert null.Formula item should not be database item. And also inserting result column value into database is not good idea.
    Then after if you want to save it. create result database item and write trigger (When-Validate-Item) on both amount and rate filed and at trigger code, write
    :result:=:amount*:rate;To display the result on form, create non database item and change property to formula and write the formula.
    Hope this will help you
    If someone's response is helpful or correct, please mark it accordingly.

  • Why does it say that the updated version of Firefox (which I am trying to download) is not compatible with my operating system when I have Mac OS X 10.5.8?

    Why does it say that the updated version of Firefox (which I am trying to download) is not compatible with my operating system when I have Mac OS X 10.5.8? I had an older version of Firefox and it said I needed to update it but that was the message that appeared.

    Sorry, it's because Firefox 4+ are only compiled for the Intel processors.
    There is a separate project for PPC Macs called Ten Four Fox. You might give it a spin when you're tired of 3.6.
    http://www.floodgap.com/software/tenfourfox/

  • Why does the Mail.app CC: field puts me first on the CC: list although I was not ?

    Why does the Mail.app CC: field always rearranges the list so I am first on the CC: list although the sender intentionally did not ?
    I did not see how and where to de-activate this unnecessary intrusion in the company's communication codes.
    iOS on my iphone, correctly leaves my name where it is in the CC: list.

    Hi starbux48,
    Yahoo! partnered with Apple to allow an IMAP style offering on the iPhone, free of charge for their users. However that feature is only available if you use the iPhone. If you want IMAP/POP access on computers then you'd need to upgrade to the Plus level account.

  • Why are my fields not moving with my Dynamic stamp ? Only the artwork appears

    Why are my fields not moving with my Dynamic stamp ? Only the artwork appears

    Sounds like you're a candidate for Lightroom...based on the time you don't
    want to spend in Photoshop.
    Photoshop install media is likely created in large batches, perhaps in a
    foreign country, so it's understandable that you get Photoshop 11.0.0 is on
    the media.
    I don't know as I would use ProPhotoRGB as my working space in Photoshop.  I
    was merely suggesting that you look at your color settings to make sure
    things were the same on both machines.
    How do you know your actions are the same?  Did you copy the action
    recording from one computer to the other, or did you merely record the same
    steps on each one?  Have you compared the details of each action step in the
    Actions Palette to make sure they are the same?  The symptoms still sound
    like something different than sRGB being the output color-space, or the fact
    it isn't embedded on one or the other of the computers.
    How are you viewing the JPG when it looks the same or different than the
    RAW?  Are you looking at the side-by-side in Photoshop, or side-by-side in
    Bridge, or are you using a mixture of viewers, one Adobe, and one not?  And
    are you using the Canon Codec on Vista or not?  The Canon Codec would be
    showing the camera-preview in the RAW not the RAW adjustments that Adobe has
    done.
    While the OS shouldn't be causing a difference in how the action is run, a
    difference between OSes may make a difference in the processing to show up.
    The camera profile associated with a RAW file is visible in the
    third-from-right tab in ACR over at the right.  The one with the little
    DSLR-camera icon on the tab.
    Can you attach the two JPGs on a reply, here, or if not, upload a ZIP of the
    two JPGs and the RAW to a file-sharing site like http://www.rapidshare.com/
    and post the download link(s)?

Maybe you are looking for

  • Plant as a condition to determine output messages in PO

    Hi All: I configure condition table  for PO with the fields: Doc Type, Purch Org, Vendor and Plant (all the previous fields at header level except for the plant ) this table is assigned to an access that also contain the condition table: Doc Type, Pu

  • Sales data not replicated for materials from ECC

    Hello Experts, When creating a meterial in ECC, the same gets replicated to CRM 7, but the data maintained in the sales tabs of ECC is not getting replicated to the CRM material master Sales & Distribution tab. I have already maintained the correspon

  • Digital Certificates and Web Services with Oracle APEX

    Hi people, I am working to implement Web Service communication using Oracle Apex. I need to create an application that calls an external public Web Service in Apex. So far, so good, and i am able to work with a public WS without any problems. However

  • No information in Shared Calendar but can see in Scheduling Assistant

    I have always been able to see a co-worker's calendar under my "Shared Calendars" list (full details).  However, now when I select that calendar, nothing appears.  But, if I try to schedule a meeting with him, I can see his free/busy information in S

  • Material type for both service and delivery

    Hai all,   I there is any material type for which both delivery and service can be carried for the same material. Thanks in advance, S.Jenibalet