OBI11g: Write Back INSERT is not working

Hi All,
Can anyone help me in providing the solution for Insert in writeBack For OBIEE11g.
We are able to do a successful writeback for UPDATE.
we have the INSERT command in the XML, from the report when we are trying to call the INSERT statement, but we are not able to
How to activate INSERT statement in the XML Template?
Please let us know the process of doing an INSERT using Writeback
Thanks a lot in advance......!
Regards,
DCB

I think I faced similar issue and just found solution:
There are 2 statements defined in xml file: <insert> and <update>. Insert is executed only when edited table row have initially null in all columns. So you need a dummy row in destination database table with e.g. ID=0 and all column values = null.
Dummy row is displayed in Analytics as a regular row but of course with empty column values. When you enter values into this row and apply changes, OBIEE will know to execute insert statement. In my case I generated ID for a new row from sequence: <insert>insert into Table1 (col_val1,col_val2,col3_id) values('@{cfe7691ea163b9e61}', '@{c8a3421607b213f07}', db_sequence.nextval)</insert>
This way your dummy row with ID=0 will be never updated by OBIEE and will let you insert new rows to db table.
You can refer to "19.8.3.1 How Write Back Works" in http://docs.oracle.com/cd/E14571_01/bi.1111/e10541/answersconfigset.htm#BIESG1354

