Update/Insert Help..

I have the ADDT update transaction on a page and I also have a native Dream Weaver insert for the same form. Everything works great EXCEPT when the check unique field trigger returns an error. The ADDT update is aborted but the insert still happens. I know one way to abort the insert if the error is returned is to add a If statement before the insert code but i am unsure of the terminology I should be using in the If statement.
<br />
<br /><% <br /><br />If ERROR  = "" Then<br />' insert script here<br />' .........<br />End if<br /><br />%>
<br />
<br />Does anyone know the name of the variable that holds the error?

I took your first advice of changing my insert code to ADDT and linked the transactions, Presto! Its working great on the first try!!! I really appreciate your help, I would be here forever trying to figure this out and never new that server behavior existed.

Similar Messages

  • Update/insert/delete data from xcelsius to Database via web service

    Hi,
    I need to create dashboard that go function can <b>update/insert/delete</b> data send to <u>Database</u> thru <u>web services</u>, as i know got 2 xcelsius add-on software which support those of function <b>InfoBurst</b> and <b>flynet </b>
    <b>InfoBurst</b>
    http://www.infosol.com/azbocug/minutes/4-Writeback%20to%20a%20Database%20with%20Xcelsius.pdf
    <b>flynet </b>
    http://www.flynetviewer.com/public/community/Blogs/FlynetXcelsiusServerUser/default.aspx
    Except this 2 purchase add-on xcelsius, any other solution ?  
    Maybe need to write some in MSSQL or C# programming which enable insert, update, delete ...etc  ?
    *note: i not use Xcelsius Engage Server , i use Xcelsius Engage only
    thanks,
    regards
    s1
    Edited by: Leong Pui Kee on Mar 1, 2011 6:06 AM

    Hi,
    As of now in Xcelsius/Dashboard Design there is no feature or functionality to insert/update/delete data from database.
    Solution:
    Create a Web service in let’s say C# or Java, which will perform insert/update/delete operation.
    In Xcelsius add Web Service connection and user above web service.
    Xcelsius Web Service connection provides option to pass input values to a Web Service (Input Pane) and get the result (Output values pane).
    We can pass values to be written to the database as a input to Web Service via Web Service connection from Xcelsius and write data to the database.
    Note:
    Performing delete operation from Xcelsius Dashboard could be risky and may delete important data from database. I would not prefer giving delete option/functionality in Xcelsius dashboard.
    Hope this helps!
    Thank you.
    Regards,
    Vinay Mhaske

  • TS1814 I have windows vista and this did not work for my ipod it still will not update PLEASE HELP!

    I have windows vista and this did not work for my ipod it still will not update PLEASE HELP!
    iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server

    Try this:
    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 n above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    If you do get a prompt after restart windows to remap LSP, just click NO.
    Now launch your iTunes and see if it is working now.
    If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
    iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123?viewlocale=en_US

  • * * Procedure needs a way to  perform  update, insert or delete to...

    Hi Gurus,
    I got Assignment & need your help how to write this procedure efficiently.
    ** The procedure needs a way to actually perform the update, insert or delete to bring the reference data up-to-date with the refresh table.**These columns are for internal use and should not be compared to the refresh tables.
    Column 1
    Column 4
    Column 5
    Column 7
    Column 9
    Column 12
    Column 22
    Column 24
    1)     I would list out the columns in the cursors in place of the *. Or better define a record with %ROWTYPE.
    2)     You will need to include a way to look for rows that may be in one table and not the other.
    a.     Insert the rows that exist in the refresh table, but are missing from the reference table.
    b.     Delete the rows that are found in the reference table, but do not appear in the refresh table.
    3)     You also need to provide for handling the expiration date. Our default expiration date is ‘01-JAN-2500’, meaning if the refresh table has a futuristic expiration date or null, then our default expiration date is considered valid. Also this date needs to be added to any new rows created as a result of the refresh, if you leave the EXPIRATION_DATE column out of the insert it should default to the above date.
    4)     I assume that Differences is where you plan to list the actual data values that differ. If you don’t list the whole row I would at least list the primary key, in addition to what columns are different.
    5)     The procedure needs a way to actually perform the update, insert or delete to bring the reference data up-to-date with the refresh table.
    Thanks in advance

    Hi,
    Take a look at merge
    http://www.psoug.org/reference/merge.html
    Keep Smiling
    Bob R

  • In jdbc adapter what is the difference between insert and update insert

    in jdbc adapter what is the difference between insert and update insert
    Edited by: katru vijay on Mar 22, 2010 7:43 AM

    Please refer to this Link [Document Formats for the Receiver JDBC Adapter|http://help.sap.com/saphelp_nw04/Helpdata/EN/22/b4d13b633f7748b4d34f3191529946/frameset.htm]
    Hope this helps.
    Regards,
    Chandravadan

  • How do I update/insert into a target table, rows after date X

    Hi all
    I have a mapping from source table A to target table B. Identical table structure.
    Target table A updates rows and inserts rows daily. Every week I want to synchronize this with table B.
    I have CREATION_DATE and LAST_UPDATE_DATE on both tables. I want to pass in a parameter to this mapping of date X which tells the mapping:
    "if CREATION_DATE is past X then do an insert of this row in B, if LAST_UPDATE_DATE is past X then do an update of this row in B"
    Please can you help me work out how to map this correctly as I am new to OWB.
    Many thanks
    Adi

    Hi,
    You can achieve this by -
    1. Create a control table, say Control_Table, with structure
    Map Name, last_load_date. Populate this table with the mappings that synchronizes your Table B.
    2. Alter mapping, that loads Table B to use the above control table to get all the records from Table A, you have to join Table A and Control_Table with the condition -
    Control_Table.Map_Name = < mapping name>
    AND ( TableA.Creation_Date > Control_Table.last_load_date
    OR TableA.Last_Update_Date > Control_Table.last_load_date )
    3. Then use UPDATE/INSERT on the Table B based on the Keys. This should take care of INSERT ( if not present) / UPDATE (if the row already exists).
    4. Schedule the mapping to run on weekly basis.
    5. You have to maintain the Control_Table to keep changing the values for Last_Load_Date to pick the data since the last time Table B is synchronized.
    HTH
    Mahesh

  • Data comparison and update/insert between two schemas in same database

    Hi all,
    I have requirement like this. In one database, i am having two users, user1 and user2. Both users is having same tables and structure wise also same. In user1, data will be populated by job.
    Now, what i want to do is, i have to find out difference between user1 and user2 data and the Difference data will be updated/inserted into the user2.
    Any ideas please...
    Thanks in advance,
    Pal

    Will trigger help you ... ie. for every update/insert on user1 will do on user2-- it is heavy to do for all table...
    --svmg                                                                                                                                                                                                                                                                   

  • UPDATE/INSERT

    Hi All,
    My target table has two columns table_id and status. table_id is the primary key.
    I am doing an UPDATE/INSERT type of loading and match by constraint - "all constraints".
    The records should be updated by matching my primary key column - table_id.
    The mapping is running to success but showing some warnings... and not all soirce records are inserted/updated.
    I have two questions here -
    1.Is my loading strategy correct ??
    2. Where to see a detailed error log of these warnings ?
    Regds
    -Arnab

    Hello. If you have a primary key then select it as the driving constraint.
    It will then merge correctly using the single PK definition.
    Another very helpful thing to do is to set your mapping to SET BASED only and set errors to 2. This will allow the mapping to log the failure (seems to need 2 errors to log the first error) and will result in no records being inserted/updated on a failure. This will help you debug your mappings.
    Also you can generate aspects of your mapping to see the sql statement build up. This means to expand an operator and select a group level and right click choose generate intermediate, this will show sql leading into inputs, and leaving via outputs also very handy to see your mapping logic building up.
    Check the generate from the mapping editor this will show the logic for doing the merge, it will match on keys check its correct, cut and paste it into sql and debug it.
    Have fun.
    Regards,
    Richard Harrison.

  • OWB Update/Insert throwing unique constraint ..

    Hello Al,
    I am currently facing issue when it is supposed to update/Insert the records in OWB10gR2.
    Also there are no duplicates in the source data while doing this.
    Any help is appreceated.
    Thanks,
    Suresh
    Edited by: user8745316 on Jul 27, 2010 12:58 AM

    Hi Nawneet,
    Thanks for the reply.
    My issue is something like this , there were duplicates from the source and we deleted them but still it gives this error @ Unique constraint voilated errror.
    I also can understand that as we have same matching records by key columns from source and target which should ideally be doing the update and if non matching should be inserting which is not happening now.
    can you please suggest me the issue.
    Thanks for your help.
    Suresh

  • Only select statements work (update/insert hang)

    Hi, I am running CF MX version 7,0,2,142559 Standard Edition
    and ColdFusion is hanging everytime I attempt an insert or update
    statement again Oracle 8i and 9i using the jdbc thin driver and an
    odbc socket driver.
    Select statements work fine. I have tried everything I could
    think of and I get the same results. All rights are given to the
    datasource and the user. I can do insert and update statement via
    another application (Toad) with the same Oracle user.
    Any suggestions??? I don't see any hot fixes for this but
    that doesn't mean one doesn't exist.
    Also, many times it causes the system cpu utlization to stick
    at 100% until I restart ColdFusion.
    Thanks for any help.

    Hi,
    I had similar results on Oracle 10G while using cfmx 7.02. I
    actually updated the macromedia_drivers.jar from the coldfusion
    support site.
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=42dcb10a
    An update to the datadirect JDBC drivers. Try that. If not,
    make sure you have the latest JDBC drivers from Oracle. Since
    previous versions would make the update/insert;s hang.

  • Can we have an example of using update, insert, and delete stored procedure

    I would like to see an example of using retrieve (return resultset), update, insert, and delete stored procedures in JSF. I need to see syntax how JSF can call those stored procedures. This option is absolutely important when building web-application. Currently, I haven't found resource to do for this purpose yet. The database can be any such Oracle, DB2, pointbase, etc that support stored procedures.
    Anyone knows?
    Thanks,
    Tue Vu

    Hi ttv,
    I asked around a bit and here's some more info:
    To bind a ResultSet to a read only Data Table component just set the "value" property of the Data Table component to point at it, and JSF will synthesize a DataModel around it.
    * Note that because we can't call the stored procedure at design time, Creator can't do the fancy table layout stuff it does for rowsets. You'll need to hand craft the columns just like the Google Client example.
    * As I mentioned previously, you will have to manually code the stored procedure access in your java code - see the code clip I mentioned in previous reply (and if this is via a stored procedure, then any textbook about JDBC will undoubtedly have examples). Simplest way might be a getter method on the page bean that contains the call to the stored procedure and returns the resulting ResultSet object.
    * Don't forget to close the result set - we typically do this at the end of the request (i.e. add a close in the afterRenderResponse() method.
    * Don't throw exceptions - or if you have to, make sure you close the result set in a finally clause (thrown exceptions bypass the afterRenderResponse method in the lifecycle).
    * You give up on the caching provided by our RowSetDataModel (which can't be connected to a ResultSet even manually), so I would recommend that you only use datatables to display the data and then go to a single row page to do edits/deletes (similar to the TwoPage example in AppModel and the Update, Insert Delete tutorial).
    And yes please do submit an example - we will gladly post it!!! :) The best way to submit this kind of thing would be through:
    http://developers.sun.com/prodtech/javatools/jscreator/reference/codesamples/sampleapps.html
    on the right side, Related Links, under Creator Heros, click Submit Content and there you can send it in!
    Hope this helps!
    Val

  • Error after update: Plz help

    I am facing a really strange problem and I have been banging my head against the wall for the past couple of days. I do not understand how no one else faced this error before. So quite possibly it must be my fault somehow. But heres the problem description
    I first do an insert into the oracle 9i database using ODP.NET -- this works correctly
    Immediately afterwards I do an read of the same row that I just inserted
    Immediately afterwards I do an update. The update always fails in the scenario no matter which row I am updating. All these operations are on the same table though.
    The update works just fine when there is no insert immediately preceding it.
    The error message that I get is:
    "Dynamic SQL generation failed. No key information found"
    But this does not make any sense due to:
    a) The database has the key info in it
    b) This scenario works when I use the Microsofts driver for oracle
    c) Inserts, updates work independently. They dont work only when I call an update immediately after an insert.
    DO u think there is so row locking thing going on here??
    But the error message is completely different.
    thanks for any help on this.

    well
    I finally figured out the cause of the error. I am not sure if this is a bug with ODP.NET or not but like I said above this problem only occurs when I use ODP.NET and not the driver provided by microsoft for oracle. The solution is to call fillschema before update, insert, delete into the database. The fillschema also fills in the primarykey information into the dataset. apparently I had assumed incorrectly that fill would do it, but dosent seem like it. So in order to use oraclecommandbuilder one needs to use fillschema too.

  • What's the exact trigger for when updating/inserting/deleting data from one DB to another DB which contains same info?

    Hi guys,
    I have created a copy of the AdventureWorks2012 DB called AdventureWorks2012_new on the same instance.
    I have created the following trigger below but my friend who is a DBA told me that this is not correct and I should be using the inserted table when creating this trigger. I would like AdventureWorks2012_new DB to be updating/inserting/deleting data from
    the same tables that have been updated/inserted/deleted in the AdventureWorks2012 DB. How exactly should I do this for all the tables in the whole database ? What I have written below is just for one of the tables, is there a quicker way to do it for all tables
    in this DB so that it performs the actions mentioned above, automatically ? Help would be greatly appreciated so I can understand how this works, thanks
    CREATE TRIGGER [HumanResources].[tr_HumanResources_AfterUpdate]
    ON [AdventureWorks2012].[HumanResources].[Department]
    AFTER UPDATE
    AS
    BEGIN
    SET NOCOUNT ON;
    UPDATE AdventureWorks2012_new.HumanResources.Department
    SET Name = t2.Name,
    GroupName = t2.GroupName,
    ModifiedDate = t2.ModifiedDate
    FROM AdventureWorks2012.HumanResources.Department AS t2
    INNER JOIN AdventureWorks2012_new.HumanResources.Department AS t1
    ON t2.DepartmentID = t1.DepartmentID
    END

    For insert it's easy:
    CREATE TRIGGER [HumanResources].[tr_HumanResources_AfterInsert]
    ON [AdventureWorks2012].[HumanResources].[Department]
    AFTER INSERT
    AS
    BEGIN
    SET NOCOUNT ON;
    Insert INTO AdventureWorks2012_new.HumanResources.Department
    (DepartmentID, Name, GroupName, ModifiedDate)
    SELECT DepartmentID, Name, GroupName, ModifiedDate
    FROM Inserted;
    END
    I didn't verify column names, so you may need to make sure to use correct column names for that table.
    Setting replication is a bit advanced topic although BOL is clear and you may start here
    http://technet.microsoft.com/en-us/library/ms151198.aspx
    If it will be complicated for you, you can ask extra questions in the MSDN Replication forum.
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • Why should avoid OLTP compression on tables with massive update/insert?

    Dear expert,
    We are planning oracle OLTP compression on a IS-U system, could you tell me
    Why should avoid OLTP compression on tables with massive update/insert?
    What kind of impact on the performance in the worst case?
    Best regards,
    Kate

    Hi
    When updating compressed data Oracle has to read it, uncompress it and update it.
    The compression is then performed again later asynchronously. This does require a lot more CPU than for a simple update.
    An other drawback is that compression on highly modified tables will generate a major increase in redo / undo log generation. I've experienced it on an DB where RFC tables where by mistake compressed, the redo increase was over 15%.
    Check the remark at the end of  Jonathan Lewis post.
    Regards
    http://allthingsoracle.com/compression-in-oracle-part-3-oltp-compression/
    Possibly this is all part of the trade-off that helps to explain why Oracle doesn't end up compressing the last few rows that get inserted into the block.
    The effect can be investigated fairly easily by inserting about 250 rows into the empty table - we see Oracle inserting 90 rows, then generating a lot of undo and redo as it compresses those 90 rows; then we insert another 40 rows, then generate a lot of undo and redo compressing the 130 rows. Ultimately, by the time the block is full we have processed the first 90 rows into the undo and redo four or five times.

  • MM-Invoice: Update/Insertion of accout assignments

    Is anyone out there who knows how to update/insert accout assignments of mm-invoices? I work with a 46C system and tried desperately to do this via function module MRM_INVOICE_ACCASS_SAVE and direct table update of RBCO but never succeeded. Every time a tried the last way I got an error while saving the invoice.
    Pls. help, I am going mad about this issue!
    Thanks a lot in advance for any helpful hints!
    Alexander

    Hi,
    Can you please give details of the error that you are getting?
    I have gone through the Market Place using the function module  and I got the below OSS Notes.
    Please check whether they are useful.
    763752  MIR6: Deleting an invoice document 
    545508      MIR4: error message M8185      
    551005      Transaction MIR4: Error message M8185
    530799      MIR7: Change of the fiscal year
    138757      Temporary tables not deleted      26.02.2002
    367740      MIR6, RMBABG00:update termination because of M8185      
    367452      MIR6, RMBABG00: SAPSQL_ARRAY_INSERT_DUPREC 310323      EDI: No rollback for E messages during update 210115      RMBABG00:SELKZ f.purchase orders w/ accnt assignmnt
    Thanks,
    Ramakrishna
    Message was edited by: Ramakrishna Prasad Ramisetti

