Update query not working in the JDBC sender Communication channel

Hi,
We are working on JDBC to File scenario. As per the configuration, XI should pick the data from SQL database every 20 secs and should update the corresponding flag. We are using subquery in the select and update statement as both header and detail tables are involved.
Now the issue is, select query is working fine but update statement is not working as expected. It is somehow updating some other records rather than doing for the ones selected by the adapter.
Moreover logSQLstatement is also not working. Hence we are unable to identify the records which are getting updated.
Please advise.

Hi Rumi,
See Question 8. Transaction Handling (Sender) in [SAP Note 831162 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 JDBC Adapter|https://websmp130.sap-ag.de/sap(bD1wdCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=831162].
8.  Transaction Handling (Sender)
Q: If I have the following configured in a JDBC Sender:
Select Query:
SELECT column FROM TABLENAME WHERE FLAG = "TRUE"
Update Query:
UPDATE TABLENAME SET FLAG = "FALSE" WHERE FLAG = "TRUE"
How do I know that the JDBC adapter will not update newly added rows (rows that were
added between the time that the SELECT and UPDATE queries were executed) that were
not read in the initial SELECT query?
A: The SELECT and the UPDATE are run in the same DB transaction, i.e. both statements
have the same view on the database.
Make sure that both statements use the same WHERE clause. An additional
requirement for the correct operation of this scenario is the configuration of
an appropriate transaction isolation level on the database
(i.e., repeatable_read or serializable). You might also consider using a
"SELECT FOR UPDATE" statement instead of a plain SELECT statement to
ensure proper locking on the database. "SELECT FOR UPDATE"
is not supported in MS SQL database. In this case please make use of an
appropriate transaction isolation level on the database. For more details
please contact your DB vendors.
After, see Transaction Handling Issues in [SAP Note 1039779 - JDBC Adapter issues(Escape character,Transaction handling)|https://websmp130.sap-ag.de/sap(bD1wdCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1039779].
Best Regards.
Pedro Baroni

Similar Messages

  • Updates tab not working in the App Store

    The updates tab is not working in the App Store. I have to go to purchased tab to find the apps that need updating. How can I fix this? I've turn off the iPad multiple times hoping it will reboot but it doesn't help.

    Apparently there are problems updating updates on iOS devices >  Apps update not working. Was before but...: Apple Support Communities
    Try again later or tomorrow.
    It's been reported to Apple.

  • JDBC Sender Communication channel stop working

    Hi all,
    I'm facing with a strange problem: I have a db to db scenario (SQL server to Oracle) that has been tested and that was working properly.
    But when we started again our tests after some days, without doing any change, the flow didn't start anymore. The problem is in the sender jdbc communication channel:
    creating it again with a NEW NAME, and changing the configuration the flow starts again. I try to explain the checks that I did:
    - from the runtime workbench the adapter looks ok: green and making polling to the db (obviously without select any record even if we were sure that the select condition was satisfied by some records).
    - I tried to simulate some changes re-activating the communication channel.
    - clear cache
    Nothing was working,the only solution was to re-create the cc with a new name (deleting the old one and creating a new one with the same name is not working as well). But we cannot consider this solution in a production system.
    I have several scenarios like this and this problem happened three times in some months and every time with the jdbc sender from SQL server (never with the sender from Oracle).
    There is someone that has any suggestion?
    Thanks in advance,
    Luciana Agostini

    Hi Luciana,
    There is nothing that you could do in PI that could help because most of the places where there could be a problem like cache or with adapter statuses you have already looked into . For the sake of a second opinion see what prateek srivastava has to say.
    Basically a n/w connection problem or at the SQL db level.
    Rgds
    joel

  • JDBC Sender Communication Channel Problem

    Hello everybody,
    I have a sender communication channel, it is with green Functioning status in channel monitor in runtime workbench, and the log says "Process started" for every pool as configured, but it doesn't return any data to XI, and there's data to be taken, the problem started a few hours cause it was working fine, I've already executed a Complete refresh cache in SXI_CACHE, and changed the channel from Active to Inactive in ID, and Stopped and Started it again in RW, it doesn't give any errors, but it doesn't bring back any data that should be, any suggestions or maybe any information on how to refresh totally those channels????, thanks in advance.
    Regard's
    Paul

    Hi Paul
    Check for JDBC adapter locks. cpa cache locks are not relevant to your problem.
    Moreover check with the visual admin logs as well. if you can get info about the issue you have
    Thanks
    Gaurav

  • Files not getting picked up using Sender Communication Channel frm MDM sy

    Hi Experts,
    XI sender communication channel is configured to pick up any files coming from MDM system from the following path
    /XXX/XXX/mdm/mds/XXX/XXX/Material_Master/Outbound/P33/P33_R3_PORT/Ready
    Earlier we had the scenario working properly that created idocs in R3 system.(MDM>XI>R3)
    Currently i tried to test the scenario again but i don't see an entry in the sxmb_moni or tried checking whether the sender communication channel is working properly it showed polling correctly in RWB.The files are already sitting in the the above path.XI should be picking it up but don't know what the problem is?
    I also tried a test in RWB>Integration Engine>Test Message  put the payload and it was able to create idocs in R3.So i concluded there is an error in picking up message from MDM.
    Is there any log available for the commmunication channel where i can see error info of whether any files picked up or not.
    Please suggest me what all can be done to to ensure the CC is picking up the files.
    Earlier responses highly appreciated.
    B'Rgds,
    Sudhansu

    Hi,
    In addition to the RWB channel check suggested by Aamir, you should also check if the channel is
    1) Active in ID
    2) Channel is not locked in VA, if it is locked then your status in RWB will show processing started but the files wont be picked up...for more details check the unlocking procedure mentioned in this thread:
    JDBC Sender Adapter -  NOT FETCHING RECORDS -PROCESSING STARTED
    The unlocking procedure is the same for FILE and JDBC....
    Regards,
    Abhishek.

  • Regarding the JDBC Receiver Communication Channel error

    Hi All,
    While executing Jdbc to Jdbc interface, i am getting error in jdbc receiver communication channel. please see below message for error description..
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Channel 'JDBC_AccntStatements_Receiver', Service 'BS_BusinessSystem', Party '': JDBC Adapter configuration not activated
    Note: the channel status is active and activated(not in change mode).
    Any idea on this error.
    thanks,
    Madhusudhan.

    Hi
    According to your Error Message,
    Saying that JDBC Configuration is not Active.
    Once again cross check all the config is Activated & also Test your Config Using Config Test Tool in ID
    And also check in RWB-Adapter Engine-Adapter monitoring ---select the option instaled & Started. whether the JDBC Adapter is working fine or not

  • Update query not working from edit page

    Next incident with the guestbook saga:
    Successful execution of gb_entry_mstr_det_e.cfm with URL:
    http://www.benoitsystems.com/ww/bd/gb/gb_entry_mstr_det_e.cfm?call_number=14 all have database current info...this is good, but:
    textboxes
    Problem 1:
    the SELECT field does not does not reflect/display the correct option I know exists in the database
    the database field whence this SELECT object is supposed to display is a number, not text.
    now,...
    Problem 2:
    Clicked on "Update Your Entry" button at bottom of edit page (to update by going to gb_confirm_update.cfm)
    <INPUT
    TYPE="submit"
    NAME="submit"
    VALUE="Update Your Entry">
    then, arriving at the gb_confirm_update.cfm page, ...
    Got an error (below) executing the page: gb_confirm_update.cfm with resulting URL:
    http://www.benoitsystems.com/ww/bd/gb/gb_confirm_update.cfm?call_number=#gb_entryID#
    --- snippet from template gb_confirm_update.cfm
    <CFQUERY DATASOURCE="9130.ww" NAME="ww_gb_ud">
    UPDATE gb_entries
    SET
    gb_entry_stts_='form.gb_entry_stts_',
    gb_entry_nm_f='form.gb_entry_nm_f',
    gb_entry_nm_l='form.gb_entry_nm_l',
    gb_entry_nm_l_dspl_x=form.gb_entry_nm_l_dspl_x,
    gb_entry_tce='form.gb_entry_tce',
    gb_entry_tce_dspl_x=form.gb_entry_tce_dspl_x,
    gb_entry_cy='form.gb_entry_cy',
    gb_entry_stt='form.gb_entry_stt',
    gb_entry_instr='form.gb_entry_instr',
    gb_entry_m='form.gb_entry_m',
    gb_entry_del_x=form.gb_entry_del_x
    WHERE gb_entryID=form.gb_entryID
    </CFQUERY>
    --- end snippet ---
    =================================================
    Error Executing Database Query. 
    [Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 4. 
    The error occurred in E:\benoitsystems.com\wwwroot\ww\bd\gb\gb_confirm_update.cfm: line 2
    1 : <!--- <CFUPDATE DATASOURCE="9130.ww" TABLENAME="gb_entries"> --->
    2 : <CFQUERY DATASOURCE="9130.ww" NAME="ww_gb_ud">
    3 : UPDATE gb_entries
    4 : SET
    SQL    UPDATE gb_entries SET gb_entry_stts_='form.gb_entry_stts_', gb_entry_nm_f='form.gb_entry_nm_f', gb_entry_nm_l='form.gb_entry_nm_l', gb_entry_nm_l_dspl_x=form.gb_entry_nm_l_dspl_x, gb_entry_tce='form.gb_entry_tce', gb_entry_tce_dspl_x=form.gb_entry_tce_dspl_x, gb_entry_cy='form.gb_entry_cy', gb_entry_stt='form.gb_entry_stt', gb_entry_instr='form.gb_entry_instr', gb_entry_m='form.gb_entry_m', gb_entry_del_x=form.gb_entry_del_x WHERE gb_entryID=form.gb_entryID 
    DATASOURCE   9130.ww
    VENDORERRORCODE   -3010
    SQLSTATE   07002
    Please try the following:
    Check the ColdFusion documentation to verify that you are using the correct syntax.
    Search the Knowledge Base to find a solution to your problem.
    Browser   Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    Remote Address   71.233.234.226
    Referrer   http://www.benoitsystems.com/ww/bd/gb/gb_entry_mstr_det_e.cfm?call_number=14
    Date/Time   21-Jul-10 03:11 PM
    =================================================
    I have every NAME of each object matching, verbatum, in the UPDATE query, and every database field name correct in teh query also.

    I was encouraged to send snippets in an another submission, and now I believe it is best that I  "lay my cards on the table"
    Here's my hand:
    Pages in question for your review:
    http://www.benoitsystems.com/ww/bd/gb/gb_mstr.cfm  click on the pencil (the toilet will delete the record.
    http://www.benoitsystems.com/ww/bd/gb/gb_entry_mstr_det_e.cfm?call_number=21  go to bottom of webpage and click “Update Your Entry”
    http://www.benoitsystems.com/ww/bd/gb/gb_confirm_update.cfm?call_number=#gb_entryID#
    In your review of the above (should you choose) before clicking on the pencil, look at the status on the master listing record you will be editing, and feel free to edit.  Most statuses will be “Hold”
    Two dummy MS Access database tables:
    Table 1: "gb_entries" (Guestbook)
    field 1: gb_entries_ID (Autonumber - Long Integer)
    field 2: gb_entries_dt (date/time)
    field 3: gb_entries_nm_f (Text)
    field 4: gb_entries_nm_l (Text)
    field 5: gb_entries_nm_stts_ (Number field - Byte (not bit)) (fed by gb_sttsID)
    couple other text fields
    field 6: gb_entries_em (Text)
    field 7: gb_entries_cy (Text)
    field 8: gb_entries_stt (Text)
    field 9: gb_entries_nm_l_dspl (Yes/No or True/False)
    field 10: gb_entries_m (Memo type)
    Table 2: "gb_stts_rf" (Guestbook Status Reference)
    field 1: gb_sttsID (Autonumber - Long Integer)
    field 2: gb_stts (Text)
    Two Templates:
    This is the edit page (where a person with administrative access may edit the status or change the spelling for someone, etc.):
    <!--- This query fills the form with the chosen record data (except for the darned SELECT object) ---> <CFQUERY NAME="edit_entry" DATASOURCE="9130.ww"> SELECT * FROM gb_entries WHERE #call_number#=gb_entryID </CFQUERY>
    <!--- This query is for the select dropdown of guestbook status options (set to default on “Hold” from gb_nw.cfm) ---> <CFQUERY NAME="q_stts" DATASOURCE="9130.ww"> SELECT * FROM gb_stts_rf </CFQUERY>
    <HTML>
    <HEAD>
    <TITLE>Woodwindology Guestbook Entry Edit Page</TITLE> <CFOUTPUT QUERY="incl_css_bd">#incl_code#</CFOUTPUT>
    </HEAD>
    <BODY
          BGPROPERTIES="fixed">
    <DIV ALIGN="center">
    <IMG
          SRC="<CFOUTPUT>#baseurl#</CFOUTPUT>md/img/ut/ttl/pg/guestbook.gif"
          BORDER="0">
    <BR>
    <IMG
          SRC="<CFOUTPUT>#baseurl#</CFOUTPUT>md/img/ut/ttl/sub/edit_entry.gif"
          BORDER="0">
    <BR>
    Developer View
    </DIV>
    <TABLE>
          <TR>
                <TD>
                      <TABLE
                            WIDTH="100%"
                            BORDER="0"
                            CELLPADDING="5"
                            CELLSPACING="0">
          <TR>
                <TD VALIGN="top">
                      <FORM
                            NAME="f_gb_entry_mstr"
                            ACTION="gb_confirm_update.cfm?call_number=#gb_entryID#"
                            METHOD="post">
                      <CFOUTPUT QUERY="edit_entry">
                      <B>Entry ID:</B>
                      #gb_entryID#     
                      <INPUT
                            TYPE="hidden"
                            NAME="gb_entryID"
                            VALUE="#gb_entryID#">
                      <P>
                      <B>Entry Date and Time:</B>
                      #DateFormat("#gb_entry_dt#","mmmm d, yyyy")# #TimeFormat("#gb_entry_dt#","h:mm tt")#
    <P>
                      <B>Entry Status:</B>
                      <SELECT
                            NAME="gb_entry_stts_"
                            VALUE="#gb_entry_stts_#">
    </CFOUTPUT>
                            <CFOUTPUT QUERY="q_stts">
                                  <OPTION VALUE="#gb_sttsID#">#gb_stts#</OPTION>
                            </CFOUTPUT>
                      </SELECT>
                      <P>
    <CFOUTPUT QUERY="edit_entry">
                      <B>Guest's First Name:</B>
                      <INPUT
                            TYPE="text"
                            NAME="gb_entry_nm_f"
                            VALUE="#gb_entry_nm_f#">
                      <P>
                      <B>Guest's Last Name:</B>
                      <INPUT
                            TYPE="text"
                            NAME="gb_entry_nm_l"
                            VALUE="#gb_entry_nm_l#">
                      <BR>
                      Display Last Name:
                      <INPUT
                            TYPE="radio"
                            NAME="gb_entry_nm_l_dspl_x"
                            VALUE="Yes">
                      Do Not Display Last Name:
                      <INPUT
                            TYPE="radio"
                            NAME="gb_entry_nm_l_dspl_x"
                            VALUE="no">
                            <P>
                            <B>Your Email Address:</B><BR>
                            <INPUT
                                  TYPE="text"
                                  NAME="gb_entry_tce"
                                  VALUE="#gb_entry_tce#"
                                  SIZE="40"
                                  MAXLENGTH="40">
                      <BR>
                      Uncheck the box to keep email private:
                      <INPUT
                            TYPE="checkbox"
                            NAME="gb_entry_tce_dspl_x"
                            VALUE="#gb_entry_tce_dspl_x#">
                      <P>
                      <SPAN CLASS="emph01">*</SPAN> Your City:
                      <INPUT
                            TYPE="text"
                            NAME="gb_entry_cy"
                            VALUE="#gb_entry_cy#"
                            SIZE="30">
                      <P>
                      <SPAN CLASS="emph01">*</SPAN> Your State:
                      <INPUT
                            TYPE="text"
                            NAME="gb_entry_stt"
                            VALUE="#gb_entry_stt#"
                            SIZE="30">
                      <BR>
                            <B>Instruments Played:</B>
                      <BR>
                            <TEXTAREA
                                  COLS="45"
                                  MAX="50"

  • SQL Update Query not Working...

      This was working until we had to encrypt the main key.  This has been replaced with an existing autonum field.  When I test the T-SQL query alone on SQL Server,  it works.   But through the ColdFusion progam, nothing happens.  Its as if the submit button reference to this is not working or is ignored.
    Any ideas?
    Here is the code clip were the issue may be occuring.
    <cfparam name="URL.SEQNO" default="1">
    <cfset CurrentPage=GetFileFromPath(GetTemplatePath())>
    <cfif IsDefined("FORM.MM_UpdateRecord") AND FORM.MM_UpdateRecord EQ "formUpdateRecord">
      <cfquery name="Section301MI" datasource="301dsn">
      DECLARE @str NVARCHAR(128)
      SET @str = #FORM.SSN#;
      OPEN SYMMETRIC KEY SSN_Key_01
       DECRYPTION BY CERTIFICATE anjalitest
      UPDATE dbo.TableDataRecords SET SSN=
      <cfif IsDefined("FORM.SSN") AND #FORM.SSN# NEQ "">
        EncryptByKey(Key_GUID('SSN_Key_01'),@str)
          <cfelse>
          NULL
      </cfif>
      , verifySSN =
      <cfif IsDefined("FORM.SSN") AND #FORM.SSN# NEQ "">
        EncryptByKey(Key_GUID('SSN_Key_01'),@str)
          <cfelse>
          NULL
      </cfif>
      , LastName=
      <cfif IsDefined("FORM.LastName") AND #FORM.LastName# NEQ "">
        '#FORM.LastName#'
          <cfelse>
          NULL
      </cfif>
      , FirstName=
      <cfif IsDefined("FORM.FirstName") AND #FORM.FirstName# NEQ "">
        '#FORM.FirstName#'
          <cfelse>
          NULL
      </cfif>
      , MiddleInitial=
      <cfif IsDefined("FORM.MiddleInitial") AND #FORM.MiddleInitial# NEQ "">
        '#FORM.MiddleInitial#'
          <cfelse>
          NULL
      </cfif>
      , DOB=
      <cfif IsDefined("FORM.DOB") AND #FORM.DOB# NEQ "">
        '#FORM.DOB#'
          <cfelse>
          NULL
      </cfif>
      , BenefitProgram=
      <cfif IsDefined("FORM.BenefitProgram") AND #FORM.BenefitProgram# NEQ "">
        #FORM.BenefitProgram#
          <cfelse>
          NULL
      </cfif>
      , MedCessDate=
      <cfif IsDefined("FORM.MedCessDate") AND #FORM.MedCessDate# NEQ "">
        '#FORM.MedCessDate#'
          <cfelse>
          NULL
      </cfif>
      , ProgramDecision=
      <cfif IsDefined("FORM.ProgramDecision") AND #FORM.ProgramDecision# NEQ "">
        #FORM.ProgramDecision#
          <cfelse>
          NULL
      </cfif>
      , ProgramDecisionDate=
      <cfif IsDefined("FORM.ProgramDecisionDate") AND #FORM.ProgramDecisionDate# NEQ "">
        '#FORM.ProgramDecisionDate#'
          <cfelse>
          NULL
      </cfif>
      , ProgramType=
      <cfif IsDefined("FORM.ProgramType") AND #FORM.ProgramType# NEQ "">
        #FORM.ProgramType#
          <cfelse>
          NULL
      </cfif>
      , ProgAllowStartDate=
      <cfif IsDefined("FORM.ProgAllowStartDate") AND #FORM.ProgAllowStartDate# NEQ "">
        '#FORM.ProgAllowStartDate#'
          <cfelse>
          NULL
      </cfif>
      , ProgAllowCompDate=
      <cfif IsDefined("FORM.ProgAllowCompDate") AND #FORM.ProgAllowCompDate# NEQ "">
        '#FORM.ProgAllowCompDate#'
          <cfelse>
          NULL
      </cfif>
      , DiaryDate=
      <cfif IsDefined("FORM.DiaryDate") AND #FORM.DiaryDate# NEQ "">
        '#FORM.DiaryDate#'
          <cfelse>
          NULL
      </cfif>
      , DenialReason=
      <cfif IsDefined("FORM.DenialReason") AND #FORM.DenialReason# NEQ "">
        #FORM.DenialReason#
          <cfelse>
          NULL
      </cfif>
      , TermDecisionDate=
      <cfif IsDefined("FORM.TermDecisionDate") AND #FORM.TermDecisionDate# NEQ "">
        '#FORM.TermDecisionDate#'
          <cfelse>
          NULL
      </cfif>
      , TermReason=
      <cfif IsDefined("FORM.TermReason") AND #FORM.TermReason# NEQ "">
        #FORM.TermReason#
          <cfelse>
          NULL
      </cfif>
      , Remarks=
      <cfif IsDefined("FORM.Remarks") AND #FORM.Remarks# NEQ "">
        '#FORM.Remarks#'
          <cfelse>
          NULL
      </cfif>
      , EncryptNatIDNum1 = NULL
      , EncryptNatIDNum2 = NULL
      WHERE SEQNO=#URL.SEQNO#
       CLOSE SYMMETRIC KEY SSN_Key_01;
      </cfquery>
      <cflocation url="modifysuccess.cfm">
    </cfif>

    1) This is almost a clone to the Insert form that works.  The main differences are It selects the matching record for editing and then Updates.
    2) The CFDUMP gives me results when I put it in the logic section that responds to the Form Submit button.  But not at the top of the code.
      I added the CFABORT so I could see a result.
    <cfif (IsDefined("FORM.MM_UpdateRecord") AND FORM.MM_UpdateRecord EQ "formUpdateRecord") OR (IsDefined("FORM.UpdateRecord") AND FORM.UpdateRecord EQ "Update Record")>
       <cfdump var="#form#">
      <cfquery name="Section301MI" datasource="301dsn" username="section301db" password="testdb">
      DECLARE @str NVARCHAR(128)
      <cfif IsDefined("FORM.SSN")>
       SET @str = #FORM.SSN#;
      </cfif>
      OPEN SYMMETRIC KEY SSN_Key_01
       DECRYPTION BY CERTIFICATE anjalitest
      UPDATE dbo.TableDataRecords SET verifySSN=                     <<This is only displayed, but not modified.  Should this even be in the update?
      <cfif IsDefined("FORM.SSN") AND #FORM.SSN# NEQ "">
        EncryptByKey(Key_GUID('SSN_Key_01'),@str)
          <cfelse>
          NULL
      </cfif>
      , [LastName]=
      <cfif IsDefined("FORM.LastName") AND #FORM.LastName# NEQ "">
        '#FORM.LastName#'
          <cfelse>
          NULL
      </cfif>
      , [FirstName]=
      <cfif IsDefined("FORM.FirstName") AND #FORM.FirstName# NEQ "">
        '#FORM.FirstName#'
          <cfelse>
          NULL
      </cfif>
      , MiddleInitial=
      <cfif IsDefined("FORM.MiddleInitial") AND #FORM.MiddleInitial# NEQ "">
        '#FORM.MiddleInitial#'
          <cfelse>
          NULL
      </cfif>
      , DOB=
      <cfif IsDefined("FORM.DOB") AND #FORM.DOB# NEQ "">
        '#FORM.DOB#'
          <cfelse>
          NULL
      </cfif>
      , BenefitProgram=
      <cfif IsDefined("FORM.BenefitProgram") AND #FORM.BenefitProgram# NEQ "">
        #FORM.BenefitProgram#
          <cfelse>
          NULL
      </cfif>
      , MedCessDate=
      <cfif IsDefined("FORM.MedCessDate") AND #FORM.MedCessDate# NEQ "">
        '#FORM.MedCessDate#'
          <cfelse>
          NULL
      </cfif>
      , ProgramDecision=
      <cfif IsDefined("FORM.ProgramDecision") AND #FORM.ProgramDecision# NEQ "">
        #FORM.ProgramDecision#
          <cfelse>
          NULL
      </cfif>
      , ProgramDecisionDate=
      <cfif IsDefined("FORM.ProgramDecisionDate") AND #FORM.ProgramDecisionDate# NEQ "">
        '#FORM.ProgramDecisionDate#'
          <cfelse>
          NULL
      </cfif>
      , ProgramType=
      <cfif IsDefined("FORM.ProgramType") AND #FORM.ProgramType# NEQ "">
        #FORM.ProgramType#
          <cfelse>
          NULL
      </cfif>
      , ProgAllowStartDate=
      <cfif IsDefined("FORM.ProgAllowStartDate") AND #FORM.ProgAllowStartDate# NEQ "">
        '#FORM.ProgAllowStartDate#'
          <cfelse>
          NULL
      </cfif>
      , ProgAllowCompDate=
      <cfif IsDefined("FORM.ProgAllowCompDate") AND #FORM.ProgAllowCompDate# NEQ "">
        '#FORM.ProgAllowCompDate#'
          <cfelse>
          NULL
      </cfif>
      , DiaryDate=
      <cfif IsDefined("FORM.DiaryDate") AND #FORM.DiaryDate# NEQ "">
        '#FORM.DiaryDate#'
          <cfelse>
          NULL
      </cfif>
      , DenialReason=
      <cfif IsDefined("FORM.DenialReason") AND #FORM.DenialReason# NEQ "">
        #FORM.DenialReason#
          <cfelse>
          NULL
      </cfif>
      , TermDecisionDate=
      <cfif IsDefined("FORM.TermDecisionDate") AND #FORM.TermDecisionDate# NEQ "">
        '#FORM.TermDecisionDate#'
          <cfelse>
          NULL
      </cfif>
      , TermReason=
      <cfif IsDefined("FORM.TermReason") AND #FORM.TermReason# NEQ "">
        #FORM.TermReason#
          <cfelse>
          NULL
      </cfif>
      , Remarks=
      <cfif IsDefined("FORM.Remarks") AND #FORM.Remarks# NEQ "">
        '#FORM.Remarks#'
          <cfelse>
          NULL
      </cfif>
      , EncryptNatIDNum1 = NULL
      , EncryptNatIDNum2 = NULL
      WHERE SEQNO=#URL.SEQNO#
       CLOSE SYMMETRIC KEY SSN_Key_01;
      </cfquery>
    <cfabort>
      <cflocation url="modifysuccess.cfm">
    </cfif>

  • Update query not working thru procedure

    Hi
    I need to update one table column based on another table column.
    thru sql statement it is working, but same statement is not working thru stored procedure.
    update target_table a set a.col2 = (select col2 from source_table b where a.id = b.id);
    Above statement is working thru sql statement ,but it is not working thru procedure.
    So Please on this.
    Regards,
    Venkat

    post the code for the procedure. Kindly use before and after the procedure statement!                                                                                                                                                                                       

  • Select for update query not working..

    hi i am tying to get this bit of ncode to work so i can then go to the next part of demonstrating a deadlock between two transactions. however i cannot go any further has my initial code does not work at all. here it goes
    //////////User A////////////////////////////////
    DECLARE
    v_salary squad.salary%TYPE := 300;
    v_pos squad.position%TYPE := 'Forward';
    BEGIN
    UPDATE squad
    SET salary = salary + v_salary
    WHERE sname = 'Henry';
    FOR UPDATE;
    UPDATE squad
    SET position = v_pos
    WHERE sname = 'Fabregas';
    COMMIT;
    END;
    //////////////////////User B/////////////
    DECLARE
    v_salary squad.salary%TYPE := 200;
    v_pos squad.position%TYPE := 'Forward';
    BEGIN
    UPDATE squad
    SET position = v_pos
    WHERE sname = 'Fabregas';
    FOR UPDATE;
    UPDATE squad
    SET salary = salary + v_salary
    WHERE sname = 'Henry';
    FOR UPDATE;
    COMMIT;
    END;
    Basicly user a creats a lock and so does user b, user b enquires a lock from user a and vice versa i.e. a deadlock

    Hi
    You get the following error:
    ORA-06550: line 8, column 7:
    PLS-00103: Encountered the symbol "UPDATE" when expecting one of the following:
    because the FOR UPDATE; is invalid in your statement.
    Try this:
    //////////User A////////////////////////////////
    DECLARE
    v_salary squad.salary%TYPE := 300;
    v_pos squad.position%TYPE := 'Forward';
    v_n number;
    BEGIN
    UPDATE squad
    SET salary = salary + v_salary
    WHERE sname = 'Henry';
    select 1 into v_n from squad
    WHERE sname = 'Fabregas'
    for update;
    UPDATE squad
    SET position = v_pos
    WHERE sname = 'Fabregas';
    COMMIT;
    END;
    //////////////////////User B/////////////
    DECLARE
    v_salary squad.salary%TYPE := 200;
    v_pos squad.position%TYPE := 'Forward';
    v_n number;
    BEGIN
    UPDATE squad
    SET position = v_pos
    WHERE sname = 'Fabregas';
    select 1 into v_n from squad
    WHERE sname = 'Henry'
    for update;
    UPDATE squad
    SET salary = salary + v_salary
    WHERE sname = 'Henry';
    COMMIT;
    END;
    To syncronize the blocks first in a SQLPlus call these two statements:
    select 1 from squad WHERE sname = 'Fabregas' for update;
    select 1 from squad WHERE sname = 'Henry' for update;
    After this start the user A code in another SQLPlus, and start the user B code. After this call rollback or commit in the first sqlplus.
    Ott Karesz
    http://www.trendo-kft.hu

  • The streamer (automatic updating) does not work with the last version

    the automatic updating of screens (streamers) do not work anymore with the new version. I use Windows sp3.

    the automatic updating of screens (streamers) do not work anymore with the new version. I use Windows sp3.

  • JDBC Sender Communication Channel Error

    Hi,
    We are facing the below error in Sender JDBC communication channels:
    The JDBC driver returned the following error message: 'java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]No ResultSet set was produced.'
    We are getting this error in channels which are using stored procedures but not in channels using direct sql query statements.
    The database is not having any data currently.
    So is the above error because of no data or some other issue?
    Any ideas?
    I have searched the sdn but didnt find anything appropriate.so posting a new thread.
    Thanks,
    Anu.

    Can you try again after filling in few records in the DB? I am suspecting the way SP has been written ... check if it is required to return value from SP?

  • Testing the JDBC adapter communication channel

    Hi
    I've created an interface which gets the sender payload using a JDBC adapter.
    Basis have installed the JDBC driver for the database where the data resides
    I've configured the communication channel to poll every 10 minutes
    So far nothing appears to be happening
    Can I test the communication channel independantly?
    Is there a procedure to make the communication channel active?
    Is there an admin area where I can see if there is an issue with the communication channel.
    I've checked SMQ1, SMQ2 and SXMB_MONI and there are no messages
    I've also checked runtime workbench => adapter monitoring => communication channels but I get an empty list
    all help will be very much appreciated

    Hi Geoff,
    It is not possible to check only the communication channel but we can check the complete scenario confogured in Integration Directory.
    1. Open ID.
    2. Goto Tools.
    3. Provide the sender and the receiver parameters.
    4. Also provide the payload in the Payload section.
    5. Now, goto Test Configuration
    6. Select Run.
    This shows you, if there are any issues in the configuration.
    Thanks,

  • None of the file Sender Communication Channels are wotking in Prod-Urgent

    facing a wierd situation, since yesterday all of my File Sender Comm Channels have stopped picking up files.This is in Production and was working fine day before.When I check in Comm channel monitoring the Channels are started and Functioning and also shows me that they are polling for the files.But no file is picked though files exist in the directory.These channels have been working fine since months and nothing had been changed since then.Suddenly all of them stopped picking up files.
    I have about 10 Comm Channels that pick files, Is this related to Adapter Engine....any suggestions on this would be really apprecated.
    Thank You.

    Hi!
    Check access rights on your files. Try to set them to 777 (using chmod). Maybe this will help.
    Problem is, when the XI does not have rights for picking up files, you see no errror message in CC monitoring and everything seems to be ok, but it is not..
    We faced the same problem.. And we figured out, that our partner started to upload files with different access rights.
    Peter

  • Having problems on removing old apps from App Store update is not working wright the change made my iPad go crazy

    Having problemes with new up date can't delete apps from iBook nor App Store everything change and it stink.

    You need to describe your problem and what is happening in a lot more detail than that, if you wish for help.
    Pete

Maybe you are looking for

  • Install Boot Camp on 3rd drive (3TB)?

    I just installed a new 3TB drive in my early 2008 Mac Pro, which is runing ML.  I would like to use Boot Camp to install Windows 7 on a 300 GB partition on that new drive and to have it bootable.  I would like to retain the rest of the drive for use

  • Accessing a gui component directly via getSource()

    Hi, to access a gui component I can access it by getting its object variable and casting it to its class type, e.g.: public class Tab02 extends JFrame {      JTable tab = new JTable (rows, head);      JTextField txt = new JTextField ("dimensions");  

  • Why only in firefox imported javascript source code doesn't run?

    The html source code properly exhibits a pop-up box as expected in almost all browsers(chrome,ie11,opera,android,...) but only it fails in Firefox... Can you explain why this happens so? How to make the script in question get work that is loaded from

  • In my integration directory adapter engine parameter was not appear forJ2EE

    In my integration directory adapter engine parameter was not appear forJ2EE engine.It appears for IDOC and HTTP Adapters. Please clarify ASAP.. Thanks

  • Bookmarks / Folders: How Do They Work

    I have made folders for my bookmarks, and I thought I'd be able to see them in my bookmakrs menu, similar to how the bookmarks bar menu works by expanding... is that possible?