Similar Messages

  • Update working, but insert is not working.

    Hi friends,
    Im creating a process for the manular tabular form, that im developing.
    Since for the update im giving the below query
    for i in 1..htmldb_application.g_f01.count
    loop
    if htmldb_application.g_f01(i) is not null then                 
        update gen_req_items
        set item_id = replace(htmldb_application.g_f03(i),'%'||'null%',NULL),
           item_uom_id= replace(htmldb_application.g_f04(i),'%'||'null%',null)
          where req_itm_id = htmldb_application.g_f01(i);
    end if;
    end loop;It is working fine, and i can able to update the rows in my tabular form.
    For insert im giving the following query.
    for i in 1..htmldb_application.g_f01.count
    loop
    if htmldb_application.g_f01(i) is not null then                 
        update gen_req_items
        set item_id = replace(htmldb_application.g_f03(i),'%'||'null%',NULL),
           item_uom_id= replace(htmldb_application.g_f04(i),'%'||'null%',null)
          where req_itm_id = htmldb_application.g_f01(i); 
    else if
    if htmldb_application.g_f01(i) is null
    insert into gen_req_items(barcode, item_id, item_uom_id)
    values(htmldb_application.g_f02(i),replace(htmldb_application.g_f03(i),'%'||'null%',NULL),replace(htmldb_application.g_f04(i),'%'||'null%',NULL));
    end if;
    end if;
    end loop;But the insert is not working, as i couldnt able to insert the values. I dont know what went wrong.
    The below is my region source coding of my tabular form.
    select x.req_itm_id,
    x.barcode,
    x.item_id,
    x.item_uom_id
    from (
    select htmldb_item.text(1,req_itm_id) req_itm_id,
    htmldb_item.select_list_from_query(2,barcode,'select distinct barcode, barcode from gen_req_items') barcode,
    htmldb_item.text(3,item_id,10) item_id,
    htmldb_item.text(4,item_uom_id,10) item_uom_id
    from gen_req_items
    union all
    select htmldb_item.hidden(1,null)  req_itm_id,
    htmldb_item.select_list_from_query(2,null,'select distinct barcode, barcode from gen_req_items') barcode,
    htmldb_item.text(3,null,10) item_id,
    htmldb_item.text(4,null,10) item_uom_id
    from dual) xIm developing a manular tabular form by referring the below link, FYR
    http://www.oracle.com/technetwork/developer-tools/apex/tabular-form-090805.html_
    what might be wrong with my insert statement.
    As i also created sequence and trigger for my primary key column req_itm_id in tabular form
    Brgds,
    Mini

    Mini wrote:
    But the insert is not working, as i couldnt able to insert the values. I dont know what went wrong.
    You've posted here often enough to know that this isn't really sufficient detail. Regarding the above statement, how did you reach that particular conclusion? It might sound like a stupid question, but it gives us a bit of insight into how you have attempted to diagnose the problem and can speed up its resolution.
    * Does the insert work "standalone" i.e. if you write it as a manual query in, for example, the SQL Window, using bind variables?
    * If it does, do you have any special constraints on one or more of the relevant fields (e.g. "not null" on the barcode field)?
    * If so, have you ensured that the relevant field(s) (e.g. F02) are actually populated with values and are valid for insertion?
    In addition, I'm not sure what the purpose of the nested "If" statement is
    if htmldb_application.g_f01(i) is null
    end if;Indeed, the else if won't work either... the correct syntax is elsif

  • The back button does not work consistently, and rarely works if I open an attachment...any ideas on fixing this?

    The back button does not work consistently, and rarely if ever when I open an attachment. Does anyone have a fix for this?
    == This happened ==
    Not sure how often
    == I installed firefox

    Same problem here: I never had a problem with the previous versions and now I don't even get my homepage when I click Firefox. Instead, I am getting a blank screen that says "New Tab", only after I click the "Home" symbol I get my Homepage (Yahoo). The browser - back and browser forward button don't work anymore, very annoying. Normally a newer version should be an improvement but it looks like Mozilla really messed up with this "improvement". probably I am going to use Google chrome from now on.

  • The back buttoin is not working on the broswer.

    the back button is not working. do i need to reinstall?

    See also http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • Back button does not work and homepage does not show on startup

    My back and forward buttons do not work anymore. they just show grey and I can not click on them.
    Also my home page does not show when i start firefox.
    I reinstalled firefox 4 and then went back to firefox 3.6.16 and have the same problem in both versions.
    Not sure what to do anymore
    I just found out that when I open a second window everything works fine in the second window, but it still does not work in the first window.
    When I close both windows the same thing happens. The first window my home page does not show up and the back button does not work, but the second window works normal. Including my home page.

    Yeah, I am having the same problem (with 4.0 and earlier versions). It is really frustrating to say the least. I never thought I'd say this, but I might have to go back to IE if FF is going to be this useless. I noticed that you have to right click (instead of left click like it works in the real world) on the backwards/forwards buttons, and that is no less frustrating since my mouses backwards/forwards buttons no longer work with this new asinine button set up.

  • IPad 2 front and back camera is not work after update iOS 7.0.4 it gives like the resolution is not adjusted

    After updating my ipad 2 to iOS 7.0.4 , front and back camera is not working it gives like very small dots or dash. I did restore from iTunes and reset by holding on the home and sleep button, I also tried to close the app from the task bar but still all trials didn't solve the problem.

    I haven't heard of this before so I doubt it's a bug. Probably something happened during the 7.04 download.
    Backup your iPhone to iTunes and restore it as a new iphone, then restore from the backup. This will give you a fresh copy of iOS 7.04.

  • There is no longer a "close tab" under the file menu, so how do I go back to a previous page when the back button will not work?

    Often the back button will not work. I can find no "close tab" under the menus, which I think used to be there, and which is used with Internet Explorer to go to the previous page. How can I go back to the previous page with Firefox when the back button will not work?

    No you can't. Apple don't support downgrading of iOS.

  • I bought a new 5s and its front and back camera are not working, showing black image. My phone is IOS 7 updated, and some one insisted that its is software updation problem, and can be resolved by updating to IOS 8. Kindly suggest.

    I bought a new 5s and its front and back camera are not working, showing black image. My phone is IOS 7.1.2 updated, and some one insisted that its is software updation problem, and can be resolved by updating to IOS 8. Kindly suggest.

    I have the same issue on my iPhone 5s
    I've closed the app and re-booted the phone several times but it did not resolve the issue.
    Upgrading to iOS 8.0.2 did not resolve it either.
    Erasing the iPhone and restoring from a backup did not resolve it.
    I'm not sure what else to do.

  • I bought a new iPhone 5s and its front and back camera are not working, showing black image. My phone is IOS 7 updated, and some one insisted that its is software updation problem, and can be resolved by updating to IOS 8. Kindly suggest on this. Wil

    I bought a new iPhone 5s and its front and back camera are not working, showing black image. My phone is IOS 7 updated, and some one insisted that its is software updation problem, and can be resolved by updating to IOS 8. Kindly suggest on this. Will this resolve my issue?

    any advise..?

  • The back camera is not working but front camera is

    hi
    my back camera is not working anywhere, not on the camera app nor on any other application.
    the front camera is working still
    since that time, the light is not working neither.
    my iOs is already updated
    what should i do?
    THank you

    Hi Moudira.me,
    I understand that you are experiencing an issue with your back camera and LED light on your iPhone. Here is an article for you that will help you address this issue:
    You see a closed lens or black screen
    If you see a closed lens or black screen when you open the Camera app, try these steps:
    Make sure that there’s nothing blocking the camera lens. If you’re using a case, try removing it.
    Force the app to close, then open the Camera app again.
    Restart your device, then open the Camera app again.
    If your device has a front and rear camera, try both cameras by tapping  (camera swap icon). If you see the closed lens or black screen on only one camera, take your device to an Apple Retail Store or Authorized Service Provider for more help.
    Get help with the camera on your iPhone, iPad, or iPod touch - Apple Support
    https://support.apple.com/en-us/HT203040
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • My E7 back camera is not working.

    My E7 back camera is not working. But individually that 8mg pixel camera is working in another phone tried by a technician. The mobile was unfortunately dropped from my hand on floor. from that instance i am facing problem. and the technician said it is the motherboard problem, may be the camera holder problem. What should i do next? and there is no warranty period left.. already flashed and mobile is belle loaded.

    Welcome to Nokia discussions board! 
    I advise you to take your device to your nearest Nokia Care Point or call your local Careline for repair assistance. 
    Press the 'Accept Solution' icon if I have solved your problem, Kudos my post if my advice has helped you!

  • OBIEE Write Back - Insert New Row

    Hello,
    I am new to these forums and looking for some help with OBIEE's Write Back feature.
    I have Write Back working fine with respect to updating existing rows in a table (ie: the UPDATE tag), but was wondering how to force Write back to invoke the INSERT feature. I would like to be able to create new rows in a table to allow my end user to dynamically add and remove information. I have heard of this being possible (perhaps through some sort of temp. table) in other forum posts, but have yet to see how this is implemented. Also, is it at all possible to use Write Back to delete rows in a table? Any help here would be greatly appreciated. Thanks!
    -Mike
    Here is an exerpt from my working XML file:
    <WebMessage name="NEWSNOTESADMIN">
    <XML>
    <writeBack connectionPool="Oracle Data Warehouse Connection Pool">
    <insert>INSERT INTO WC_NEWS_NOTES (CONTENTS, CONTENT_DATE, IMPORTANCE_LVL) VALUES(@{c0},@c{4},@{c2})</insert>
    <update>UPDATE WC_NEWS_NOTES SET CONTENTS='@{c0}', CONTENT_DATE='@{c4}', IMPORTANCE_LVL=@{c2} WHERE CONTENT_ID='@{c1}' </update>
    </writeBack>
    </XML>
    </WebMessage>

    Well first and foremost, Oracle explicitly states that writeback isn't meant to be used to transform OBIEE into a data entry system. Check the other posts on this subject...
    On the "force insert": put the same statement you have for INSERT into the UPDATE tag. Related to the initial point I mentioned: you will have to worry about uniqueness yourself. OBIEE isn't an OLTP platform!
    Re. delete: I liked Stijns recent post, so I'm going to use that as well:
    http://www.justfuckinggoogleit.com/search.pl?query=obiee+delete+through+writeback
    Third hit. Venkats blog.

  • Password write back service status - not configured

    I'm trying to test self-service password reset but I don't understand how to  get it work. Password write back service status is unconfigured. How it can be configured?
    I have Office 365 with ADFS (3.0) and latest DirSync (enabled with Password Sync). They are working.

    Hello,
    Thanks for posting here!
    As per the screen short provided, it appears to me that the AAD sync is not installed or configured properly. 
    Check this one:
    Microsoft Azure Active Directory Sync Services
    FYI: Password Writeback is an Azure Active Directory Sync component that can be enabled and used by the current subscribers of Azure Active Directory Premium. For more information, see
    Azure Active Directory Editions.
    Reference article:
    Password Management in Azure AD
    Let me know if you need any further assistance!
    Regards,
    Sadiqh
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful.

  • Data Services job rolling back Inserts but not Deletes or Updates

    I have a fairly simple CDC job that I'm trying to put together. My source table has a record type code of "I" for Inserts, "D" for deletes, "UB" for Update Before and "UP" for Update After. I use a Map_CDC_Operation transform to update the destination table based on those codes.
    I am not using the Transaction Control feature (because it just throws an error when I use it)
    My issue is as follows.
    Let's say I have a set of 10,000 Insert records in my source table. Record number 4000 happens to be a duplicate of record number 1. The job will process the records in order starting with record 1 and begin happily inserting records into the destination table. Once it gets to record 4000 however it runs into a duplicate key issue and then my try/catch block catches the error and the dataflow will exit. All records that were inserted prior to the error will be rolled back in the destination.
    But the same is not true for updates or deletes. If I have 10000 deletes and 1 insert in the middle that happens to be an insert of a duplicate key, any deletes processed before the insert will not be rolled back. This is also the case for updates.
    And again, I am not using Transaction Control, so I'm not sure why the Inserts are being rolled back, but more curiously Updates and Deletes are not being rolled back. I'm not sure why there isn't a consistent result regardless of type of operation. Does anyone know what's going on here or  what I'm doing wrong/what my misconception may be?
    Environment information: both source and destination are SQL Server 2008 databases and the Data Services version we use is 14.1.1.460.
    If you require more information, please let me know.

    Hi Michael,
    Thanks for your reply. Here are all the options on my source table:
    My Rows per commit on the table is 10,000.
    Delete data table before loading is not checked.
    Column comparison - Compare by name
    Number of loaders - 1
    Use overflow file - No
    Use input keys - Yes
    Update key columns - No
    Auto correct load - No
    Include in transaction - No
    The rest were set to Not Applicable.
    How can I see the size of the commits for each opcode? If they are in fact different from my Rows per commit (10,000) that may solve my issue.
    I'm new to Data Services so I'm not sure how I would implement my own transaction control logic using a control column and script. Is there a guide somewhere I can follow?
    I can also try using the Auto correct load feature.  I'm guessing "upsert" was a typo for insert? Where is that option?
    Thank you very much!
    Riley

  • All of a sudden my back button does not work at all, on any site, and when I start Firefox it does not go to the home page I specified

    Just a few days ago, I noticed that when I start Firefox it goes to a blank page, despite the fact that I have several times checked and rechecked under "Options" and my home page is in there. Also the back button has stopped working. I have made sure that inprivate browsing is not enabled, history is maintained etc etc

    Does the issue still occur if you start Firefox in Safe Mode? http://support.mozilla.com/en-US/kb/Safe+Mode
    How about with a new, empty profile? http://support.mozilla.com/en-US/kb/Basic%20Troubleshooting#w_8-make-a-new-profile

Maybe you are looking for