Problem enabling Write Back

I am having a problem getting the INSERT statement to execute in my writeback setup.
I am trying to set this up on the standard EMP table. I created an additional table to store writeback comments related to the EMP table. The Write Back table has columns EMP_ID, USER (from BI), DATE, and COMMENTS.
My problem is that if I try to enter comments for an employee where the comments is already blank, it doesn't process the insert statement I specified, it tries to run the UPDATE statement. I verified this in NQQuery.log.
Out of curiosity, I manually entered a record into the write back table and tried to change the value in my write back field in BI, and it worked - because it's only looking at the update statement for some reason, so that part is fine. It just seems to be completely ignoring the insert statement.
I tried to remove the UPDATE statement to see if it would recognize my insert statement, but it gave an error when I tried that:
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27024] The EXECUTE PHYSICAL statement must specify a physical SQL statement to execute. (HY000)
Here is my XML template for writeback:
<?xml version="1.0" encoding="utf-8" ?>
<WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
     <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
          <WebMessage name="SetEmpComments">
               <XML>
                    <writeBack connectionPool="Writeback Connection Pool">
                         <insert>INSERT INTO EMP_WB_TEST
                         VALUES('@{c3}',SYSDATE,'@{c4}','@{c1}')</insert>
                         <update>UPDATE EMP_WB_TEST SET dt_crte=SYSDATE, user_name='@{c4}', comments='@{c1}' WHERE empno='@{c3}'</update>
                    </writeBack>
               </XML>
          </WebMessage>
     </WebMessageTable>
</WebMessageTables>

Just a wild quess - are your values listed in the order corresponding to the columns order in the write back table ?
What if you rewrite your insert as
<insert>INSERT INTO EMP_WB_TEST(empno,dt_crte,user_name,comments)
VALUES('@{c3}',SYSDATE,'@{c4}','@{c1}')</insert>?
Best regards
Maxim

