"System error: Move error" on comparing DATE rows with literal timestamps

say, I have a table consisting of a DATE and a TIMESTAMP column:
  create table test (
  d date,
  ts timestamp
now the problem:
when I try to retrieve values using a statement like this (using MaxDB's SQL Studio or via JDBC):
  select * from test
  where  d >= {ts '2007-06-18 12:19:45'}
it produces the following error:
  General error;-9111 POS(36) System error: Move error
So, I am not able to compare DATE columns with timestamp values?
In contrast, the following combinations all work flawlessly:
  select * from test
  where  d >= {ts '2007-06-18 12:19:45'}
  select * from test
  where ts >= {d '2007-06-18'}
  select * from test
  where  ts >= {ts '2007-06-18 12:19:45'}
Thus, the opposite direction (comparing a TIMESTAMP column to a literal date value) apparently poses no problem to the MaxDB database engine.
Unfortunately, I cannot just resort to "truncating" the timestamp values and using the {d ...}-Syntax, because I am using Apache's Torque object-relational mapper which generates the statement like this and feeds the JDBC API with it. Anyway, I deem this a bug in MaxDB, especially with respect to the quite obscure error message.
I can reproduce this issue on both MaxDB 7.5 and 7.6 server, using client software (SQL Studio), version 7.5 and 7.6 as well.
Does anybody know this problem?
TIA,
Alex

Hi,
this is a new bug and we will fix it with one of the next versions of MaxDB.
You can watch the proceeding in our internal bug tracking system:
http://www.sapdb.org/webpts?wptsdetail=yes&ErrorType=0&ErrorID=1151609
Thank you for reporting it.
Kind regards
Holger

Similar Messages

  • Can't compare a row with other rows within a table.. (many to many compare)

    Hi all..
    I am very new to PL/SQL..
    I need to travers through a table for comparing it's rows with in the table with other rows. For this I am trying to use bellow Pl/sql.
    create or replace compare()
    Declare
    VAR_HIT CHAR(1);
    SEARCH_RECORD_DATA UDB.table1%ROWTYPE;
    CANDIDATE_RECORD_DATA UDB.table1%ROWTYPE;
    CURSOR SEARCH_RECORDS_CURSOR IS SELECT * FROM UDB.table1 order by registration_id;
    CURSOR CANDIDATE_RECORDS_CURSOR IS SELECT * FROM UDB.table1 order by registration_id;
    BEGIN
    FOR SEARCH_RECORD_DATA IN SEARCH_RECORDS_CURSOR LOOP
    FOR CANDIDATE_RECORD_DATA IN CANDIDATE_RECORDS_CURSOR LOOP
    IF (CANDIDATE_RECORD_DATA.DECISION='P') THEN
    VAR_HIT:='y';
    IF(CANDIDATE_RECORD_DATA.FIRST_NAME!='unknown') AND (CANDIDATE_RECORD_DATA.FIRST_NAME!=SEARCH_RECORD_DATA.FIRST_NAME) THEN
    VAR_HIT:='n';
    ELSIF(CANDIDATE_RECORD_DATA.LAST_NAME!='unknown') AND (CANDIDATE_RECORD_DATA.LAST_NAME!=SEARCH_RECORD_DATA.LAST_NAME) THEN
    VAR_HIT:='n';
    ELSIF(CANDIDATE_RECORD_DATA.BIRTH_DATE!='unknown') AND (CANDIDATE_RECORD_DATA.BIRTH_DATE!=SEARCH_RECORD_DATA.BIRTH_DATE) THEN
    VAR_HIT:='n';
    ELSIF(CANDIDATE_RECORD_DATA.GENDER!='U') AND (CANDIDATE_RECORD_DATA.GENDER!=SEARCH_RECORD_DATA.GENDER) THEN
    VAR_HIT:='n';
    ELSIF(CANDIDATE_RECORD_DATA.FATHER_NAME!='unknown') AND (CANDIDATE_RECORD_DATA.FATHER_NAME!=SEARCH_RECORD_DATA.FATHER_NAME) THEN
    VAR_HIT:='n';
    ELSIF (CANDIDATE_RECORD_DATA.MOTHER_NAME!='unknown') AND (CANDIDATE_RECORD_DATA.MOTHER_NAME!=SEARCH_RECORD_DATA.MOTHER_NAME) THEN
    VAR_HIT:='n';
    END IF;
    IF(VAR_HIT='y') THEN
    INSERT INTO UDB.BIO_DI_HIT_RESULT(REGISTRATION_ID,SEARCH_ID,HIT_CANDIDATE_ID,SEARCH_DETAILS,CANDIDATE_DETAILS) VALUES (SEARCH_RECORD_DATA.REGISTRATION_ID,SEARCH_RECORD_DATA.EGM_NO,CANDIDATE_RECORD_DATA.EGM_NO,VAR_SEARCH_DETAILS,VAR_CANDIDATE_DETAILS);
    UPDATE UDB.BIO_RECORDS_DEMOGRAPHICS SET DECISION='D';
    END IF;
    END IF;
    END LOOP;
    commit;
    END LOOP;
    END;
    Outer loop is working fine (it is raversing throughout the table) (say for 8000 records 8000 times)
    But Enner loop is not working fine e.i. it's running just for 8000 times for 8000 records. while it should run more then 8000 time..
    Can any one help me..
    Is the way of using two cursor on one table for comparing each row of record is correct????????? :(

    Finally I come up with this:
    INSERT INTO UDB.BIO_DI_HIT_RESULT(REGISTRATION_ID,SEARCH_ID,HIT_CANDIDATE_ID,SEARCH_DETAILS,CANDIDATE_DETAILS)
    SELECT SEARCH.REGISTRATION_ID, SEARCH.Key_NO,CANDIDATE.Key_NO,
    'First name='||SEARCH.FIRST_NAME||',Last name='||SEARCH.LAST_NAME||',Birth date='||SEARCH.BIRTH_DATE||',Gender='||SEARCH.GENDER||',Fathers name='||SEARCH.FATHER_NAME||',Mother name='||SEARCH.MOTHER_NAME,
    'First name='||CANDIDATE.FIRST_NAME||',Last name='||CANDIDATE.LAST_NAME||',Birth date='||CANDIDATE.BIRTH_DATE||',Gender='||CANDIDATE.GENDER||',Fathers name='||CANDIDATE.FATHER_NAME||',Mother name='||CANDIDATE.MOTHER_NAME
    FROM UDB.BIO_RECORDS_DEMOGRAPHICS SEARCH,UDB.BIO_RECORDS_DEMOGRAPHICS CANDIDATE
    WHERE (SEARCH.FIRST_NAME!='unknown' OR SEARCH.LAST_NAME!='unknown' OR SEARCH.BIRTH_DATE!='unknown' OR SEARCH.GENDER!='unknown' OR SEARCH.FATHER_NAME!='unknown' OR SEARCH.MOTHER_NAME!='unknown')
    AND SEARCH.REGISTRATION_ID != CANDIDATE.REGISTRATION_ID
    AND SEARCH.REGISTRATION_ID < CANDIDATE.REGISTRATION_ID
    AND (SEARCH.FIRST_NAME='unknown' OR CANDIDATE.FIRST_NAME IN (SEARCH.FIRST_NAME,'unknown'))
    AND (SEARCH.LAST_NAME='unknown' OR CANDIDATE.LAST_NAME IN (SEARCH.LAST_NAME,'unknown'))
    AND (SEARCH.BIRTH_DATE='unknown' OR CANDIDATE.BIRTH_DATE IN (SEARCH.BIRTH_DATE,'unknown'))
    AND (SEARCH.GENDER='U' OR CANDIDATE.GENDER IN (SEARCH.GENDER,'U'))
    AND (SEARCH.BIRTH_DATE='unknown' OR CANDIDATE.BIRTH_DATE IN (SEARCH.BIRTH_DATE,'unknown'))
    AND (SEARCH.FATHER_NAME='unknown'OR CANDIDATE.FATHER_NAME IN (SEARCH.FATHER_NAME,'unknown'))
    AND (SEARCH.MOTHER_NAME='unknown' OR CANDIDATE.MOTHER_NAME IN (CANDIDATE.MOTHER_NAME,'unknown'))
    ORDER BY SEARCH.REGISTRATION_ID;
    Now it realy meet all my final table requirement.. I am happy.. :)
    But again last requirement is like..
    In the final BIO_DI_HIT_RESULT table I need to add one more column named as match_count
    This column will have values of total no. of exact match field (not unknown) for each records in the BIO_DI_HIT_RESULT.....
    One way of duing this is--
    Step1: I will use a cursor for traversing through each of the rows in BIO_DI_HIT_RESULT.
    Step 2: And based on count of matches in search_details(substring) and candiate_details(substring) I update each and every rows of the table.
    It will be very slow.. And for records like 2 million records.. I can't think of this idea. :(
    Sooooo,, Is there ANY BETTER WAY OF DOING THIS AS WELL.. BETTER MEANS FAST WAY.. :(
    Thanks in advance....
    Edited by: user13367608 on Jan 8, 2011 2:13 AM

  • Getting 401 error while creating a Report Data Source with MOSS 2010 Foundation

    I have setup SQL Server 2008 R2 Reporting Services with SharePoint 2010 Foundation in SharePoint integrated mode. SharePoint Foundation is in machine 1 whereas SQL Server 2008 R2 and SSRS Report Server are in machine 2. While configuring Reporting
    Services - Sharepoint integration, I have used Authentication Mode as "Windows Authentication" (I need to use Kerberos).
    My objective is to setup a Data Connection Library, a Report Model Library, and a Reports Library so that I can upload a Report Data Source, some SMDLs, and a few Reports onto their respective libraries.
    While creating the top level site, "Business Intelligence Center" was not available for template selection since SharePoint Foundation is being used. I therefore selected "Blank Site" as the template.
    While creating a SharePoint Site under the top level site, for template selection I again had to select "Blank Site".
    I then proceeded to create a library for the data connection. Towards this, I created a new document library and selected "Basic page" as the document template. I then went to Library Settings for this newly created library and clicked on
    Advanced Settings. In the Advanced Settings page, for "Allow management of content types?" I selected "Yes". Then I clicked on "Add from existing content types" and selected "Report Data Source". I deleted the existing
    "Document" content type for this library.
    Now I wanted to created a Data Connection in the above Data Connection library. For this when I clicked on "New Document" under "Documents" of "Library Tools" and selected "Report Data Source", I got the error "The
    request failed with HTTP status
    401: Unauthorized.".
    Can anybody tell me why I am getting this error?
    Note: I have created the site and the library using SharePoint Admin account.

    Hi,
    Thank you for your detailed description. According to the description, I noticed that the report server was not part of the
    SharePoint farm. Add the report server to the
    SharePoint farm and see how it works.
    To join a report server to a SharePoint farm, the report server must be installed on a computer that has an instance of a SharePoint product or technology. You can install the report server before or after installing the SharePoint product
    or technology instance.
    More information, see
    http://msdn.microsoft.com/en-us/library/bb283190.aspx
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Error message when using Spry Data set with XML

    Hi,
    I have what i see as a big problem, might just be me being
    dumm, but here we go.
    When I try to use the feature of spry XML Data Set and insert
    spry table I get error message when trying it in IE 7.
    There are even a problem when I use fireworks automated slide
    show function, where you can choose to use the Spry/XML gallery
    feature.
    The error message I get everytime (incl the auto gallery in
    fireworks) is:
    The tag: "html" doesn't have an attribute: "xmlns:spry" in
    currently active versions.[XHTML 1.0 transitional]
    The tag: "div" doesn't have an attribute: "spry:region" in
    currently active versions.[XHTML 1.0 transitional]
    The tag: "th" doesn't have an attribute: "spry:sort" in
    currently active versions.[XHTML 1.0 transitional]
    and so on.
    What´s wrong?!

    Hello barvid,
    Ok, let's take each problem step by step:
    1. The first error you see in the browser: " Exception while
    loading ..." normally appears when you try to load files that are
    not permitted by the browser security model. This means the XML
    file you try to load is located on a different server than your
    HTML which is not allowed. The browser is not permitting to load
    any files that are not in the same domain as the current page
    because of the complex security risks. You'll have to either get
    the XML file from its original location and save it in your website
    or use a proxy on your web server that should request that file
    from the external server and send it to the browser as an XML from
    the same domain as the HTML origin.
    1.2 The "Exception while loading ..." error you see is a
    generic error and my previous advise is based on my experience. In
    case this is not your scenario you'll have to open the SpryData.js
    and around line 112 you'll see the following code:
    Spry.Debug.reportError("Exception caught while loading " +
    url + ": " + e);
    Please change this line with the following line of code:
    Spry.Debug.reportError("Exception caught while loading " +
    url + ": " + (e.message?e.message:e));
    to obtain a more verbose error message that may clarify the
    reasons of your errors.
    2. The problems you describe are not browser errors but they
    are w3c validation errors. At this point the XHTML standard allows
    every application that define custom namespace attributes to also
    link a DTD to the page so the page to continue to be valid.
    Unfortunately at this point this feature is not correctly supported
    by the FF and IE so we wrote an articles about how you should
    link
    the Spry DTD to your page so the validator understand the
    custom attributes Spry use. You'll find inside the full description
    of the problems and all the technical details you'll need to know
    to solve this issue.
    Regards,
    Cristian

  • Trying to compare date columns with differing formats...

    I have an app that created a series of tables via ODBC using ANSI standard datatypes. For most, this isn't a problem, but one in particular is driving me crazy: TIMESTAMP. In Oracle, it shows up as a TIMESTAMP(6). I don't want to mess with the app's tables, so every time there is an insert to their tables, I have a trigger which creates records in corresponding tables I build using standard Oracle datatypes (DATE).
    I have one function that gets called by several of the triggers that retrieves me a specific row to update, and it uses the value from this TIMESTAMP field in the WHERE clause like this (the value is passed into the function as a parmeter):
    SELECT TIMECARD_ID INTO tc_id FROM TS_TIMECARD_MAIN
    WHERE EMP_ID = e_id AND VEHICLE_ID = v_id
    AND IN_TIME <= logout AND OUT_TIME IS NULL; <----
    I seem to have a formatting issue, because unless the "logout" date is a full day later than IN_TIME, it doesn't pull the record (my code does a check to verify there is only one record matching the criteria but I haven't posted it all here for simplicity). I need it to be able to select the correct record with a one second difference.
    I have NLS_TIMESTAMP_FORMAT set to 'YYYY-MM-DD HH24.MI.SS.FF' and NLS_DATE_FORMAT set to 'YYYY-MM-DD HH24:MI:SS'. The relevant describes are included below. Can anyone suggest how to format my query (I expect to use the TO_DATE and TO_CHAR to compensate, but haven't found the right set) so that it resolves properly? Date math is a pain, but it is critical to my purposes.
    Vendor's table
    FIELD3_DATETIME TIMESTAMP(6)
    My table
    TIMECARD_ID NOT NULL NUMBER(10)
    EMP_ID NOT NULL NUMBER(10)
    IN_TIME DATE
    OUT_TIME DATE
    VEHICLE_ID NUMBER(10)
    Also, some sample default output from each table - not sure why formatting is wierd on my table.
    Vendor's table
    UNIQKEY STATUS FORM_ID VEHICLE_NUMBER CREATED_DATETIME
    11515780978071234994451 0 21423 24005 28-JUN-06 05.10.14.000000 PM
    CHECK_DVIR NEW_DVIR SERVICEABLE DETAILS
    1 1 1 everything ok
    INSPECTION_TIME ODOMETER LATITUDE LONGITUDE
    28-JUN-06 05.12.12.000000 PM 119885.1 44.7889490425587 -95.2167677879333
    My table
    TIMECARD_ID EMP_ID IN_TIME OUT_TIME VEHICLE_ID
    5 20044 28-JUN-06 24005

    That sounds a bit complicated. If you post your query I'm sure there will be a simpler approach, perhaps something like
    where  date_timestamp between cast(sysdate -30 as timestamp) and systimestampor if you prefer
    where  date_timestamp between systimestamp - interval '30' day and systimestampas discussed on Re: convert timestamp to date.

  • AppleScriptObjC - date works with literal, but not otherwise

    Hi List
    In AppleScriptEditor, the following code displays the correct date
    set dateString to "Montag, 7. Dezember 2009 00:00:00"
    set myDate1 to date dateString
    try
    display dialog "myDate1: " & myDate1 as string
    on error
    display dialog "ERROR: read myDate1"
    end try
    In AppleScriptObjC however, it displays the ERROR message.
    When i change the first two lines to one single line:
    set myDate1 to date "Montag, 7. Dezember 2009 00:00:00"
    There is no Error Message.
    I don't quite understand why this is the case. Can anyone help me please?
    Thanks, Bernhard

    Hello Bernhard Ammann,
    Hmm. In my test, mkDate(2010, 5, 1, 0) returns date "Saturday, 01. May 2010 00:00:00".
    Perhaps you're confusing it with mkDate(2010, 1, 5, 0), which returns date "Tuesday, 05. January 2010 00:00:00", aren't you ?
    As for the said particular assignment of day number in the mkDate() handler, it is an old way to let date overflow to target month. The last mkDate() handler is indeed equivalent to the one in the following code, which illustrates the overflow :
    -- e.g.
    return mkDate(2010, 5, 1, 0) -- date "Saturday, 01. May 2010 00:00:00"
    on mkDate(y, m, d, s)
    integer y, m, d, s : year, month number, day, seconds from midnight
    return date : AppleScript date object
    tell (current date) -- e.g. 2009-12-24
    set its month to January -- e.g. 2009-01-24
    set day to 1 -- e.g. 2009-01-01
    set year to y -- e.g. 2010-01-01
    set day to m * 28 -- e.g. 2010-01-(5*28) = 2009-05-20 (overflowed)
    set day to d -- e.g. 2010-05-01
    set time to s
    return its contents
    end tell
    end mkDate
    This round-about way to overflow the date to target month is for backward compatibility with older versions of AppleScript where month cannot be set by integer but only by month constant. In AppleScript 1.10 (OSX10.4) or later, you can set the month to integer value and may use the following handler :
    (* for AppleScript 1.10 (OSX 10.4) or later *)
    return mkDate(2010, 5, 1, 0)
    on mkDate(y, m, d, s)
    integer y, m, d, s : year, month number, day, seconds from midnight
    return date : AppleScript date object
    tell (current date)
    set day to 1
    set {year, its month, day, time} to {y, m, d, s}
    return its contents
    end tell
    end mkDate
    *The statement 'set day to 1' is still required here to guarantee the following month assignment will not cause day overflow. (E.g. if current date is January 31 and target month (m) is 2, setting its month to 2 without setting the day to 1 in advance will result in March 3 because there's no February 31, 2010.)
    Hope this may be of some help,
    Hiroto

  • Using a table alias to identify row with max timestamp for same ID, syntax?

    Hello experts
    I have created an alias of a table, so now I have table T1 and its alias T2. (T2 is not joined to anything in the universe currently)
    I need to identify the row from T1 with the maximum timestamp for any given ID:
    ID                       Timestamp
    1                         2011-01-24 16:26:00.000
    1                         2011-02-24 14:21:00.000
    1                         2011-02-24 13:49:00.000
    I couldn't find anything on the SAP forums, but elsewhere suggested my approach should be thus:
    1) Create a table alias (leave it free standing i.e. not joined) - DONE
    2) For T1, create a dimension object named Timestamp - DONE
    3) Create a seperate predefined condition icon funnel / filter - in the where clause:
    T1.timestamp = (SELECT max(T2.timestamp) from T2 WHERE
    T1.Key = T2.Key)
    I'm stuck with the BO XI 3.1 syntax on step 3. I can't get it to parse.
    In the where clause, mine starts with @select(T1\Timestamp) = max(@select(T2\Timestamp)
    @where T1.Claim_no = T2.Claim_no)
    Please can someone help me with the syntax so this thing will parse.
    Many thanks in anticipation.
    Eddie

    Hi ,
    Can you try
    SELECT   ID, MAX(datetime) FROM T1 GROUP BY by ID
    Thanks
    Ponnarasu

  • Compare date with time

    Hi ,
    Oracle 10.2.0.1.0
    I need to compare date field with time stamp as well . I tried doing byt getting time stamp using to_char and on convertion into date by using to_date , I'm loosing time stamp please help

    804282 wrote:
    I need to compare date field with time stamp as well Compare how exactly?
    If you for example want to see if the date and timestamp are "equal", you can use the following approach - where in this specific approach it is deemed that if the difference between the timestamp and date is less than 1 sec, the two values are equal. E.g.
    SQL>
    SQL> create table test_tab(
      2          d       date,
      3          t       timestamp
      4  );
    Table created.
    SQL>
    SQL> insert into test_tab values( sysdate, systimestamp );
    1 row created.
    SQL> --// is the date and timestamp within 1 sec of one another?
    SQL> select * from test_tab where t-d <  to_dsinterval('0 0:0:1.00');
    D                   T
    2011/07/12 07:25:06 12/JUL/11 07:25:06.744832
    SQL> --// the reverse test
    SQL> select * from test_tab where t-d >=  to_dsinterval('0 0:0:1.00');
    no rows selected
    SQL>

  • ERP Integrator: Data Rows Marked as Invalid

    Hi, I executed data write-back rules with "Import from source" option and met this warning:
    "ERPI Process Start, Process ID: 19
    ERPI Logging Level: DEBUG (5)
    ERPI Log File: /tmp/aif_19.log
    Jython Version: 2.1
    Java Platform: java1.4.2_14
    COMM Writeback Period Processing - Insert Periods into Process Details - START
    COMM Writeback Period Processing - Insert Periods into Process Details - END
    COMM GL Writeback Load Data - Load TDATASEGW - START
    Import Data from Source for Period 'Apr-11'
    Total Data Rows Imported from Source: 13
    COMM GL Writeback Load Data - Load TDATASEGW - END
    COMM Update Data - Update TDATASEG_T/TDATASEGW - START
    Processing Mappings for Column 'UD1'
    Data Rows Updated by 'DEFAULT' (LIKE): 13
    Processing Mappings for Column 'UD2'
    Data Rows Updated by 'DEFAULT' (LIKE): 13
    Processing Mappings for Column 'UD3'
    Data Rows Updated by 'DEFAULT' (LIKE): 13
    Processing Mappings for Column 'UD4'
    Data Rows Updated by 'DEFAULT' (LIKE): 0
    Processing Mappings for Column 'ATTR1'
    Data Rows Updated by Account Type: 13
    Warning: Data rows with unmapped dimensions exist
    Data Rows Marked as Invalid: 13
    Warning: No data rows available for Export to Target
    Total Data Rows available for Export to Target: 0
    COMM Update Data - Update TDATASEG_T/TDATASEGW - END
    COMM End Process Detail - Update Process Detail - START
    COMM End Process Detail - Update Process Detail - END
    ERPI Process End, Process ID: 19
    Staging rows are marked invalid, so data can't be write back to the Ebusiness database. I searched metalink but no luck. Please help!

    Am having similar issues. Please help
    ERPI Process Start, Process ID: 44
    ERPI Logging Level: DEBUG (5)
    ERPI Log File: C:\Users\hyperion\AppData\Local\Temp\/aif_44.log
    Jython Version: 2.1
    Java Platform: java1.4.2_08
    COMM Process Periods - Insert Periods - START
    COMM Process Periods - Insert Periods - END
    COMM Process Periods - Insert Process Details - START
    COMM Process Periods - Insert Process Details - END
    LKM EBS/FS Extract Type - Set Extract Type - START
    LKM EBS/FS Extract Type - Set Extract Type - END
    LKM EBS/FS Extract Delta Balances - Delete Obsolete Rows - START
    LKM EBS/FS Extract Delta Balances - Delete Obsolete Rows - END
    LKM EBS/FS Extract Delta Balances - Load Audit - START
    LKM EBS/FS Extract Delta Balances - Load Audit - END
    COMM End Process Detail - Update Process Detail - START
    COMM End Process Detail - Update Process Detail - END
    LKM EBS/FS Extract Type - Set Extract Type - START
    LKM EBS/FS Extract Type - Set Extract Type - END
    LKM EBS/FS Extract Delta Balances - Delete Obsolete Rows - START
    LKM EBS/FS Extract Delta Balances - Delete Obsolete Rows - END
    LKM EBS/FS Extract Delta Balances - Load Audit - START
    LKM EBS/FS Extract Delta Balances - Load Audit - END
    COMM End Process Detail - Update Process Detail - START
    COMM End Process Detail - Update Process Detail - END
    EBS/FS Load Data - Load TDATASEG_T - START
    Import Data from Source for Period 'Jan 1, 2013'
    Monetary Data Rows Imported from Source: 1750
    Total Data Rows Imported from Source: 1750
    EBS/FS Load Data - Load TDATASEG_T - END
    COMM Update Data - Update TDATASEG_T/TDATASEGW - START
    Warning: Data rows with zero balances exist
    Zero Balance Data Rows Deleted: 171
    Processing Mappings for Column 'ACCOUNT'
    Data Rows Updated by 'DEFAULT' (LIKE): 1579
    Processing Mappings for Column 'ENTITY'
    Data Rows Updated by 'Entity Rule' (LIKE): 1579
    Processing Mappings for Column 'UD1'
    Data Rows Updated by 'Version Rule' (LIKE): 1579
    Processing Mappings for Column 'UD2'
    Data Rows Updated by 'Ministry Dataload Rule' (LIKE): 1579
    Processing Mappings for Column 'UD3'
    Data Rows Updated by 'Location Dataload Rule' (LIKE): 1579
    Processing Mappings for Column 'UD4'
    Data Rows Updated by 'Section Dataload Rule' (LIKE): 1579
    Processing Mappings for Column 'UD5'
    Data Rows Updated by 'Fund Dataload Rule' (LIKE): 1579
    Processing Mappings for Column 'UD6'
    Data Rows Updated by 'Subsector Data load Rule' (LIKE): 1579
    Processing Mappings for Column 'UD7'
    Data Rows Updated by 'Program Dataload Rule' (LIKE): 1579
    Warning: Data rows with unmapped dimensions exist
    Data Rows Marked as Invalid: 1579
    Warning: No data rows available for Export to Target
    Total Data Rows available for Export to Target: 0
    COMM Update Data - Update TDATASEG_T/TDATASEGW - END
    COMM End Process Detail - Update Process Detail - START
    COMM End Process Detail - Update Process Detail - END
    EBS/FS Load Data - Load TDATASEG_T - START

  • Another user has changed the row with primary key -Table changed externally

    Hello,
    I am facing the error: "Another user has changed the row with primary key oracle.jbo.Key[94 ]." during the delete operation.
    User case scenario:
    1. Added new row in the table.
    2. Once new row is added to the the table, another application will update few columns in the newly added row based on some logic.
    3. On the same session I am trying to delete the newly added row and getting above mentioned error.
    I have added a "Button" in the table to partialRefresh the table to check the new values of the changed columns.
    I have checked the forum and found many similar errors and tried the following but nothing helped.
    1. By setting "Auto Refresh = True" for the view object.
    Issue faced-> It worked fine but after few add and remove my db is getting to inconsistent state after which, I am not able to do any add/delete from my page.
    Error: "Too many objects match the primary key oracle.jbo.Key". I have checked this and I am not getting this error when "Auto Refresh = False" even after multiple add and remove actions.
    2. By Setting "Auto Refresh" the iterator associated with the page.
    Issue -> Did not work at all.
    Looking forward inputs from gurus.
    Thanks
    Abhijeet

    Finally I found one solution to this problem at: [ http://www.avromroyfaderman.com/2008/05/bring-back-the-hobgoblin-dealing-with-rowinconsistentexception/|http://www.avromroyfaderman.com/2008/05/bring-back-the-hobgoblin-dealing-with-rowinconsistentexception/]
    Simply overriding the lock() method in the entity object resolved issue. Kudos to the author.
    Code:
    public void lock() {
    try {
    super.lock();
    } catch (RowInconsistentException e) {
    refresh(REFRESH_WITH_DB_ONLY_IF_UNCHANGED | REFRESH_CONTAINEES);
    super.lock();
    But, Now my refresh button is not working as depend on the "Auto Refresh = True" to update the table.
    Can anyone tell me how can I refresh the VO of my table from the button.
    Thanks
    Abhijeet.
    P.S: I have already added the partial trigger but it is work not working as the data is cached in the VO. Removing the Cached property for the VO is creating other problems.

  • Partner data processed with key PartnerGUID

    Dear All,
    When i change the customer master in R/3 and i could see that the same is not getting replicated in SAP CRM.
    i get the BDOC error has this.
    Partner data processed with key PartnerGUID 455EBB40B9A803CFE1000000C0A80121
    Message no. BUPA_INTERFACE007
    Validation error occurred: Module CRM_BUPA_MAIN_VAL, BDoc type BUPA_MAIN.
    Message no. SMW3018
    am i missing something in organizational data configuration.
    Thanks,
    Satish Kumar

    Hi,
    same error coming for me too...
    Could you please let us know how did u resolve this error.
    Thanks in advance,
    Madhu

  • Another user has changed the row with primary key oracle.jbo.Key

    Oracle Jdeveloper 11.1.2.1
    ADFbc + JSF
    I have a Page ( Purchase Order Status) (which show all PO to be approved) from this page (page1) the Supervison can call Regular PO (Page2) and change whatever he needs to change. (products, quantities, discounts,warehouse...)
    then on Page2 he invoke (commit) after his changes and return to page1, when supervisor change the status to Approved on page1. I get this Error (Another user has changed the row with primary key oracle.jbo.Key[#]).
    for sure there are no another user changing this PO.
    both page are based on same Entity Object (PO) , how can I solve this Issue? thank you

    hi,
    This occur due to pessimistic locking mode for ApplicationModule ,alter to optimistic and check following sample to get knowledge about locking mode.
    http://andrejusb.blogspot.com/2010/03/optimistic-and-pessimistic-locking-in.html-Suersh

  • Another user has changed the row with primary key oracle.jbo.Key   HELP

    I created VO which based on two entities. Then user search from that VO, when result comes update two row of each entity .
    HERE my function
    public String lockPayment() {
    getAppImpl().getcheckPaymentsVO1().setRangeSize(-1);
    Row[] rw2 = getAppImpl().getcheckPaymentsVO1().getAllRowsInRange();
    checkPaymentsVORowImpl tparow;
    tparow = null;
    for (int j = 0; j < rw2.length; j++) {
    tparow = (checkPaymentsVORowImpl)rw2[j];
    // tparow.setApayLock("1");
    tparow.setAtaxLock("1");
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("Commit");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    return null;
    When I click it gives me error:
    ----------> Another user has changed the row with primary key oracle.jbo.Key
    Any suggestion !!!!!!
    Edited by: 903927 on Dec 14, 2012 1:00 AM

    Hi,
    see this: https://blogs.oracle.com/onesizedoesntfitall/entry/the_case_of_the_phantom
    Frank

  • Updating row with a blob value

    Hi, I get the following error when trying to update a row with a Blob value. I am using a Bfile as the external file ref. to put into the Blob.
    ORA-22920: row containing the LOB value is not locked
    The code that I'm using is the following:
    PROCEDURE IOSYS_PCT.insert_blob AS
    length NUMBER;
    image BLOB;
    image_file BFILE;
    bf_dir VARCHAR2(40);
    bf_name VARCHAR2(40);
    BEGIN
    SELECT temp_blob INTO image FROM temp_blob; /*initialise image with empty_blob()*/
    SELECT image_sm, image_sm_file INTO image, image_file FROM images WHERE
    file_id=1;
    dbms_lob.filegetname(image_file,bf_dir,bf_name);
    DBMS_LOB.FILEOPEN(image_file,DBMS_LOB.FILE_READONLY);
    LOCK TABLE images IN ROW EXCLUSIVE MODE;
    length := DBMS_LOB.GETLENGTH(image_file);
    DBMS_LOB.LOADFROMFILE(image,image_file,DBMS_LOB.GETLENGTH(image_file));
    DBMS_LOB.FILECLOSE(image_file);
    UPDATE images SET image_sm = image WHERE file_id=1;
    END;
    Please help as I have ran out of ideas what could be wrong.
    Thanx Andre
    null

    Hi, I get the following error when trying to update a row with a Blob value. I am using a Bfile as the external file ref. to put into the Blob.
    ORA-22920: row containing the LOB value is not locked
    The code that I'm using is the following:
    PROCEDURE IOSYS_PCT.insert_blob AS
    length NUMBER;
    image BLOB;
    image_file BFILE;
    bf_dir VARCHAR2(40);
    bf_name VARCHAR2(40);
    BEGIN
    SELECT temp_blob INTO image FROM temp_blob; /*initialise image with empty_blob()*/
    SELECT image_sm, image_sm_file INTO image, image_file FROM images WHERE
    file_id=1;
    dbms_lob.filegetname(image_file,bf_dir,bf_name);
    DBMS_LOB.FILEOPEN(image_file,DBMS_LOB.FILE_READONLY);
    LOCK TABLE images IN ROW EXCLUSIVE MODE;
    length := DBMS_LOB.GETLENGTH(image_file);
    DBMS_LOB.LOADFROMFILE(image,image_file,DBMS_LOB.GETLENGTH(image_file));
    DBMS_LOB.FILECLOSE(image_file);
    UPDATE images SET image_sm = image WHERE file_id=1;
    END;
    Please help as I have ran out of ideas what could be wrong.
    Thanx Andre
    null

  • Comparision of a row with multiple criteria

    Hi All,
    I have below source table which gives me CUTSOMER_ID, FIRST_NAME, LAST_NAME, DOB, ZIPCODE and D_ID. Now i need to compare it with target, which gives me same columns. below are my comparision criteria.
    1. Compare CUSTOMER_ID, if it matches with any of the target CUSTOMER_ID mark the row with F_FLG = M
    2. If CUSTOMER_ID does not match, then compare the row with target based on compbination of (FIRST_NAME, LAST_NAME, DOB and ZIPCODE). If this combination of columns matches with any of the row from target, then marked row with F_FLG = M
    3. If CUSTOMER_ID and combination of (FIRST_NAME, LAST_NAME, DOB and ZIPCODE) column does not match with any of the target row, the use another set of column. compare the row with target based on compabination of (FIST_NAME, LAST_NAME, D_ID). If this combinatio of column matches with ay of the row from target, then marked row with F_FLG = M
    4. If any of the above criteria does not match, then mark the row with F_FLG = N
    CUSTOMER_ID     FIRST_NAME     LAST_NAME     DOB          ZIPCODE          D_ID
    101          GEORGE          MAC          15-APRIL-2009     12345          23456
    102          MICLE          DON          10-MARCH-1980     45678          29087
    103          VIJAG          UJIK          01-JAN-1950     67890          27689
    104          BONY          PANDA          03-MAY-1961     12345          27878These combinations should be performed once at a time. If it satisfies the first criteria, we do not need to check for remaining 3. If it does not match with 1 then perform 2 if matches flag the row and if not, go for 3rd criteria. if matches them mark with M else N
    Below is the Target rows.
    CUSTOMER_ID     FIRST_NAME     LAST_NAME     DOB          ZIPCODE          D_ID
    101          ADA          MICO          15-APRIL-2009     12345          23456
    999          MICLE          DON          10-MARCH-1980     45678          23567
    888          VIJAG          UJIK          01-APR-1999     89897          27689
    777          AAA          BBB          03-MAY-1961     87687          12345Here,
    for 1st row, CUSTOMER_ID matches with source and target, flag the row with valye = M
    for 2nd row, CUSTOMER_ID (102) does not match with Target. but combination of (FIRST_NAME, LAST_NAME, DOB and ZIPCODE) matches, flag the row with value = M
    for 3rd row, CUSTOMER_ID (103) and combination of (FIRST_NAME, LAST_NAME, DOB and ZIPCODE) does not match, but combination of (FIRST_NAME, LAST_NAME and D_ID) matches, flag the row with value = M
    for 4th row, none of the combination matches with Target, flag the row with value = N
    Output should be
    CUSTOMER_ID     FIRST_NAME     LAST_NAME     DOB          ZIPCODE          D_ID     F_FLG
    101          GEORGE          MAC          15-APRIL-2009     12345          23456     M
    102          MICLE          DON          10-MARCH-1980     45678          29087     M
    103          VIJAG          UJIK          01-JAN-1950     67890          27689     M
    104          BONY          PANDA          03-MAY-1961     12345          27878     N

    Try this one
    WITH data1 AS
         (SELECT 101 customer_id, 'GEORGE' first_name, 'MAC' last_name, TO_DATE ('15-APRIL-2009', 'dd-mon-yyyy') dob,
                 12345 zipcode, 23456 d_id
            FROM DUAL
          UNION ALL
          SELECT 102 customer_id, 'MICLE' first_name, 'DON' last_name, TO_DATE ('10-MARCH-1980', 'dd-mon-yyyy') dob,
                 45678 zipcode, 29087 d_id
            FROM DUAL
          UNION ALL
          SELECT 103 customer_id, 'VIJAG' first_name, 'UJIK' last_name, TO_DATE ('01-JAN-1950', 'dd-mon-yyyy') dob,
                 67890 zipcode, 27689 d_id
            FROM DUAL
          UNION ALL
          SELECT 104 customer_id, 'BONY' first_name, 'PANDA' last_name, TO_DATE ('03-MAY-1961', 'dd-mon-yyyy') dob,
                 12345 zipcode, 27878 d_id
            FROM DUAL),
         data2 AS
         (SELECT 101 customer_id, 'ADA' first_name, 'MICO' last_name, TO_DATE ('15-APRIL-2009', 'dd-mon-yyyy') dob,
                 12345 zipcode, 23456 d_id
            FROM DUAL
          UNION ALL
          SELECT 999 customer_id, 'MICLE' first_name, 'DON' last_name, TO_DATE ('10-MARCH-1980', 'dd-mon-yyyy') dob,
                 45678 zipcode, 23567 d_id
            FROM DUAL
          UNION ALL
          SELECT 888 customer_id, 'VIJAG' first_name, 'UJIK' last_name, TO_DATE ('01-APR-1999      ', 'dd-mon-yyyy') dob,
                 89897 zipcode, 27689 d_id
            FROM DUAL
          UNION ALL
          SELECT 777 customer_id, 'AAA' first_name, 'BBB' last_name, TO_DATE ('03-MAY-1961      ', 'dd-mon-yyyy') dob,
                 87687 zipcode, 12345 d_id
            FROM DUAL)
    SELECT customer_id, first_name, last_name, dob, zipcode, d_id, f_flg
      FROM (SELECT customer_id, first_name, last_name, dob, zipcode, d_id, f_flg,
                   ROW_NUMBER () OVER (PARTITION BY customer_id ORDER BY f_flg) rn
              FROM (SELECT DISTINCT d.customer_id, d.first_name, d.last_name, d.dob, d.zipcode, d.d_id,
                                    CASE
                                       WHEN d.customer_id = d2.customer_id
                                          THEN 'M'
                                       WHEN d.first_name = d2.first_name
                                       AND d.last_name = d2.last_name
                                       AND d.dob = d2.dob
                                       AND d.zipcode = d2.zipcode
                                          THEN 'M'
                                       WHEN d.first_name = d2.first_name AND d.last_name = d2.last_name AND d.d_id = d2.d_id
                                          THEN 'M'
                                       ELSE 'N'
                                    END f_flg
                               FROM data1 d, data2 d2
                           ORDER BY 1, DECODE (f_flg, 'M', 1)))
    WHERE rn = 1Regards,
    Mahesh Kaila

Maybe you are looking for

  • Recovery from FileVault backup disk

    I have a friend who had Filevault active and suspected it was causing problems so he disabled it following the instructions to the letter. After working for over an hour, it said it was done and when he restarted it would not boot. He took it to the

  • Report text to stay at the bottom of the page

    hi   I have a report where I need a page footer which show e-mail address and company location etc  this is working ok  I have details that can vary from 1 to 30 item   I have some terms and conditions that have to go on the report    on the last pag

  • How to control the location of Iconified JInternalFrame?

    Is there any way to control the location of Iconfied JInternalFrame on JDesktopPane? I've searched API reference and tried to find suitable methods to override in UI classes. But I still cannot figure out how to do it after a long time. Who have any

  • There's an error while delivery note creation for STO order

    There's an error while delivery note creation for STO order  even stock available in unrestricted stock Edited by: sharma aman on Nov 8, 2011 9:00 AM

  • NOt able to start the listener..

    After Indtalling oracle 11g .. i am not able to start the listener dbstart $ORACLE_HOME lsnrctl start ORACLE_SID=orcl export ORACLE_SID lsnrctl start [oracle@test1 bin]$ lsnrctl start LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 27-DEC-2012