"Invalid Variant Operation" when AVDoc.GetPDDoc

Hi, I create pdf object by ole in delphi.
=====================
    try
        AcroApp := CreateActiveXObject('AcroExch.App');
        AcroApp.Hide;
    except
        Exit;
    end;
         AcroAVDoc := CreateActiveXObject('AcroExch.AVDoc');
        if not AcroAVDoc.Open(strFileName, '') then begin
            Exit;
        end;
        AcroAVDoc := AcroApp.GetActiveDoc;
        AcroPDDoc := AcroAVDoc.GetPDDoc;  <-- throw invalid variant operation exception
     AcroPDDoc.Save(1, strFileName);
==========================
In fact, If I can save the document, do not know if there is no other way to bypass the pddoc, if only with pddoc, is not playing some of the patches can

Attached a sample VBS. Save it as ...vbs and doubleclick on it.
If it works for you, ask in the delphi forum, how to translate.
HTH, Reinhard
AcroTestSave.vbs
fileIn = "C:\Test.pdf"                         '// state the full path of the file to open
FileOut = "C:\Test3.pdf"                  '// state the full path for the file to save
set App = CreateObject("AcroExch.App")            '// start Adobe Acrobat
App.Show                                                      '// show Acrobat
Set AVDoc = CreateObject("AcroExch.AVDoc") '// connect to  Ac Viewer
AVDoc.Open fileIn,""                                '// Open a file into viewer
set PDDoc = AVDoc.GetPDDoc             '// Get the Doc opened in the viewer
set JSO = PDDoc.GetJSObject            '// Connect to Acrobat JS
JSO.app.alert("Hi, the file is open press Ok and I'll save it")  '// Display a MsgBox
PDDoc.Save 3,fileOut                             '// SaveAs
App.CloseAllDocs                                       '// close all docs
set JSO = nothing
set AvDoc = nothing
set PdDoc = nothing
set App = nothing