Similar Messages

  • Enable write back

    Hi Experts,
    I enable write back, I used Venkats blog post:
    I am able to update my database successfully but i am getting the below error message
    Error:
    An error occurred while writing to the server. Please check to make sure you have entered appropriate values. If the problem persists, contact your system administrator.
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27024] The EXECUTE PHYSICAL statement must specify a physical SQL statement to execute. (HY000)
    SQL Issued: EXECUTE PHYSICAL CONNECTION POOL Sales COMMIT
    Please suggest..
    Regards
    Sai

    Hi..
    Referring to Error:Unable to read the Writeback template the XML would be .. in the following way.. don't use.. COMMIT statement
    <?xml version="1.0" encoding="utf-8"?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
    <WebMessage name="WriteBack">
    <XML>
    <writeBack connectionPool="Connection Pool">
    <insert> INSERT INTO FACT (PRICE,PRODUCT_KEY,REGION_KEY,SALE_UNIT,TIMEKEY,SALES_QUOTA)
    values (@{c7},@{c8},@{c9},@{c10},@{c11},@{c5} ) </insert>
    <update> </update>
    </writeBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    The <writeBack> tag is written with a lower case "w".
    The "connetionPool" needs an upper case "P".
    Edited by: Kishore Guggilla on Dec 17, 2008 7:45 PM

  • Write back in OBIEE 11g : unable to check "enable write back"

    Hi all!
    I have a table on presentation, i want to make a table in analysis with function "Write back". But in criteria, when i choose "column properties" --> "write back" tab --> i can not check "Enable write back". I have granted privileges "write back" to user
    Please tell me how to configure to make it.
    Thanks so much.
    Edited by: OBIEE.vn on Jan 6, 2011 7:54 PM

    Guys,
    In OBIEE 11g You need to make sure that you mark the logical columns in your Repository RPD as "Writeable". Otherwise the ability to write to these columns is not allowed for WriteBack functionality.
    Cheers,
    Christian
    http://www.artofbi.com

  • How to Enable WRITE BACK

    Hi All,
    How to enable write back functionality in dashboards.
    I read thru the related posts.
    Do i need to create a write back xml templte ??
    Please let me know the steps how to enable write back ASAP.
    Thanks in Advance,
    Veena A

    Thanks Kishore,
    Please correct whether my understanding for Write Back is right !!!
    I have a table called say tbl_revenue.
    User needs to enter few values in some columns say col1,col2 and col3.
    do i need to create a physical table with the above columns and then map in the rpd accordingly.
    also i have enabled write back in connection pool.
    the xml that i have created is as below,
    <?xml version="1.0" encoding="utf-8"?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
    <WebMessageTable lang="en-us" system="WebCatalog" table="Revenue">
    <WebMessage Name = "Revenue_Reconcilation"
    <xml>
    <writeBack Connection Pool = "Revenue">
    <insert> INSERT into Revenue_physical (col1,col2,col3,col4) values (@{c1},@{c2},@{c3},@{c4}) </insert>
    <update> </update>
    </writeBack>
    </WebMessage></WebMessageTable></WebMessageTables>
    Revenue is the main table and i have created the physical table as Revenue_physical.
    Is this right???
    Thanks in advance
    Veena A

  • Problem in write back function.

    I am trying to implement the write back function. The update button is enabled and it displays an error when clicked.
    Error:
    "The system is unable to read the Write Back Template 'dev10'. Please contact your system administrator."
    following is the xml template i wrote -
    <?xml version="1.0" encoding="utf-8" ?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
    <WebMessageTable lang="en-us" system="WriteBack" table = "Messages">
    <WebMessage name ="dev10">
    <XML>
    <WriteBack ConnectionPool="WRB">
    <insert></insert>
    <update>UPDATE Users SET Default Password=@{C1} WHERE (UserName ='@{C0}' AND Group Name='@{C2}')</update>
    </WriteBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    This is placed under C:\OracleBI\web\msgdb\customMessages.
    and also can anyone tell me what is <WebMessage name ="dev10">?
    Thanks in advance.

    somehow i fixed the update part of the xml. now i can update the column but still i could not insert a value in the column.
    Any Suggestions plz?

  • Unable to enable Write Back Option in OBIEE11g

    Hi Experts,
    I'm using OBIEE 11g.
    I have followed all the steps to enable the write back option as in OBIEE 10g.
    I'm unable to check the enable writeback option in column properties.
    Am I missing any configuration steps.
    Pls help me by providing necessary steps.
    Regards,
    Kalyan.

    Hi,
    I have tried it and now able to get the write back option in enabled state.
    So, Iam closing this issue..
    Regards,
    Kalyan.

  • Can we enable write back option , for excel as source?

    Hi All,
    Is it possible to updated an excel using write back , if so please help me how do i need to proceed with.
    Regards,
    Som

    Assume that you have an excel workbook with one sheet called for instance "MySheet" that you want to insert/update on one column called "MyValue".
    If you want to insert then the sql is :
    INSERT INTO [MySheet$] (MyValue) VALUES (@{c0})but you can't DELETE or UPDATE. See this microsoft article :
    http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q178/7/17.ASP&NoWebContent=1

  • 11g write-back drop down box

    Hi, I have enabled write back in OBIEE 11g dashboard. I would like to know if it is possible to create a drop down box within the write-back enabled column?

    I realize this is a very old thread, but I was hoping there was a way to do this.
    I would like to enable write-back to an a table we use to track running processes. I would like to be able to update the status to either 'COMPLETE' or 'INCOMPLETE'. The programs can change theses statuses to anything meaningful, but I only want those two values as options for write-back.
    Is this even possible?

  • Write Back feature in 11g environment

    Hi,
    I am trying to implement write back feature in 11g environment.
    i have configured RPD as mentioned below-
    in physical layer- non cacheable,
    in BMM- enable write back checkbox,
    in Presentation layer read/write property for field,
    in report i have checked write back box for column.
    I have created xml file for the column to be edited.
    But i am not able to locate where i need to mention this xml file name.
    Please let me know where i need to mention the xml file name and where i need to place the file.

    Can you confirm that you have done ALL of the following:
    -Make sure you use columnIDs as opposed to column position in the XML template
    -Use Schema prefix on the table column
    -Ensure WebMessage name on XML template matches the EXACT name in Table View Properties
    -Ensure Physical table is non cacheable
    -Presentation and Logical layer must have Write enabled for the writeback columns
    -If we dont need an INPUT command make sure to have a space between the XML tags
    I dont have access to a writeback file currently..if you can paste yours here, maybe we can help.
    Also, if the responses are helpful, please mark them as helpful or correct.

  • 10g - write back - The system is unable to read the Write Back Template

    hi,experts,
    I enabled write back on a report.
    the button (write back) is enabled (not grey)
    but when I click the button, there is a message
    The system is unable to read the Write Back Template 'UPDATETESTWRITEBACK'. Please contact your system administrator.
    I put UPDATETESTWRITEBACK.XML in C:\OracleBI\web\msgdb\customMessages
    the syntax in the xml is correct.
    what is the result? any log to check?

    Its not mandatory to have the same template name as your xml file name.
    But the <WebMessage name= "UPDATETESTWRITEBACK"> should be same what the templetae you are using in the webcat.
    Please find sampel xml which can have any xyz name in the folder "OracleBIData\web\msgdb\customMessages'
    <?xml version="1.0" encoding="utf-8" ?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web.messageSystem">
    <WebMessageTable lang="en-us" system="WriteBackTemplates" table="Templates">
    <WebMessage name= "ResourceAllocation">
    <XML>
    <writeBack connectionPool="--your connection pool name">
    <insert> Insert statement </insert>
    </writeBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    Cheers,
    Rajeev A

  • Write back in Siebel Analytics 7.8.2?

    Hi,
    Is write back functionality available with Siebel analytics version 7.8.2. ? In which version of siebel analytics the write back functionality is introduced? Also please let me know how to enable write back in SA 7.8.2.
    There is no bookshelf available for SA 7.8.2.
    Any help would be much appreciated.
    Thanks.

    Any idea on the above issue?
    Edited by: user12129725 on Apr 28, 2010 6:38 AM

  • Help on write back feature

    Hi All,
    I am working in Siebel Analytics 7.8.2.
    I have tried enabling write back feature in my application but I am not able to do so. The write back tab is enabled in the physical layer of repository. I have created a write back template. But the “Manage write back” option is not available in the Admin page. Could anyone please let me know whether any special license and configuration setting are required to enable write back in 7.8.2. ?
    Also please let me know the requirements and timeline to upgrade from SA 7.8.2 to 7.8.4. What are all the general factors (infrastructure change, additional components, configuration changes, etc) affecting the up gradation?
    Thanks.

    Hello Everyone,
    The write back feature is working fine. There was an issue privilege setting in rpd.
    Now one field is getting editable while pressing Update button in the dashboard report and type new value and pressing Apply button, data is getting updated in to DB table.
    To aviod the manual entry i want to enter a value from some kind of dropdown or any choice box. So could you please let me know how can i achieve this functionality.
    Thanks in advance.
    Regards
    Niraj

  • Write Back in BI11G

    hi
    I am using BI11g. How can i create write back in BI11g?
    thanks
    kavi

    Kavitha,
    Considering you already have an idea about implementing writeback in BIEE 10g. On presentation services side the configuration remains the same except the writeback selection in column properties is bit change but there is specific change in RPD side configuration that should be taken care of to enable write back on a particular column, you must select the Writeable option for the logical column, and enable the Read/Write permission for the corresponding presentation column. You must also disable caching on the corresponding physical table.
    Hope you find this useful..
    Thanks,
    Deepak

  • Write Back Funtionality not working.

    Hi All,
    I am trying write back functionality which is not working for me...Here is what I did..followed
    oraclebizint.wordpress.com/.../oracle-bi-ee-101332-write-back-option-budgetingplanning/ -
    1) Connection Pool settings default
    2) Created a report which has 4 columns s_no, s_name, marks, remarks from a DB Table "test_write_back"
    3) In the properties of column 4 Remarks, I have selected write Back.
    4) For Administrator i have given permission.
    5) My XML is below
    <?xml version="1.0" encoding="utf-8"?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
    <WebMessage name="SHNEW">
    <XML>
    <WriteBack connectionpool="Connection Pool">
    <insert>INSERT INTO test_write_back (s_no, s_name, marks, remarks)VALUES (@{c0},@{c1},@{C2},@{C4}) </insert>
    <Update> </Update>
    </WriteBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    6) I have placed XML in C:\OracleBI\web\msgdb\l_en\messages
    7) I am getting button in UI report, when I click on that I am getting error
    "The system is unable to read the Write Back Template 'SHNEW'. Please contact your system administrator."
    I read blogs and few other notes I understood there is some issue with my XML, I tried all possible is there anything missing here...
    A) I created or enabled Write back in only one column "Remarks" and I want only that column to be updated from UI
    What changes required if any in XML?
    and Is there any permissions checking
    Thanks in Advance.
    Please help
    Cheers

    Hi Goran,
    Thanks for the reply...
    -->I tried to place the file in the correct folder.
    --> And also corrected the Insert statment with ' ' for character fields
    --> My "Remarks" column in DB was null, i have updated with some text initially...
    Still I am getting same error....
    I guess there is some issue with XML...
    Can you anybody help me pls..
    Thanks!

  • SSAS settings for write-back analysis

    Hi,
    Must write-back be enabled in the cube to be able to do What-if analysis from Excel? I do not need to publish the changes.
    All articles I find require the write back enabled on the partition but our BI  architect claims that that is not necessary?
    We have SQL server 2012 and Excel 2010.
    Thank you,
    Cristina

    Hello Cristina,
    Yes, you have to modify your cube definition & deploy it to enable write-back feature on dimension/partition level; see
    -Enabled Dimensionsand
    Enabling and Securing Data Entry with Analysis Services Writeback
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