Maybe you are looking for

  • Convert HTML ASCII codes with JSTL and Apache Taglibs?

    I am building a web application using JSTL and some of the Apache Taglibs, so these are the taglibs I have at my disposal currently. What I am looking for is the ability to handle the ' that appears in submitted search strings which contain the ' cha

  • Add new row to a table

    Hello! I'm using JDev 11.2 and I'm trying to add a new row to a table object (using create insert) the catch is this- and the new empty row that will appear- I want a value set instead of one of the values- so the user can choose which value to inser

  • File conversion Problem

    Hi Experts, we are facing a problem when converting one text file by using FTP adapter. the flat txt file is as below AT1230001 "AT"  - Segment Name "123" - Field One "0001"  - Field Two we are using FTP Adapter conversion for the same the result of

  • Microsoft SQL 2008

    I'm trying to connect to Microsoft SQL 2008. I'm using "sqljdbc_1.2 driver". I'm having trouble getting the right "jdbc driver" and "jdbc url". For jdbc url, I tried: "jdbc:sqlserver://localhost" but there was errors. run-single: java.lang.ClassNotFo

  • Poster Frame won't work

    I set up a poster frame for the video page on my site. I set the page so it does not auto play. But you don't see the poster frame on the site. All you see is black over the movie controller. Here's the URL. http://web.me.com/dariasdocumentary/Site/C