Query running in one env and failing in other due to ORA-01779

Hello All,
I am running a query in one environment and it runs fine and when I try to run into other environment then it gives me a
ORA-01779: cannot modify a column which maps to a non key-preserved table
I am not sure where I am doing wrong. What can be the possible reasons for that?
Thanks
Lee

Did you look up the error in the Error Messages documentation ?
01779, 00000, "cannot modify a column which maps to a non key-preserved table"
// *Cause: An attempt was made to insert or update columns of a join view which
//         map to a non-key-preserved table.
// *Action: Modify the underlying base tables directly.Apparently, your "query" is a DML statement that is attempting to update a view that is a join of two tables.
Hemant K Chitale

Similar Messages

  • Services running in one server is failing in other server

    We have two BPEL installations. Once is for development and the other is for staging.
    10.1.3.3.1 is their installed version. Services developed for dev installation is not working in staging. DBAdaptors are failing in the staging server. An extra namespace is getting added to the dbadaptor response in the staging server which was not coming for the dev server..
    Here is the dbadaptors response from dev server.
    <transactionResponse>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="OutputParameters">
    <OutputParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/SP_BUSINESS_LAYER_DB/SP_TRANSACTION_LOGGER/">
    <OUT_ID>4548</OUT_ID>
    </OutputParameters>
    </part>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="response-headers">[]
    </part>
    </transactionResponse
    Here is the dbadaptor's response from staging server.
    <transactionResponse>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="OutputParameters">
    <db:OutputParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/SP_BUSINESS_LAYER_DB/SP_TRANSACTION_LOGGER/">
    <OUT_ID>4552</OUT_ID>
    </db:OutputParameters>
    </part>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="response-headers">
    </part>
    </transactionResponse
    Can some one help me to fix this.
    Thx
    Krishna Chowdary

    Did you look up the error in the Error Messages documentation ?
    01779, 00000, "cannot modify a column which maps to a non key-preserved table"
    // *Cause: An attempt was made to insert or update columns of a join view which
    //         map to a non-key-preserved table.
    // *Action: Modify the underlying base tables directly.Apparently, your "query" is a DML statement that is attempting to update a view that is a join of two tables.
    Hemant K Chitale

  • Query running fine in one environment but failing in other environment

    Hi,
    I have a query which i am trying to execute in two different environments.
    Test :- Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    Prod:- Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    Now query executes finely in one environment and fails in other environment.
    It gives following error.
    ORA-01861: literal does not match format string
    01861. 00000 - "literal does not match format string"
    The query is too long and contains CHAR-DATE and DATE-CHAR conversions.
    The same query works fine on TEST environment and and fails on PROD environment.
    Any help related to it would be appreciated.
    Thanks,
    Mahesh

    MaheshGx wrote:
    Hi,
    I have a query which i am trying to execute in two different environments.
    Test :- Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    Prod:- Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    Now query executes finely in one environment and fails in other environment.
    It gives following error.
    ORA-01861: literal does not match format string
    01861. 00000 - "literal does not match format string"
    The query is too long and contains CHAR-DATE and DATE-CHAR conversions.
    The same query works fine on TEST environment and and fails on PROD environment.
    Any help related to it would be appreciated.
    Thanks,
    MaheshThat's called a bug. One caused by the person who developed the code. They relied on implicit conversion between strings and dates when
    production quality code will always use to_char and to_date functions with a format mask.

  • When printing from aperture my margins are unequal, even if i set my margins they come out bigger one side  and not the other. i am using a macbook pro running osx lion and printing with a canon pro 9000

    when printing from aperture my margins are unequal, even if i set my margins they come out bigger one side  and not the other. i am using a macbook pro running osx lion and printing with a canon pro 9000.
    please can anbody help or advise?

    You didn't mention any color calibration being done on your monitor.  This is an essential part of any color-correct workflow.  What are you using to calibrate your monitor (and your printer)?
    Print profiles (for soft-proofing as well as printing) are for specific combinations of paper & printer.  The nine you have are each, most likely, for a common paper (perhaps mfr'd by Canon) to be used with your printer.
    I don't know what you mean when you say "I choose a high standard print option".
    Have you read the User Manual chapter on printing?
    Printing Your Images
    There is also a good appendix on calibration:
    Calibrating Your Aperture System

  • When I import a commercial CD itunes will create 2 identical albums and put all of the songs except one into one album and put the other song into the other album by it self. How can I combine them all into one album and why is itunes doing this?

    When I import a commerical CD Itunes will create 2 identical albums and put all of the songs except one into one album and put the other song into the second album that it created.  Why is itunes doing this and what can I do to combine them into one album?

    I found this to be somewhat helpful: Grouping Tracks into Albums
    What I did was to put in the same name for Album Artist in every track.  That seemed to do the trick (previously all those fields were empty).  It seems like a lot of work for a simple thing.
    iTunes knows (or should know) that these tracks were imported from one CD. So why is it relying on incomplete data from the gracenote database?

  • What is meant by "an ee sits in one company and taxed to other?

    hi experts,
    Please explain this "An ee sits in one company and taxed to other"  with some example. As always, JEss is very thankful to you guys...
    JEss..

    Sounds to me like a Payroll topic. Where have you read this?

  • HT4623 Started to download IOS 6.1 and failed to complete due to no wall charger. Now download fails w "failed verification be

    Started to download IOS 6.1 and failed to complete due to no wall charger. Now download fails with "failed verification because no longer connected to internet. Wi-fi shows my linksys. What's up?

    1968GTX wrote:
    I think maybe the download is in the phone because it switched from download to a preparing message. It almost completed, blu bar nearly full and then the fail message. Today, on a different wi-fi, I get the Unable to Verify Update message. Is there a way to clear and start over?
    Seems to be a content expiration issue, probably to keep the load down on the servers hosting the updates.  I've found that resetting your network settings does the trick, even if it is a little overkill. 
    settings - general - reset - reset network settings
    originally posted here:  https://discussions.apple.com/message/21300337#21300337

  • SUBMIT works in one server and fails in another!!

    Dear All,
    I have the following SUBMIT statement that works in one server perfectly and fails in another with SY-SUBRC 8 [ Error in job scheduling (JOB_SUBMIT) ].  
    SUBMIT riaufk20 EXPORTING LIST TO MEMORY AND RETURN WITH SELECTION-TABLE seltab.
    Below is the entire program. Any idea why this is happening ?
    Thanks in advance,
    Rajesh
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(P_AUART) LIKE  DIAUFK-AUART
    *"  TABLES
    *"      T_OUTPUT STRUCTURE  ZLINE
      DATA: i_list LIKE abaplist OCCURS 0 WITH HEADER LINE.
      DATA: BEGIN OF i_list_conv OCCURS 1,
              line(256),
            END OF i_list_conv.
      DATA: BEGIN OF i_order OCCURS 0,
              aufnr LIKE aufk-aufnr,
            END OF i_order.
      DATA: seltab     TYPE TABLE OF rsparams,
            seltab_wa  LIKE LINE OF seltab.
      RANGES: r_aufnr FOR aufk-aufnr.
      DATA: v_lines TYPE i.
      MOVE: 'AUART'  TO seltab_wa-selname,
            'S'      TO seltab_wa-kind,      " SELECT-OPTION
            'I'      TO seltab_wa-sign,
            'EQ'     TO seltab_wa-option,
            p_auart  TO seltab_wa-low,
            ' '      TO seltab_wa-high.
      APPEND seltab_wa TO seltab.
      SUBMIT riaufk20 EXPORTING LIST TO MEMORY AND RETURN WITH SELECTION-TABLE seltab.
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject = i_list
        EXCEPTIONS
          not_found  = 1
          OTHERS     = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CALL FUNCTION 'LIST_TO_ASCI'
    EXPORTING
      LIST_INDEX               = -1
      WITH_LINE_BREAK          = ' '
    IMPORTING
      LIST_STRING_ASCII        =
       TABLES
         listasci                 = i_list_conv
         listobject               = i_list
       EXCEPTIONS
         empty_list               = 1
         list_index_invalid       = 2
         OTHERS                   = 3
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      DATA: v_text1(20).
      LOOP AT i_list_conv.
        IF sy-tabix GT 3.
          SPLIT i_list_conv-line AT '|' INTO v_text1 i_list_conv-line.
          SPLIT i_list_conv-line AT '|' INTO v_text1 i_list_conv-line.
          SPLIT i_list_conv-line AT '|' INTO i_order-aufnr i_list_conv-line.
          APPEND i_order.
          CLEAR  i_order.
        ENDIF.
      ENDLOOP.
      DESCRIBE TABLE i_order LINES v_lines.
      DELETE i_order INDEX v_lines.
      REFRESH seltab.
      CLEAR   seltab_wa.
      REFRESH i_list.
      REFRESH i_list_conv.
      SORT i_order.
      LOOP AT i_order.
      MOVE: 'AUFNR'  TO seltab_wa-selname,
            'S'      TO seltab_wa-kind,      " SELECT-OPTION
            'I'      TO seltab_wa-sign,
            'EQ'     TO seltab_wa-option,
            i_order-aufnr  TO seltab_wa-low,
            ' '     TO seltab_wa-high.
      APPEND seltab_wa TO seltab.
      ENDLOOP.
      SUBMIT riafvc20 WITH SELECTION-TABLE seltab EXPORTING LIST TO MEMORY AND RETURN VIA SELECTION-SCREEN.
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject = i_list
        EXCEPTIONS
          not_found  = 1
          OTHERS     = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CALL FUNCTION 'LIST_TO_ASCI'
    EXPORTING
      LIST_INDEX               = -1
      WITH_LINE_BREAK          = ' '
    IMPORTING
      LIST_STRING_ASCII        =
       TABLES
         listasci                 = i_list_conv
         listobject               = i_list
       EXCEPTIONS
         empty_list               = 1
         list_index_invalid       = 2
         OTHERS                   = 3
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      t_output[] = i_list_conv[].
    ENDFUNCTION.

    Rajesh,
    Whatever parameters  you are using in submit statement  check those things are available in other server or not.
    Regards,

  • ANT Deployment issue. works fine in one environment but fails in other

    Hi,
    Ant script is working fine in Dev environment but is failing in the other environment. Somehow the BPEL server is not able to pick the latest deployed process , due to this the dependent BPEL processes are failing. If we restart the server , it moves forward and then fails at the point where it couldn’t find reference to the processes deployed after restart. Restarting the server at every failed interval will deploy all the BPEL processes which is not the solution.
    example : we have BPEL Processes say A, B, C, D and E. A,B are independent processes C is dependent on A, D is independent and E is dependent on D. So I have Ant script to deploy in A,B,C,D,E order. Now I run the Ant Script: It deploys A,B processes and Fails at C saying it couldn't find the process A.wsdl(But A is deployed). So if i restart now it recognizes A and B are deployed so C is also deployed succesfully it also deploys D as it is Independent but fails at E. If i restart the server E is also deployed.
    The Environment is clustered.
    Any suggestion to make my Ant script to run at a go will be highly appreciated
    Thanks
    Krishna

    Hi KrishnaBhaskarla,
    I have something related to ant script, Can you please provide me the steps for deploying applications using ant script.
    Regards
    Kumar

  • Portal Users in one database and Groups is other? portal 9.2

    Hi All!
    My question is as follows: Is it possible to have portal users stored in one database and groups stored in other database? Also the these are the groups to which the users belongs and groups already exist as part of the current legacy system. I have to create new application and only store users in the new DB and use the groups from the existing legacy system. Does BEA supports that? Also note that these groups are nothing but custom entities and not in BEA's GROUP table. So is there a way I can write some kind of provider which will extend BEA's user-group framework? I am using BEA portal 9.2.
    Please help!
    Thanks
    Sanjay

    You can fetch data from multiple lists in ListViewWebpart, this can be possible through Content Query web part or Custom Web Part using visual studio but in that case you can not get the standard SharePoint funcationality for list (which is available in
    ListViewWebparts).
    No OOB filter available for multi-choice column, you also have to go with custom solution to achieve this.
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer.

  • Firefow will not open at all on one computer and on the other it opens but will not load. I just added a new wireless router, could this have anything to do with it, it had been working fine up until I installed it Tuesday night. Internet explorer won't

    I installed a new wireless router on Tues. (May4) up until that time I had no problems using Firefox. Now I cannot get it to open on one computer, and the other it will open but will not load. Wondering if it has anything to do with the router, my provider or our computers. Again, it had been working fine. I am also unable to open interent explorer now on either computer.
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; AOL 9.0; Windows NT 5.1; GTB6.4; AskTB5.6)

    Sounds like a problem with the router installation/configuration (likely) or a DOA router (very unlikely).
    Visit the forums for the router manufacturer (i.e., linksys, d-link, etc.) and ask for assistance there. There is probably a link to help listed in the router manual.

  • I have one Iphone and two computers. How do i get my ringtones off of one computer and onto the other?, I have one Iphone and two computers. How do i get my ringtones off of one computer and onto the other?

    I have one Iphone, and two computers. They both have different purchases on them. One is older than the other. and one was my moms. How do i get the ringtones off of my computer and onto my moms computer to use all of them on my Iphone?

    Copy them to a cd/dvd/flash drive/external drive/etc,  then to the other computer.
    E-mail them.

  • Single Column with link in one row and text in other row

    Hi Colleagues,
    We have a requirement where there will be a table with two columns
    Here the coding for the second column i am using is pasted below
    IWDTableColumn column1 = (IWDTableColumn) view.createElement(IWDTableColumn.class, null);
           table.addColumn(column1);     
           IWDCaption Col2header = (IWDCaption) view.createElement(IWDCaption.class, null);     
           String DownloadLink = TextAccessor.getText("DownloadLink");
           Col2header.setText(DownloadLink);
           column1.setHeader(Col2header);
           column1.setWidth("60%");
           IWDLinkToURL editor1 = (IWDLinkToURL) view.createElement(IWDLinkToURL.class, null);
           IWDAttributeInfo attribInfo = nodeInfo.getAttribute("link");
           //IWDTextView editor1 = (IWDTextView) view.createElement(IWDTextView.class, null);
           editor1.bindText(attribInfo);
           wdComponentAPI.getMessageManager().reportSuccess("link from editor"+editor1.getText());
           //editor1.bindReference("prerequisites.link");
          // editor1.setReference("prerequisites.link");
           //editor1.bindTarget("prerequisites.link"); 
           editor1.bindReference(attribInfo);
           editor1.setEnabled(true);
    column1.setTableCellEditor(textedit);
    Here from the above code what i am able to get is display the links in the Second column........
    But we need to display Text also in the same column for some entries
    Could any one please let me know how can this be achieved
    Thanks & Regards
    Swetha

    Hi Swetha,
    There is a nice way of achieving this requirement. There is something called Cell variant. You can use the Cell variants for the column and can solve this.
    If you are still in SAP then I can send you one document through mail. OR just ping me your ID.
    OR you can check this link as well:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80d81237-b780-2a10-d398-cc33af6bd75c
    I hope this helps. Please revert back in case you need any further information on this.
    Thanks and Regards,
    Pravesh

  • I have 6.0.2 on both home and work machines - why is the new tab button to the right of tabs on one machine and on the other the button is next to the "home" button?

    I just upgraded both machines, and don't understand why one is different than the other.

    It worked! I had to restore defaults, and then add my customizations again, but that did the trick!
    Thank you so much! It has been aggravating me for some time now... I will use this "Ask a question" feature much sooner next time! :)

  • IPhone plays only one playlist and won't others

    Hi guys,
    can anyone help me; I have my iPhone for so long time, always updated with latest version of software, but recently after latest update 3.1.3. iPod plays only one playlist and won't play any other. Also can't enter any other artist file or videos. When I try to, Ipod closes! The rest of phone works fine.
    Could it be problem with latest update? How can I reset latest update?
    Thanks!

    The latest update works fine for most people, but your's might not have been applied correctly for some reason.
    Try the standard troubleshooting steps in order:
    Restart your phone: Press and hold the Sleep/Wake button for a few seconds until a red slider appears, and then drag the slider. Then press and hold the Sleep/Wake button until the Apple logo appears.
    Reset your phone: Press and hold both the Sleep/Wake button and the Home button for at least ten seconds, until the Apple logo appears.
    Restore your phone: Restore: http://support.apple.com/kb/HT1414
    Make an appointment to have an Apple Retail Store Genius look at your phone. http://www.apple.com/retail/geniusbar/
    If you're in the US, call U.S. iPhone technical support: 1-800-MY-IPHONE (1-800-694-7466)
    If somewhere else, find the contact number here: http://www.apple.com/support/contact/phone_contacts.html

Maybe you are looking for

  • Restor iCal and Address Book from TM

    I have been having terrible problems with my computer hangin, crashing, spinning wheel, etc, therefore I have clean installed and reverted to full TM backup on several occasions but the problems have persisted. Therefore, I have now clean installed w

  • Can't send files to Trash from the command line

    Hello, as I'm programming in JAVA I must do all "special" operations as from the command line. I found several solutions but they don't work for me, at least not in Mavericks. I tried: osascript -e "tell app \"Finder\" to delete POSIX file \"/Users/m

  • ILife 06... alright except for a few things

    I just got my copy of iLife 06 and I am pretty pleased so far. There were a few problems during installation though. First, my dock went back to the original one. Not a big deal, but it made me think something bigger was going on. Next, Safari went b

  • T500 loses screen when ejected from docking station

    At my desk, I use a docking station with external monitor (DVI attach). If I eject from the docking station, my laptop screen goes dark. The only way I can make it work is to power down, eject, and reboot. It works fine then. I have the ATI graphics

  • Use of special version

    Hello guys! I am currently working on the following business scenario: My client wants to use SEM BCS to prepare consolidation following 2 different accounting principles (let’s say P1 and P2). These 2 principles have common treatments: conversions,