Similar Messages

  • Invalid append operation when generating pdf document?

    I am getting the following Log warning when I check the log of my livecycle designer es2 form:
    Invalid append operation: fill cannot have a child element of color
    The element[color] has violated its allowable number of occurences.
    I don't know how to find the problem, and the form previews properly in Acrobat preview.
    Can someone tell me what this means, and what I need to do to correct the error?

    Have you done any changes in the XML source or do you use scripting to change the fill color of an object?

  • Using regexp_instr in a where clause - invalid relational operator

    Whey I try to run this query in TOAD I get an ORA-00920: invalid relational operator error. It's part of a 10g stored procedure. When I highlight it and run it it prompts me for the missing values and then the error pops up. The AND in line 4 is highlighted.
    select CRIME_CLASSIFICATION_ID, crime_type, nvl(count(CRIME_CLASSIFICATION_ID),0) as CRIMECNT
    From vaps.vw_offenses
        where  regexp_instr(valoc,to_char(location_id))
            AND ( fromdate is null or
             offense_date between to_date(fromdate, 'mm/dd/yyyy')  AND to_date(todate,'mm/dd/yyyy')
    group by crime_classification_id, crime_type

    Hi,
    Review what REGEXP_INSTR does: it returns a NUMBER.
    Your WHERE clause couldn't make any sense if you used any other kind of NUMBER expression in that place, e.g. a NUMBER literal such as 12:
    select CRIME_CLASSIFICATION_ID, crime_type, nvl(count(CRIME_CLASSIFICATION_ID),0) as CRIMECNT
    From vaps.vw_offenses
        where  12     -- This is obviously wrong
            AND ( fromdate is null or
             offense_date between to_date(fromdate, 'mm/dd/yyyy')  AND to_date(todate,'mm/dd/yyyy')
    group by crime_classification_id, crime_type
    It's not going to work any better with a function (like REGEXP_INSTR) that returns a NUMBER.
    How can you fix it?  That depends on what you want to do.  Why are you calling REGEXP_INSTR?  What is that condition checking?
    Whenever you have a problem, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables involved, so that the people who want to help you can re-create the problem and test their ideas.
    Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    Always say which version of Oracle you're using (for example, 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • Error: ORA-00920: invalid relational operator (WWV-16016)

    Hi,
    When I try to query in the form, I'm getting the following error
    An unexpected error occurred: ORA-00920: invalid relational operator (WWV-16016).
    The form has a field of type varchar2 with lov attached to it. This error is happening only if I enter characters more than 40 or select a value which has more than 40 characters from the lov.
    Anbody had this problem?..Is there a solution for this?..Help would be appreciated.
    Thanks
    PJ

    I figured out the problem and it seems like if the value has any 'IN' or 'BETWEEN' and try to query this error is happening and it's not because of character length. I think Portal assumes that relational operator is entered and tries to query based on those words. Is it a bug in the Portal?..
    Thanks
    PJ

  • ORA-29283 invalid file operation

    NLSRTL      10.2.0.5.0     Production
    Oracle Database 10g Enterprise Edition      10.2.0.5.0     64bi
    PL/SQL      10.2.0.5.0     Production
    TNS for IBM/AIX RISC System/6000:      10.2.0.5.0     Productio
    I am trying to get the content of a trace file generated for me.
    Because I don't have privileges to log on the server and copy the trace file for me directly with some os user, I am doing the following:
    1. I alter my session trace identifier to easier identify the trace file
    ALTER SESSION SET TRACEFILE_IDENTIFIER = 'Func01';2. I invoke DBMS_MONITOR
    3. I run the procedure I want to monitor.
    4. I disable the monitoring by calling DBMS_MONITOR
    5. At this point I run the following query to identify my trace file:
    select u_dump.value || '/' || instance.value || '_ora_' || v$process.spid || nvl2(v$process.traceid, '_' || v$process.traceid, null ) || '.trc'"Trace File"
    from V$PARAMETER u_dump
    cross join V$PARAMETER instance
    cross join V$PROCESS
    join V$SESSION on v$process.addr = V$SESSION.paddr
    where 1=1
       and u_dump.name = 'user_dump_dest'
       and instance.name = 'instance_name'
       and V$SESSION.audsid=sys_context('userenv','sessionid');It gives me: /ORACLE/MYDB/trace/MYDB_ora_3616822_Func01.trc
    I have created directory in advanced on the path where the traces are stored:
    CREATE OR REPLACE DIRECTORY trace_dir AS '/ORACLE/MYDB/trace/';
    SELECT * FROM dba_directories WHERE directory_name = 'TRACE_DIR';
    Output:
    OWNER DIRECTORY_NAME DIRECTORY_PATH
    SYS     TRACE_DIR      /ORACLE/MYDB/trace/I don't have rights to grant read, write on TRACE_DIR to my user, as I am not logged with SYS.
    I created a table to store in it the lines from the trace file:
    CREATE TABLE tmp_traces_tab
      callnum NUMBER,
      line NUMBER,
      fileline CLOB
    );Then I run the following PL/SQL block to retrieve the content of the trace and store it in the table T:
    DECLARE
      l_file            UTL_FILE.file_type;
      l_location     VARCHAR2 (100) := 'TRACE_DIR';
      l_filename    VARCHAR2 (255) := 'MYDB_ora_3616822_Func01.trc';
      l_text           VARCHAR2 (32767);
      l_line           NUMBER := 1;
      l_call           NUMBER := 1;
    BEGIN
      -- Open file.
      l_file := UTL_FILE.fopen (l_location, l_filename, 'r', 32767);
      -- Read and output first line.
      UTL_FILE.get_line (l_file, l_text, 32767);
      INSERT INTO tmp_traces_tab (callnum, line, fileline) VALUES (l_call, l_line, l_text);
      l_line := l_line + 1;
      BEGIN
        LOOP
          UTL_FILE.get_line (l_file, l_text, 32767);
           INSERT INTO tmp_traces_tab (callnum, line, fileline) VALUES (l_call, l_line, l_text);
           l_line := l_line + 1;
        END LOOP;
      EXCEPTION
        WHEN NO_DATA_FOUND THEN
          NULL;
      END;
      INSERT INTO tmp_traces_tab (callnum, line, fileline) VALUES (l_call, l_line, l_text);
      l_line := l_line + 1;
      UTL_FILE.fclose (l_file);
    END;
    /And when I run the code I get the error: ORA-29283 invalid file operation.
    Is it possible to a role my user to be able to get the content of the trace files in the directory TRACE_DIR without having explicit READ , WRITE privileges on it?
    My user currently has these roles:
    select * from dba_role_privs where grantee = USER;
    Output:
    U1     OPR_ROLE_LOSS_SNAPSHOT_READER     YES     YES
    U1     RESOURCE     NO     YES
    U1     CONNECT     NO     YES
    U1     DBA     NO     YES
    U1     OPR_ROLE_SUPPORT_USER     YES     YESI know that on another db with different user I hit no errors when doing completely the same (of course the program unit I monitor is different).
    That other user with which I have NO issues has these roles:
    select * from dba_role_privs where grantee = USER;
    Output:
    U2    DBA    NO    YES
    U2    EXEC_SYS_PACKAGES_ROLE    NO    YES
    U2    EXECUTE_CATALOG_ROLE    NO    YES
    U2    CONNECT    NO    YES

    Verdi wrote:
    NLSRTL      10.2.0.5.0     Production
    Oracle Database 10g Enterprise Edition      10.2.0.5.0     64bi
    PL/SQL      10.2.0.5.0     Production
    TNS for IBM/AIX RISC System/6000:      10.2.0.5.0     Productio
    And when I run the code I get the error: ORA-29283 invalid file operation.
    Is it possible to a role my user to be able to get the content of the trace files in the directory TRACE_DIR without having explicit READ , WRITE privileges on it?
    My user currently has these roles:
    select * from dba_role_privs where grantee = USER;
    Output:
    U1     OPR_ROLE_LOSS_SNAPSHOT_READER     YES     YES
    U1     RESOURCE     NO     YES
    U1     CONNECT     NO     YES
    U1     DBA     NO     YES
    U1     OPR_ROLE_SUPPORT_USER     YES     YESI know that on another db with different user I hit no errors when doing completely the same (of course the program unit I monitor is different).
    Thanks for posting version alongwith other details.
    TO my knowledge, No you cannot.
    Privileges acquired via a Role are not valid in PL/SQL. You need to have explicit privileges.

  • "Invalid menu operation" Alert bug - CS6

    CS6.0.5
    In the last couple of weeks I have started getting this alert:
    I have tried to pay attention to what I have do to create this alert.
    Occasionally it simply appears on opening a Project.
    Reliably, it pops up when I hit Ctrl > z (undo), and Ctrl > s (save)...
    but after clearing the alert, Ctrl > [Anything] does not make it reappear.
    This happens regardless of the Project.
    edit:
    I have just discovered that if I try to use File > Save
    instead of Ctrl > s to save, the alert appears
    as soon as I touch the File Menu header.
    This also happens with the Clip, Title, Window & Help headers.
    As in the replies in the thread below, there seems to be
    no detriment to any functionality when this alert appears.
    Maybe it's a fairly inconsequential bug, but it does appear to be a bug.
    I had worked in CS6 for almost a year without this alert occurring.
    Invalid Menu Operation Error in CS6
    http://forums.adobe.com/message/4913886

    Even if this errant "Invalid menu operation" alert is not
    indicative of any real problem and does not seem to cause
    any functionality problem within Premiere, it is still an obtrusive
    alert that requires the extra steps to clear (at least once).
    If not cleared, any 'real' alert would be missed since
    all it will do is add a new entry to an un-cleared list.
    Any suggestions aside from filing additional bug reports?

  • Case with where clause - ORA-00920: Invalid relational operator

    Hi All, when I try to run the query below, I get the following error...
    ORA-00920: invalid relational operator
    00920. 00000 -  "invalid relational operator"
    *Cause:   
    *Action:
    Error at Line: 16 Column: 5
    Does anyone know what's wrong with my query? thanks in advance.
    SELECT concat (year,period)
    FROM DD_ACTUALS_FACT
    WHERE CASE Period
    WHEN 'JAN' THEN '01'
    WHEN 'FEB' THEN '02'
    WHEN 'MAR' THEN '03'
    WHEN 'APR' THEN '04'
    WHEN 'MAY' THEN '05'
    WHEN 'JUN' THEN '06'
    WHEN 'JUL' THEN '07'
    WHEN 'AUG' THEN '08'
    WHEN 'SEP' THEN '09'
    WHEN 'OCT' THEN '10'
    WHEN 'NOV' THEN '11'
    WHEN 'DEC' THEN '12'
    END as "MonthNo"
    ORDER BY CONCAT (year,"MonthNo") DESC

    The problem is the as "MonthNo" - you can't give an "AS" alias to an expression in a where clause.
    You have not actually given any condition, just a set of translations from period into a number.
    You also haven't said what you're trying to do.
    Perhaps you want:
    SELECT concat (year,period)
    FROM DD_ACTUALS_FACT
    WHERE something
    ORDER BY CONCAT (year, CASE Period
    WHEN 'JAN' THEN '01'
    WHEN 'FEB' THEN '02'
    WHEN 'MAR' THEN '03'
    WHEN 'APR' THEN '04'
    WHEN 'MAY' THEN '05'
    WHEN 'JUN' THEN '06'
    WHEN 'JUL' THEN '07'
    WHEN 'AUG' THEN '08'
    WHEN 'SEP' THEN '09'
    WHEN 'OCT' THEN '10'
    WHEN 'NOV' THEN '11'
    WHEN 'DEC' THEN '12'
    END  ) DESC

  • ORA-30511: invalid DDL operation in system triggers

    Hi,
    I am calling a procedure in a Trigger.
    In that Procedure EXECUTE IMMEDIATE is used to CREATE a table.
    But when The Trigger is firing its giving Error as :ORA-30511: invalid DDL operation in system triggers
    Kindly any help will be needful for me

    user598986 wrote:
    Hi,
    I am calling a procedure in a Trigger.
    In that Procedure EXECUTE IMMEDIATE is used to CREATE a table.
    But when The Trigger is firing its giving Error as :ORA-30511: invalid DDL operation in system triggers[I thought I already explained it|http://forums.oracle.com/forums/message.jspa?messageID=3379456#3379683]. And again, granting privileges dynamically in a logon trigger is a very bad design. If you want to stick to it, you could schedule a job in trigger, as Timur suggested, however keep in mind, job runs asynchronously, so trigger will have to wait for the job to finish. Otherwise there might be a gap where session would not have privs granted yet.
    SY.

  • Erro: An invalid object operation was invoked on type View Object

    Hi
    I try to run query from managed bean as below
            SelectControlTextDescImpl selectControlTextDescImpl = new SelectControlTextDescImpl();      
            selectControlTextDescImpl.executeQuery();but there is error appear when i run the code
    An invalid object operation was invoked on type View Object with name SelectControlTextDescImpl_8
    Any one can help?

    Hi Hani,
    You'll be able to get a lot out of this forum if you first go through some these resources first:
    http://www.oracle.com/technology/obe/obe11jdev/ps1/ria_application/developriaapplication_long.htm
    http://www.oracle.com/technology/products/jdev/11/cuecards111/index.html
    Regards,
    Jang Vijay

  • Invalid append operation

    I get the following message(in my livecycle server log) when one of my forms loads in workspace.  Its only the one form that this occurs in and the form appears to work correctly.  Does anyone have any idea why this warning occurs and how to clear it?  Anyone know what the specific fault lines (2812 and 1825) refer too?  I was thinking it would refer to the xml source inside designer but it didn't appear to relate.  This causes a lot of spam in the server log file and it could be causing an error that I haven't been able to find yet.
    2011-09-16 13:37:00,203 WARN  [com.adobe.document.XMLFormService] ALC-XTG-102-001: [79408] Invalid append operation: field cannot have a child element of #text
    2011-09-16 13:37:00,203 WARN  [com.adobe.document.XMLFormService] ALC-XTG-102-001: [79408] The fault occurred on line 2812.
    2011-09-16 13:37:01,781 WARN  [com.adobe.document.XMLFormService] ALC-XTG-102-001: [79408] Invalid append operation: field cannot have a child element of #text
    2011-09-16 13:37:01,781 WARN  [com.adobe.document.XMLFormService] ALC-XTG-102-001: [79408] The fault occurred on line 1825.
    2011-09-16 13:37:01,813 WARN  [com.adobe.document.XMLFormService] ALC-XTG-102-001: [79408] Invalid append operation: field cannot have a child element of #text
    2011-09-16 13:37:01,813 WARN  [com.adobe.document.XMLFormService] ALC-XTG-102-001: [79408] The fault occurred on line 1825.

    I don't work with LC servers but with Designer but think this doesn't matter here.
    A fields text is the child element of a value element. So you first have to append a value element and then append the text element to it.
    <field name="TextField1" y="6.35mm" x="15.875mm" w="62mm" h="9mm">
                <ui>
                   <textEdit>
                      <border>
                         <edge stroke="lowered"/>
                      </border>
                      <margin/>
                   </textEdit>
                </ui>
                <font typeface="Myriad Pro"/>
                <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>
                <para vAlign="middle"/>
                <caption reserve="25mm">
                   <para vAlign="middle"/>
                   <value>
                      <text>Text Field</text>
                   </value>
                </caption>
               <value>
                   <text>Sample text</text>
                </value>
             </field>
    In Designer the script looks like:
    var newValue = xfa.template.createNode("value");
    var newText = xfa.template.createNode("text");
    newText.value = "Sample text";
    newValue.nodes.append(newText);
    [referenceSyntax].nodes.append(newValue);
    Hope this helps.

  • Requesting help-On a report Getting ora-00920 invalid relational operator.

    Hi everyone,
    I am having a report region with the following query:
    select CASE
    WHEN ISITRECENTADDENDUM(meckey_fk,code)
    THEN
    '<a href="javascript:popUp2('''
                   || 'f?p=&APP_ID.:61:&SESSION.::NO::P61_MECKEY_FK:'
                   || &P60_MECKEY.
                   || ''', 700, 700);">'
    || '<img src="#IMAGE_PREFIX#gobut.gif">'
    || '</a>'
    ELSE NULL
    END EditAddendum,
    '<a href="javascript:popURL('''
                   ||'&REPORTS_URL.keynewmec&P_1=&P60_MECNUM.'
                   || ''', 700, 700);">'
    || '<img src="#WORKSPACE_IMAGES#printer.jpg">'
    || '</a>'
    PrintMEC,
    "CODE",
    "MECKEY_FK",
    "ADDENDUM",
    "WHO_CREATED",
    "WHEN_CREATED"
    from "C_ADDENDUMS"
    where "MECKEY_FK" = v('P60_MECKEY')
    And my function returning boolean is as follows:
    create or replace FUNCTION "ISITRECENTADDENDUM"
    (meckeyi in number,
    codei in varchar2)
    return Boolean
    is
    x varchar2(1);
    begin
    select max(code) into x from c_addendums where meckey_fk = meckeyi;
    if x = codei then
    return true;
    else
    return false;
    end if;
    exception
    when others then
    return FALSE;
    end;
    But I am getting ORA-00920 invalid relational operator. Can anyone please help me out? I am not knowing where the error is. When I run the function by itself I am getting "False" returned as expected. Appreciate any advice on this.
    Rgds,
    Suma.

    Suma,
    It looks like what you are trying to do is display a link for the record with the highest value in the Code column, and nothing for the other records.
    If that is the case, you can eliminate the function and just use a SQL query like this:
    (not tested)
    select CASE
              WHEN code = Max(code) over (partition by meckey_fk)
                 THEN
                   '<a href="#">'
                   || ' '
                   || '< img class="TargetAlertIcon" src="chrome://targetalert/content/skin/internal.png"></a>'
              ELSE NULL
           END EditAddendum,
           '<a href="#">'
           || ' '
           || '< img class="TargetAlertIcon" src="chrome://targetalert/content/skin/internal.png"></a>' PrintMEC,
           "CODE", "MECKEY_FK", "ADDENDUM", "WHO_CREATED", "WHEN_CREATED"
      from "C_ADDENDUMS"
    where "MECKEY_FK" = :P60_MECKEYIs that what you're trying to do?
    Doug

  • Invalid Menu Operation Error in CS6

    Recently, I've been seeing the little error indicator show up at the bottom-right corner of the Premiere screen after I import a file.  When I click on it, the error listed says, "Invalid Menu Operation".  I haven't noticed any negative effects from this, but I was wondering if anyone knows what it means.
    Thanks.

    hi
    i don't think that is fair you reply as you don't find any issue as we report!!!This unacceptable!!!
    i'm using premium production cs6 everytime when i open files and click to FILE/CLIP/TITILE/WINDOW and HELP menu button the error message will come out immeadiately than after clear all it will be ok but it will appear everytime when we first launch the project file?!
    Please take note: when click the menu EDIT/PROJECT/SEQUENCE and MARKER that is ok no error message appear!
    we paid for the software is because we trust it , we are not paying for trouble!!! this is a problem giving us when we working we don't know it will affect any of our project or not?
    ADOBE engineering team should find out the problem!!!
    the problem doesn't drop from the sky itself!!!??? Do you think we created the problem????
    Here is my system detail!
    i'm using WIN7 OS, nvidia Quadro 4000, DELL T5500
    AND BELOW IS THE ERROR REFERRENCE
    PLEASE DON'T GIVE US THE SAME FEEDBACK AGAIN THAT MUST BE SOMEWHERE GOES WRONG! PLEASE SOLVE THE PROBLEM THANK YOU!
    my email address is [email protected] or [email protected]

  • 8350i: Invalid Service Center when sending SMS

    Some time back I followed older posts about enabling the 8350i to copose SMS texts.  Prior to that, menu options seemed to allow only MMS and not SMS.  Those posts basically involved going into Options->SMS Text and changing the Data Coding to UCS2 and the Service Center to +Personal info removed (originally blank) followed by a battery pull.  It all seemed to work find afterwards, that is SMS was then a menu option and sending/receiving SMS was working.
    Many weeks have passed and now all of a sudden, I get an "Invalid Service Center" when I try to send an SMS.  I can receive just fine but just can't send.  I have attempted resetting the Data Coding and Service Center with no luck.  Whenever I change the Service Center, it merely reverts back to +1personal info removed.  I've tryied a Master Radio Reset with no luck as well.
    Any help on what to do is appreciated.

    Hey avni0302,
    Sorry for the delay in response. Can you please tell me what version of device software you are running on your BlackBerry? Also are you still using the BlackBerry 9300?
    Once I have this information I can do some testing. 
    -SR
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • HT204266 How come my credit card says invalid security code when I put my code in at the App Store?

    How come my credit card says invalid security code when I put my code in at the App Store? I have a bunch of free apps when I had my ipad 1 now I have 2 and my credit card will not be read as authentic Watson ever I tried my girls card nothing do I need to have money on it for a free download? I even bought a couple of games but why with so many free ones? Please help me I'm slow so walkit through with me thnx also my ipad 2 is brand new out da box and I accidentally updated to 6.0 without finding out first about it so some pointers to it would help ...which I think that it has something to do with it.

    Is the address on your iTunes account exactly the same (format and spacing etc) as on your credit card bill : http://support.apple.com/kb/TS1646 ? If it is then you could try what it says at the bottom of that page :
    If the issue persists, contact your credit card company and verify that they and any company they use to process credit card authorisations have the correct information on file.
    And/or try contacting iTunes support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page
    For iOS I would expect an updated version of the manual to appear here at some point : http://support.apple.com/manuals/ipad/
    In the meantime there is this : http://www.apple.com/ios/whats-new/

  • Invalid cursor state when trying to insert record

    Hi everyone!
    I'm using JDBC-ODBC bridge to connect to a mySql database, which works fine. Then I try to insert new records, but this only works for the first record in the table.
    When there is already a record in the table, I always get "[Microsoft][ODBC Driver Manager] Invalid cursor state" when calling the updateRow()-method of the result set.
    Here is my code:            // open db connection
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                Connection conn = DriverManager.getConnection("jdbc:odbc:TTManager", "xxxx", "xxxx");
                // Prepare SQL statement
                java.sql.Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
                ResultSet result = stmt.executeQuery("SELECT * FROM Player");
                result.moveToInsertRow();Then all fields are filled in this manner:            result.updateString("Name", name);And finally the insertRow should be written to the db:            result.insertRow();But at this point it gives the mentioned error, including these messages:         at sun.jdbc.odbc.JdbcOdbcResultSet.setPos(JdbcOdbcResultSet.java:5272)
            at sun.jdbc.odbc.JdbcOdbcResultSet.insertRow(JdbcOdbcResultSet.java:4132)Since I'm very unexperienced with Java, I guess (or hope^^) it's just some stupid beginner's mistake.
    Oh, almost forgot to mention: The new record's data doesn't violate any unique-constraints on the table, all fields are explicitely filled and all variable's data types are matching their according field types!
    Any help would be appreciated!
    reinski

    Ok, I needed to help myself and this is what I found out:
    If the table already contains records, it is not enough to doresult.moveToInsertRow();but I must beresult.last();
    result.moveToInsertRow();I didn't find any explanation and even the code examples from the Sun tutorial don't mention this, so I guess it's a bug occurring in my poor IT environment: DB server running mySQL 5.0.0-alpha on a P1-233-MMX w/ 64MB under WinNT4 (hey don't laugh!!^^).
    Maybe this information is of use to someone having similar problems...
    Greetings!
    reinski

Maybe you are looking for