Maybe you are looking for

  • Ipod nano not synching with itunes:  HELP!!

    I just purchased an ipod nano and tried to synch with the latest version of itunes. I'm unable to synch and get an error -53. Does anyone know of this error? I tried calling support and was on the phone for over 3 hours and was unable to receive any

  • Report for PR Release

    Hi, I'm writing a report to display the approvers of purchase requisition. I dont find in any MM tables, the approval details are getting updated. Do anyone knows how can i get the PR approvers from any table passing the PR number ?? Regards, JMB

  • How can I get the java 2D java2D  tutorials�H

    How can I get the java 2D java2D tutorials which I dont need lookup it online?

  • Premiere Pro: Not Playing Timeline, Not Rendering Full Sequence, Stalling on One Frame

    2013 iMac // 10.9.3 // Premiere Pro CC 2014 (latest update) I have been editing a project for a few days, and it just started giving me issues on my last run through it before exporting. I have dealt with many problems with PP before, but I honestly

  • Metapackage File Errors On Hybrid Cd In Mac OS 10.3

    I've a PackageMaker built Metapackage, Install.mpkg, burn into a Hybrid CD. Running Install.mpkg under OS 10.4 doesn't have problems, but when I run it under OS 10.3, there's always an error saying Install.mpkg couldn't be read. The file itself is wo