Routing-Sequences Error in co11n

Dear all,
Can any one please share the screen shots how to process the sequences in routing
I have tried by using help portal but i dint get any differences on that.
While confirming in co11n,that particular sequences also not get displayed in sequence column.
Regards
Rajasekaran

Dear Raja Sekaran,
Check this link to understand more about alternative and parallel sequences.
Why Rate Routing is (recommended) used in Repetitive Manufacturing?
Alternative sequence of operation can be created only through routing and when it comes to production
order you can copy either the standard sequence or the alternative sequence of operation.
During production order confirmation in CO11N,in the F4 option you can see the entire list of operation
along with the sequence.
First ensure you have parallel sequence of operation exists in the routing level and then the same gets
copied to the production order and at the time of confirmation you can see the list display.
Check and come back.
Regards
Mangalraj.S

Similar Messages

  • Function sequence error

    Hi Chris, we where using this Java code with TimesTen 5.1.34:
    while (rs.next()) {
    associatedMsbs.add(Integer.toString(rs.getInt(HGROUPID)));
    // Prepare object to insert in database
    SvcLog_VO svcLog = new SvcLog_VO();
    svcLog.setLogId(svcLogDAO.getlogIdNextVal(conn));
    svcLog.setService( CommonConstants.MobileSwitchboardSvcId );
    svcLog.setOperType( CommonConstants.OPER_TYPE_UPDREL );
    svcLog.setEntityType( CommonConstants.ENTITY_TYPE_MOBILESWITCHBOARD);
    svcLog.setEntityId( rs.getInt(HGROUPID) );
    svcLog.setRelEntityId( woUserId );
    // Insert object in database
    svcLogDAO.insertData(svcLog, conn);
    This code no longer works in TimesTen 7.0.3. We receive the following error:
    [TimesTen 7.0.3.0.0 ODBC Driver]Function sequence error.
    We had to change the code this way:
    while (rs.next()) {
    // Prepare object to insert in database
    SvcLog_VO svcLog = new SvcLog_VO();
    svcLog.setLogId(svcLogDAO.getlogIdNextVal(conn));
    svcLog.setService( CommonConstants.MobileSwitchboardSvcId );
    svcLog.setOperType( CommonConstants.OPER_TYPE_UPDREL );
    svcLog.setEntityType( CommonConstants.ENTITY_TYPE_MOBILESWITCHBOARD);
    svcLog.setEntityId( rs.getInt(HGROUPID) );
    svcLog.setRelEntityId( woUserId );
    // Store object in ArrayList
    svcLogs.add(svcLog);
    // Insert the objects in the ArrayList in database
    for (int i = 0; i < svcLogs.size(); i++) {
    SvcLog_VO svcLog = (SvcLog_VO)svcLogs.get(i);
    svcLogDAO.insertData(svcLog, conn);
    Once we split the code in two, first iterating the ResultSet and then inserting the objects, it works properly again. Is there any known issue in TimesTen about this?
    Thanks in advance,

    Hi, Chris:
    The code where this occurs is the following:
    public void insertParameters(String xxx1, String xxx2, String xxx3,
    int xxx4, Connection conn) throws TTException, SQLException {
    PreparedStatement ps = null;
    String query = null;
    try {
    query = queryInsert;
    ps = conn.prepareStatement(query);
    ps.setInt(1, xxx1);
    ps.setString(2, xxx2);
    ps.setString(3, xxx3);
    ps.setString(4, xxx4);
    // If debug is activated, the query is printed
    if (log.isDebugEnabled()) {
    ReadableQuery rq = new ReadableQuery();
    rq.addParam(new Integer(xxx1));
    rq.addParam(new String(xxx2));
    rq.addParam(new String(xxx3));
    rq.addParam(new String(xxx4));
    log.debug(" Query to execute .. [" + rq.get(query) + "]");
    ps.executeUpdate();
    // Exception handling
    catch (Exception ex) {
    log.error(ex);
    throw new TTException(ex);
    } // Resources are closed
    finally {
    try {
    if (ps != null) {
    ps.close();
    } catch (SQLException e) {
    log.error("Error closing JDBC resources");
    throw e;
    This method accesses to DDBB and inserts data in a table with the following structure
    Command> desc wo.bs_tb_bsvc_param_values;
    Table XXXXXXX:
    Columns:
    *aaa                          TT_INTEGER NOT NULL
    *bbb                       TT_CHAR (35) NOT NULL
    ccc TT_CHAR (10) NOT NULL
    ddd TT_CHAR (256) NOT NULL
    1 table found.
    (primary key columns are indicated with *)
    Command>
    Thanks.

  • Function sequence error. in 64bit Windows 2008 Server.

    Hi All,
    Pardon me if the posting is not in the correct group.
    I am migrating my application from 32bit(Windows 2003 Server) to 64bit (Windows 2008 Server R2).
    I am getting the following while trying to execute a SQL command
    Encountered ODBC error -1: S1010, 0, [Microsoft][ODBC Driver Manager] Function sequence error .
    Basically internal function call is SQLExecute() function call. This works perfectly for Windows 2003 Server 32bit. I tried the command execute at the background from the command prompt and it is working.
    I checked the squence of call.We have two consecutive SQLBindParameter function call and then we call SQLExecute. Is this sequence incorrect in case of 64bit? I also checked the return code given by SQLExecute which is 99.
    Any help or suggestion would be very much appreciated.
    Thanks,
    -R

    Hi Teun,
    Yes i have build the addon & installer with x86. I am using Interop.SAPbouiCOM.dll ,  Interop.SAPbouiCOM.dll, System.dll , System.XML.dll.
    I have not specified the relative path in code as such but iam loading my forms Load batch action i don't know if it ok in this scenario or not.
    Building the Solution/Project is Successful without any warning.
    While debugging it on my server it gives the same error "Object Reference Not Set to an Instance of an Object".
    Debug Out put last errors are as follows:
    A first chance exception of type 'System.IndexOutOfRangeException' occurred in mscorlib.dll
    'TAMPA800.exe': Loaded 'C:\Windows\SysWOW64\sxs.dll'
    First-chance exception at 0x76afe124 in TAMPA800.exe: Microsoft C++ exception: EEMessageException at memory location 0x0036ecec..
    A first chance exception of type 'System.IO.FileNotFoundException' occurred in TAMPA800.exe
    A first chance exception of type 'System.NullReferenceException' occurred in TAMPA800.exe
    The thread 'Win32 Thread' (0x460) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0xdb8) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0xfdc) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0xfb4) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0xdc8) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0xe04) has exited with code 0 (0x0).
    The program '[3872] TAMPA800.exe: Managed' has exited with code 0 (0x0).
    The program '[3872] TAMPA800.exe: Native' has exited with code 0 (0x0).
    Regards
    John

  • [ODBC Driver Manager] Function sequence error

    Hi all,
    i´m trying to built an webservice and if i try to run my code i get following
    error: [ODBC Driver Manager] Function sequence error .CAn someone tell me what
    this means?
    Here comes my code:
         static String Daten(int Nummer)
                        java.sql.Connection conn = null;
                        java.sql.Statement stmt = null;
                   try
                                                           Context ctx = null;
                                                           Hashtable ht = new Hashtable();
                                                           ht.put(Context.INITIAL_CONTEXT_FACTORY,
                                                                          "weblogic.jndi.WLInitialContextFactory");
                                                           ht.put(Context.PROVIDER_URL,
                                  "t3://localhost:7001");
                                  // Get a context for the JNDI look up
                                  ctx = new InitialContext(ht);
                                  javax.sql.DataSource ds
                                  = (javax.sql.DataSource) ctx.lookup ("webservice-data-source");
                                  conn = ds.getConnection();
                                  System.out.println("Making connection...\n");
                                  // execute some SQL statements to demonstrate the connection.
                                  stmt = conn.createStatement();
                                  System.out.println("Vor ResultSet");
                                                 ResultSet result = stmt.getResultSet(); //Bringt Fehler
                                                 final Vector erstespalte = new Vector();
                                                 final Vector zweitespalte = new Vector();
                                                 final Vector drittespalte = new Vector();
                                                 final Vector Zeilen;
                                                 final Vector end = new Vector();
                                  try {//2.Block
                                                 stmt.executeQuery("Select * from Person where Kundennummer=5");
                                                 while(result.next())
                                                                erstespalte.add(result.getObject(1));
                                                                zweitespalte.add(result.getObject(2));
                                                                drittespalte.add(result.getObject(3));
                                                           Zeilen = new Vector();
                                                                     for(Enumeration a = erstespalte.elements() ; a.hasMoreElements()
                                                                                    for(Enumeration b = zweitespalte.elements() ;b .hasMoreElements()
                                                                                              for(Enumeration c = drittespalte.elements() ; c.hasMoreElements()
                                                                                                   Zeilen.add(a.nextElement());
                                                                                                   Zeilen.add(b.nextElement());
                                                                                                   Zeilen.add(c.nextElement());
                                                                                                   end.add(Zeilen);
                                                                               }System.out.println(end);
                                                           result.close();
                                       }//2.try-Block
                   catch (SQLException e) {
                        System.out.println(e);
                                  }//1.try-Block schliessen
                                  catch (Exception e) {
                             System.out.println("Exception was thrown: " + e.getMessage());
                                            finally {
                                                      try {
                                                      if (stmt != null)
                                                           stmt.close();
                                                      if (conn != null)
                                                           conn.close();
                                                      catch (SQLException sqle) {
                                                      System.out.println("SQLException during close(): " + sqle.getMessage());
                                                      }//finally-Block schliessen
                                            return ("HAllo");
              }//Methode abschliessen
    Thank you very much for helping !!!

    Please post this in the JDBC newsgroup: weblogic.developer.interest.jdbc
    Also, please include your full error message.
    -- Rob
    Hakan wrote:
    Hi all,
    i´m trying to built an webservice and if i try to run my code i get following
    error: [ODBC Driver Manager] Function sequence error .CAn someone tell me what
    this means?
    Here comes my code:
    static String Daten(int Nummer)
    java.sql.Connection conn = null;
    java.sql.Statement stmt = null;
    try
    Context ctx = null;
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL,
    "t3://localhost:7001");
    // Get a context for the JNDI look up
    ctx = new InitialContext(ht);
    javax.sql.DataSource ds
    = (javax.sql.DataSource) ctx.lookup ("webservice-data-source");
    conn = ds.getConnection();
    System.out.println("Making connection...\n");
    // execute some SQL statements to demonstrate the connection.
    stmt = conn.createStatement();
    System.out.println("Vor ResultSet");
    ResultSet result = stmt.getResultSet(); //Bringt Fehler
    final Vector erstespalte = new Vector();
    final Vector zweitespalte = new Vector();
    final Vector drittespalte = new Vector();
    final Vector Zeilen;
    final Vector end = new Vector();
    try {//2.Block
    stmt.executeQuery("Select * from Person where Kundennummer=5");
    while(result.next())
    erstespalte.add(result.getObject(1));
    zweitespalte.add(result.getObject(2));
    drittespalte.add(result.getObject(3));
    Zeilen = new Vector();
    for(Enumeration a = erstespalte.elements() ; a.hasMoreElements()
    for(Enumeration b = zweitespalte.elements() ;b .hasMoreElements()
    for(Enumeration c = drittespalte.elements() ; c.hasMoreElements()
    Zeilen.add(a.nextElement());
    Zeilen.add(b.nextElement());
    Zeilen.add(c.nextElement());
    end.add(Zeilen);
    }System.out.println(end);
    result.close();
    }//2.try-Block
    catch (SQLException e) {
    System.out.println(e);
    }//1.try-Block schliessen
    catch (Exception e) {
    System.out.println("Exception was thrown: " + e.getMessage());
    finally {
    try {
    if (stmt != null)
    stmt.close();
    if (conn != null)
    conn.close();
    catch (SQLException sqle) {
    System.out.println("SQLException during close(): " + sqle.getMessage());
    }//finally-Block schliessen
    return ("HAllo");
    }//Methode abschliessen
    Thank you very much for helping !!!

  • MFBF and Alternative Routing Sequence

    Hi;
    We are using REM in PP.We confirm via MFBF. And we create routings via ca01. I want to use alternative routing sequence during confirmation.
    What should I do? or Is it possible for REM?
    Thanks.

    Hi;
    Thanks for your answers. I dont want to create new production versions. But routing informations are change.
    Ex: I have two machines in a production line, lets say it A and B. This line has a work center code in SAP ( lets says Line1)
    When I use only machine A I produce 100 pieces in 5 minutes with 2 worker. But when I use A & B at the same time I produce 100 pieces in 3 minutes with 3 worker.
    Machine A and B are connected to the same conveyor belt, so I put the pieces in the same palette. And during confirmation I use Line1 as workcenter.
    What should I do to post the exact activities ?
    Thanks for your information.

  • Running SQL Procedure with dg4msql errors: Function sequence error HY010

    I am trying to execute a stored procedure on a SQL database and get the error Function sequence error HY010.
    A simple query on a table returns teh expected result.
    I have a single Win2008R2 server with MSSQL Express 2008 and Oracle 11gR2 (32bit not 64bit version of Oracle)
    Below is the gateway init, listener and tnsnames files and the query I am trying to run:
    -- initORIONWASP.ora --
    HS_FDS_CONNECT_INFO=INGRDB//waspForGIS
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    HS_CALL_NAME=dbo.spTest;dbo.spQueryAsset;dbo.spQueryAssetDetails
    HS_FDS_PROC_IS_FUNC=TRUE
    HS_FDS_RESULTSET_SUPPORT=TRUE
    -- Listener.ora -- (partial)
    (SID_DESC =
    (SID_NAME = ORIONWASP)
    (ORACLE_HOME = C:\Oracle\product\11.2.0\dbhome_1)
    (PROGRAM=dg4msql)
    -- tnsnames.ora -- (partial)
    ORIONWASP =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=INGRDB)(PORT=1521))
    (CONNECT_DATA=(SID=ORIONWASP))
    (HS=OK)
    -- Simple Query --
    Running select "Asset_ID" from asset@ORIONWASP; returns the correct result
    Running select * from sys.procedures@ORIONWASP; returns a list of procedures including the procedure I want to run
    -- This pl/sql block returns the error ******* identifier 'spTest@ORIONWASP' must be declared *******
    declare
    begin
    "spTest"@ORIONWASP;
    end;
    -- This passthrough pl/sql block returns ******** [Oracle][ODBC SQL Server Driver]Function sequence error {HY010} ********
    DECLARE
    CRS BINARY_INTEGER;
    RET BINARY_INTEGER;
    v_COL1 VARCHAR2(50);
    v_COL2 VARCHAR2(50);
    BEGIN
    CRS := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@ORIONWASP;
    DBMS_HS_PASSTHROUGH.PARSE@ORIONWASP(CRS, 'exec spTest');
    BEGIN
    RET := 0;
    WHILE (TRUE)
    LOOP
    ret := DBMS_HS_PASSTHROUGH.FETCH_ROW@ORIONWASP(CRS, FALSE);
    DBMS_HS_PASSTHROUGH.GET_VALUE@ORIONWASP(CRS, 1, v_COL1);
    DBMS_HS_PASSTHROUGH.GET_VALUE@ORIONWASP(CRS, 2, v_COL2);
    DBMS_OUTPUT.PUT_Line('Col1:'||v_COL1||' Col2:'||v_COL2);
    END LOOP;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    BEGIN
    DBMS_OUTPUT.PUT_LINE('End of Fetch');
    DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@ORIONWASP(CRS);
    END;
    END;
    END;
    /

    The gateway configuration file contains:
    HS_FDS_PROC_IS_FUNC=TRUE
    HS_FDS_RESULTSET_SUPPORT=TRUE
    This setting commonly causes problems and you need to set
    HS_FDS_PROC_IS_FUNC=TRUE
    HS_FDS_RESULTSET_SUPPORT=FALSE
    for normal procedure calls and
    HS_FDS_PROC_IS_FUNC=FALSE
    HS_FDS_RESULTSET_SUPPORT=TRUE
    when calling the procedure with ref cursors.
    There's a note in My Oracle Support that gives you examples how to call remote SQl Server procedures
         Note.197192.1 Different Methods How To Call MS SQL Server Procedures Using TG4MSQL - DG4MSQL
    and another one for the Sybase gateway but this code is similar for the SQL Server:
    Article-ID: Note 351400.1
    Title: How to Call a Remote Sybase Procedure Using TG4SYBS

  • Fetch out of sequence error

    Hi,
    I've a pro C code which is currently connecting to Oracle 9i DB through 8.0.6 client. Now I've recompiled the same code with 9.2.0.6 client. Whenever it comes to a code involving cursors, I'm getting a fetch out of sequence error. I use ref cursors with no FOR UPDATE clause. What else could be issue? PLease help
    Regards,
    David

    I'm pasting the relavant part.
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <ctype.h>
    #include <windows.h>
    #define CREW_FETCH_STARTUP          1000
    EXEC SQL BEGIN DECLARE SECTION;
    VARCHAR          la_s_dbcr_crew_id_startup          [1000][11];
    VARCHAR          la_s_dbcr_crew_name_startup          [1000] [8];
    short     int     li_cr_tmp_ind1_startup,
                   li_cr_tmp_ind2_startup;
    SQL_CURSOR CREW_ACTIVE_CUR;
    int vb_cr_sent_count = 0;
    EXEC SQL END DECLARE SECTION;
    EXEC SQL INCLUDE SQLCA;
    EXEC SQL INCLUDE GP_SQL_Def;
    EXEC ORACLE OPTION (MAXOPENCURSORS=20);
    EXEC SQL ALLOCATE :CREW_ACTIVE_CUR;
         EXEC SQL EXECUTE
         BEGIN
              PKG.PROCESS_CREW_STARTUP(:ls_cr_param_market_area, 2, :CREW_ACTIVE_CUR,
                                            :dummy1, :dummy2,                                                             :return_code, :return_msg);
    END;
    END-EXEC;
              for(ln_ctr1=0;ln_ctr1 < CREW_FETCH_STARTUP;ln_ctr1++) {
                   VAR_INIT(la_s_dbcr_crew_id_startup[ln_ctr1]);
                   VAR_INIT(la_s_dbcr_crew_name_startup[ln_ctr1]);
                   la_i_cr_tmp_ind1_startup[ln_ctr1] = 0;
                   la_i_cr_tmp_ind2_startup[ln_ctr1] = 0;
              EXEC SQL
              FETCH :CREW_ACTIVE_CUR
              INTO     :la_s_dbcr_crew_id_startup :la_i_cr_tmp_ind1_startup,
                   :la_s_dbcr_crew_name_startup :la_i_cr_tmp_ind2_startup;
              MessageBox(NULL,lc_s_crew_tmp_msg_str,lc_s_crew_tmp_msg_str,MB_OK);
              if (sqlca.sqlcode < 0)      {
                   if (DEBUG_CE)           {
                        sprintf(lc_s_crew_tmp_msg_str,"Error in Fetch Cursor(CREW_ACTIVE_CUR) (%s)",
                                                                                         sqlca.sqlerrm.sqlerrmc);
                        MessageBox(NULL,lc_s_crew_tmp_msg_str,lc_s_crew_tmp_msg_str,MB_OK);
                   return -1;
              }

  • SQL developer 3.1 throws Function sequence error

    Hi,
    I was able to connect to my remote timesten db and was able to compile and execute packages.
    I tried modifying one of my packages to include dbms_lock.sleep in my code and then compiled the package.
    while running the package i got some error related to locking.
    The strange this is after this i am not able to connect to the timesten db using sql developer.
    An error is thrown, "Could not connect to the database Function sequence error"
    I tried restarting the timesten server and then also the same error exists.
    How can i resolve this?
    regards
    Lal

    Hi,
    This looks like a problem with the SQL*Developer Early Adopter release itself so it would be better if you opened a new thread in the SQL*Developer forum -
    SQL Developer
    That is monitored by the developers more than this thread so they are more likely to see it.
    Regards,
    Mikei

  • Bank Routing Code error

    Hi gurus,
    i have a question regarding bank routing code error.
    Heres the scenario..
    Our vendor created 2 check request, one in US currency and one in AUD currency.
    When I executed the payment run, the payment doc that was in US currency was received by citibank, however, the other doc which is in AUD currency was not received.
    Checking at the vendor details, the bank maintained is a US bank. The error that was appearing at citibank is the the bank routing code. We tried to input the swift that was in check request but sap is requiring 9 digits.
    Can you please enlighten me, what's wrong with this?
    Thanks,
    John

    Hi John
    I had similar issue for Citibank, mexico. Our issue was that in idocs the bank routing code (as per the bank mapping) should appear in the segment E1IDB02 BB, field -  FIIBKUKN. The field FIIBKUKN takes the value from field 'Bank number' maintained in the Bank master data.
    So, if in your case the bank is picking the bank routing code from this field then you need to modify this field using a user exit as per the currency.
    Let me know if it works or you need any further clarification.
    Regards
    Nikhil Kothari
    Edited by: Nikhil Kothari on Dec 7, 2011 12:42 PM

  • Business Rule Sequence Error in Planning

    Hello Everyone,
    I have a Planning application where users can run a sequence of rules by going to Tools > Business Rules and selecting the sequence. The sequence has about 8 rules in it. The sequence errors after the 7th rule (a currency conversion/calculation which takes upwards of 12 minutes). The logs do not say anything about an error, however, it does say that the active user was cleared on the database. (The BR log says that the rule never finished but the Essbase log says that it finished. The following rule in the sequence never starts.
    Note: The business rule sequence completes without errors when the sequence is started from Essbase Administration Services.
    Is there some type of timeout/setting update I should look at or any suggestions on where to look within the business rule?
    Thank you,
    Mark

    Hi,
    Have a read of the following :- http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_hp_admin/ch02s07s04.html
    It explains how to set the threshold before business rules are run in the background to get around timeouts.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Log sequence error - possible causes?

    We're using C++, DBXML 2.1.7, with underlying Berkeley 4.3.28 - core 5 linux (2.6.16.28). We use transacted write's, with no nesting of transactions. We've been running with this version of DBXML for some time and this is the first time we've seen any sort of data corruption with the database.
    In this case, the database server was shutdown, and the system restarted - on restart, the database server core dumped. Repeated attempts to restart the database gave the same failure. We enabled error output for the Berkeley DB and we get the following errors:
    Finding last valid log LSN: file: 1 offset 8234100
    Recovery starting from [1][7965842]
    Log sequence error: page LSN 1 1664073; previous LSN 1 5236280
    Recovery function for LSN 1 8228918 failed on forward pass
    PANIC: Invalid argument
    PANIC: fatal region error detected; run recovery (repeated several times)
    followed by a segfault in libdb_cxx-4.3.so.
    So I have 2 questions, the first (and most important) being - how can the log file get corrupted? Is this an OS/file system problem? Or could we have a problem in our database server? It's relatively simple - there is a single thread for read's/write's, and a separate "checkpoint" thread that periodically calls the txn_checkpoint function. Something was just changed on the system that has to do with mirroring, specifically on the partition that holds our database, but I don't know the details (I can get the info, though).
    The second question - why is Berkeley choking on the error path, instead of causing a database panic? Granted, in this situation it would appear that we're hosed either way, but a panic is at least a little more user-friendy than a core dump. Looking at the core file, it appears that we've entered the error handling portion of dbenv_open, and the mp_handle of the environment object is NULL - we fail in the call to __dbenv_refresh because of that. (If you're interested, we rebuilt Berkeley with debug symbols - I can give you a stack trace with details for the segfault.)
    Oh, the startup flags for the database server are: DB_CREATE|DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_MPOOL|DB_INIT_TXN|DB_RECOVER|DB_THREAD
    Thanks!
    Wendy

    Thanks Michael -
    Here's the stack trace from one of the core files, generated with the debug version of the library:
    #0 0xb7d97c3a in __dbenv_refresh (dbenv=0x80b5430, orig_flags=1024,
    rep_check=0) at ../dist/../env/env_open.c:722
    #1 0xb7d9993d in __dbenv_open (dbenv=0x80b5430,
    db_home=0x80b5334 "/pivot3/repository/xml", flags=188513, mode=432)
    at ../dist/../env/env_open.c:415
    #2 0xb7d1fe78 in DbEnv::open (this=0xbfa94488,
    db_home=0x80b5334 "/pivot3/repository/xml", flags=188513, mode=0)
    at ../dist/../cxx/cxx_env.cpp:442
    #3 0x0804e0e8 in main (argc=134537448, argv=0xbfa94488) at dbserver.cxx:179
    As to the "why's": the database files are never moved (in normal operation - I did copy them to a similar system for debug, but the failure is the same on both systems), we always run recovery when we restart the server, we never physically access the environment outside of the server, and there is only one database server on the system, so no "cross contamination" from another server (basically, we're using DBXML as an embedded database to store configuration information - we have it running on multiple, identical systems, and this is the first time in over 2 years that we've seen any sort of database corruption).
    So based on what you've said, the only other real possibility is if something happened to the partition holding the log file (all of the database files are on the same partition). Would there be any smoking guns we could look for on the physical system that might indicate what happened? The system that the failure originally occurred on is still in the 'last booted' state, in case there was anything that we could look for. The partition mirroring changes were just made this past week, which is why we thought it might be something at a lower level.
    I just ran db_printlog and the entry for 1664073 looks like this:
    [1][1664073]__bam_repl: rec: 58 txnid 80000047 prevlsn [0][0]
    fileid: 21
    pgno: 3
    lsn: [1][8228918]
    indx: 3
    isdeleted: 0
    orig: 0xc
    repl: 0x11
    prefix: 8
    suffix: 23
    The other record (5236280) does not exist in the log file, based on the output from db_printlog.
    If there's anything else from the log print that you need, just let me know.
    Thanks!

  • Function sequence error / Recursive functions error

    Hi! I've a little problem over here. I have an application (servlet) that makes recursive functions with DB access. This function contains a resultset that calls the same function again until no more data is found. The problem, is that I'm using JDBC-ODBC bridge (because this must work in SQL Server, Informix, Sybase, Access and Oracle), so I need to make commit of the connection in every resultset. If I make the commit inside the resultset, I got a "Function Sequence error" exception. Of course, I can't close every statement inside the resultset (or at least I don't know how). My code looks like this:
    public void myfunction(String odbc,String data1,String data2) throws SQLException,Exception{
         //this class, myclassDB, just return a established connection with the DB
         Connection connection = myclassDB.connect(odbc);
         Statement statement = connection.createStatement();
         ResultSet rs = statement.executeQuery("query");
         while(rs.next()){
              //do something with the information
              //make recursive
              connection.commit();
              myfunction(odbc,data1,data2);
         statement.close();
         connection.close();
    }Hope you can help me!
    Feel free to email me at [email protected]
    Regards!     

    I am not really sure what the question is but...
    Presuming that there isn't something wrong with your design (which recursive calls suggest) then you need to extract all of the data, close the resultset/statement then do the recursive calls. If you do processing first then you can still commit on the connection.

  • Function Sequence Error -- After upgrading to Crystal Reports 2008

    Since we intergrated Crystal 2008 in our application, We are having the ODBC DRIVER ERROR "S1010, Function Sequence Error"
    The following steps reproduces the error.
    I open any crystal report(using my application) and close it.
    And then I try to close another dialog in my application.
    The destructor of that dialog has the DELETE FROM TMPRPT WHERE  etc... But actually the TMPRPT table is empty.
    But This Scenario in general, does not produce any error. Only after I open and close Crystal report, and when the TMPRPT table doesn't have any records, executing the above DELETE sql throws CDBException, Funciton Sequence Error.
    Is it because of the upgrade/mismatch of dlls? Can any one help how to work around this?
    Thanks.

    Hi Don,
    I would like to thank you for your helpful advice. your tips for odbc tracing really works.
    Just to simplify things, I have created a simple mfc dialog based application that opens a connection using CDatabase in the initdialog and closes the connection in the destructor(because that is how we do in our main large application). On the dialog i put a "Print" button and when i click it, I open a crystalreportform and fill the connectioninfo structure and then call SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument). on the Form_closed function, I close database connections  and close the report document.
    When I come back to mfc application I execute a Delete from table where 1 =0, basically any delete/update that return empty recordset and it throws function sequence error.
    BOOL CCrystalDemoDlgDlg::OnInitDialog()
         CDialog::OnInitDialog();
         ConnectDatabase() ;
         return TRUE;  // return TRUE  unless you set the focus to a control
    BOOL CCrystalDemoDlgDlg::ConnectDatabase()
         if ( m_Database.IsOpen() )
              m_Database.Close();
         // Process database open request.
         CString szConnection("DSN=CRYSTALTEST32;UID=DBA;PWD=picture");
                     !m_Database.OpenEx( szConnection, CDatabase::noOdbcDialog ) )
         return TRUE;
    BOOL CCrystalDemoDlgDlg::bExecuteSQL( CString SqlString )
                    if(m_Database.IsOpen())
         m_Database.ExecuteSQL( (LPCTSTR)SqlString );
         return TRUE;
    void CCrystalDemoDlgDlg::OnBnClickedBtnPrint()
         TRY
              bExecuteSQL(_T("DELETE FROM TMPRPT WHERE 1=0"));
              CrystalReportsForm ^ CRForm = gcnew CrystalReportsForm(gcnew System::String("ActvSumm1.rpt"));
              CRForm->ShowDialog();
              //CRForm->RunCrystalReports();
              delete CRForm;
              CRForm = nullptr;
              bExecuteSQL(_T("DELETE FROM TMPRPT WHERE 1=0"));
         CATCH(CDBException, e)
              AfxMessageBox( e->m_strError );
              return ;
         END_CATCH     
    the following is the code in crystalreports library
    namespace CR2008Library
        public partial class CrystalReportsForm : Form
            private ReportDocument _reportDocument;
            private string _reportFile = "C:\\Nomadic\\Report\\";
            public CrystalReportsForm(string reportFile)
                InitializeComponent();
                     _reportDocument = CreateReportDocument(reportFile);
            private ReportDocument CreateReportDocument(string reportFile)
                ReportDocument newDocument = new ReportDocument();
                _reportFile += reportFile;
                newDocument.Load(_reportFile);
                return newDocument;
            public void ConfigureCrystalReports()
                ConnectionInfo connectionInfo = new ConnectionInfo();
                connectionInfo.DatabaseName = "CRYSTALTEST";
                connectionInfo.UserID = "DBA";
                connectionInfo.Password = "picture";
                connectionInfo.ServerName = "CRYSTALTEST32";
                SetDBLogonForReport(connectionInfo, _reportDocument);
                crystalReportViewer.ReportSource = _reportDocument;
            private void SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument)
                Tables tables = reportDocument.Database.Tables;
                foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
                    TableLogOnInfo tableLogonInfo = table.LogOnInfo;
                    tableLogonInfo.ConnectionInfo = connectionInfo;
                    table.ApplyLogOnInfo(tableLogonInfo);
            public void CrystalReportForm_Load(object sender, EventArgs e)
                ConfigureCrystalReports();
            private void CrystalReportsForm_FormClosed(object sender, FormClosedEventArgs e)
                DisposeCR();
            private void DisposeCR()
                // Clean up by closing and disposing of the ReportDocument object
                if (_reportDocument != null)
                    if (_reportDocument.Database.Tables.Count > 0)
                        Tables tables = _reportDocument.Database.Tables;
                        foreach (Table table in tables)
                            table.Dispose();
                    _reportDocument.Database.Dispose();
                    _reportDocument.Close();
                    _reportDocument.Dispose();
                _reportDocument = null;
    I have the log file which doesn't show any error in crystalreports library. I am giving some of the log file for your reference to see what's happening while exiting from crystal and executing the problem sql
    CrystalDemoDlg  16c8-e8c     EXIT  SQLFetch  with return code 0 (SQL_SUCCESS)
              HSTMT               00F41CC0
    CrystalDemoDlg  16c8-e8c     ENTER SQLFetch
              HSTMT               00F41CC0
    CrystalDemoDlg  16c8-e8c     EXIT  SQLFetch  with return code 100 (SQL_NO_DATA_FOUND)
              HSTMT               00F41CC0
    CrystalDemoDlg  16c8-e8c     ENTER SQLCloseCursor
              SQLHSTMT            00F41CC0
    CrystalDemoDlg  16c8-e8c     EXIT  SQLCloseCursor  with return code 0 (SQL_SUCCESS)
              SQLHSTMT            00F41CC0
    CrystalDemoDlg  16c8-e8c     ENTER SQLFreeHandle
              SQLSMALLINT                  3 <SQL_HANDLE_STMT>
              SQLHANDLE           00F41CC0
    CrystalDemoDlg  16c8-e8c     EXIT  SQLFreeHandle  with return code 0 (SQL_SUCCESS)
              SQLSMALLINT                  3 <SQL_HANDLE_STMT>
              SQLHANDLE           00F41CC0
    CrystalDemoDlg  16c8-e8c     ENTER SQLDisconnect
              HDBC                00F427A0
    CrystalDemoDlg  16c8-e8c     EXIT  SQLDisconnect  with return code 0 (SQL_SUCCESS)
              HDBC                00F427A0
    CrystalDemoDlg  16c8-e8c     ENTER SQLFreeHandle
              SQLSMALLINT                  2 <SQL_HANDLE_DBC>
              SQLHANDLE           00F427A0
    CrystalDemoDlg  16c8-e8c     EXIT  SQLFreeHandle  with return code 0 (SQL_SUCCESS)
              SQLSMALLINT                  2 <SQL_HANDLE_DBC>
              SQLHANDLE           00F427A0
    CrystalDemoDlg  16c8-e8c     ENTER SQLFreeHandle
              SQLSMALLINT                  1 <SQL_HANDLE_ENV>
              SQLHANDLE           00F42718
    CrystalDemoDlg  16c8-e8c     EXIT  SQLFreeHandle  with return code 0 (SQL_SUCCESS)
              SQLSMALLINT                  1 <SQL_HANDLE_ENV>
              SQLHANDLE           00F42718
    CrystalDemoDlg  16c8-a34     ENTER SQLAllocStmt
              HDBC                00F419A0
              HSTMT *             0012E2C4
    CrystalDemoDlg  16c8-a34     EXIT  SQLAllocStmt  with return code 0 (SQL_SUCCESS)
              HDBC                00F419A0
              HSTMT *             0x0012E2C4 ( 0x00f41cc0)
    CrystalDemoDlg  16c8-a34     ENTER SQLSetStmtOption
              HSTMT               00F41CC0
              UWORD                        0 <SQL_QUERY_TIMEOUT>
              SQLPOINTER          0x0000000F
    CrystalDemoDlg  16c8-a34     EXIT  SQLSetStmtOption  with return code 0 (SQL_SUCCESS)
              HSTMT               00F41CC0
              UWORD                        0 <SQL_QUERY_TIMEOUT>
              SQLPOINTER          0x0000000F (BADMEM)
    CrystalDemoDlg  16c8-a34     ENTER SQLExecDirectW
              HSTMT               00F41CC0
              WCHAR *             0x03A30458 [      -3] "DELETE FROM TMPRPT WHERE 1=0\ 0"
              SDWORD                    -3
    CrystalDemoDlg  16c8-a34     EXIT  SQLExecDirectW  with return code 100 (SQL_NO_DATA_FOUND)
              HSTMT               00F41CC0
              WCHAR *             0x03A30458 [      -3] "DELETE FROM TMPRPT WHERE 1=0\ 0"
              SDWORD                    -3
    CrystalDemoDlg  16c8-a34     ENTER SQLNumResultCols
              HSTMT               00F41CC0
              SWORD *             0x0012E2B8
    CrystalDemoDlg  16c8-a34     EXIT  SQLNumResultCols  with return code -1 (SQL_ERROR)
              HSTMT               00F41CC0
              SWORD *             0x0012E2B8
              DIAG [S1010] [Microsoft][ODBC Driver Manager] Function sequence error (0)
    CrystalDemoDlg  16c8-a34     ENTER SQLErrorW
              HENV                00F418D8
              HDBC                00F419A0
              HSTMT               00F41CC0
              WCHAR *             0x0012DE00 (NYI)
              SDWORD *            0x0012E224
              WCHAR *             0x0012DE20
              SWORD                      511
              SWORD *             0x0012DE14
    CrystalDemoDlg  16c8-a34     EXIT  SQLErrorW  with return code 0 (SQL_SUCCESS)
              HENV                00F418D8
              HDBC                00F419A0
              HSTMT               00F41CC0
              WCHAR *             0x0012DE00 (NYI)
              SDWORD *            0x0012E224 (0)
              WCHAR *             0x0012DE20 [      56] "[Microsoft][ODBC Driver Manager] Function sequence error"
              SWORD                      511
              SWORD *             0x0012DE14 (56)
    CrystalDemoDlg  16c8-a34     ENTER SQLErrorW
              HENV                00F418D8
              HDBC                00F419A0
              HSTMT               00F41CC0
              WCHAR *             0x0012DE00 (NYI)
              SDWORD *            0x0012E224
              WCHAR *             0x0012DE20
              SWORD                      511
              SWORD *             0x0012DE14
    I know that my post is too long, but i would like to give enough information for you to see what's happening. I use visual studio 2008 with crystal library 2008.
    Thanks,
    Lavanya.

  • Intermittent Function sequence error in JDBC - ReferenceManager too eager?

    Hello,
    I'm experiencing intermittent "function sequence error" when executing the first next() on a resultset.
    The java code:
    protected String getNextSequenceId(Connection con) throws DAOException {
    String nextVal = null;
    PreparedStatement ps = null;
    ResultSet rs = null;
    try {
    ps = getPreparedStatement(con, "SELECT sq_JobsID.NEXTVAL FROM DUAL");
    ps.executeQuery();
    rs = ps.getResultSet();
    if(rs.next()) {
    nextVal = rs.getString(1);
    } catch(SQLException se) {
    handleSQLException(se);
    } finally {
    closeResultSet(rs);
    closeStatement(ps);
    return nextVal;
    Enabling timesten trace logging reveals that the ReferenceManager finalizes the resultset before I get a chance to read from it. Any idea what could be done to prevent this?
    Would changing to code to do "rs=ps.executeQuery();" instead of "ps.executeQuery(); rs = ps.getResultSet();" fix the problem?
    Thanks.
    BTW, I'm using TimesTen 7.0.3. The problem was seen both on Windows XP and Solaris 10.
    TimesTen Trace log:
    HttpThreadPool-8*JdbcOdbc.SQLPrepare(184632064, SELECT sq_JobsID.NEXTVAL FROM DUAL)
    HttpThreadPool-8*JdbcOdbc.SQLGetStmtOption(184632064, 3031)
    HttpThreadPool-8*JdbcOdbc.SQLGetStmtOption(184632064) Returning value = 0
    HttpThreadPool-8*JdbcOdbc.SQLNumParams(184632064)
    HttpThreadPool-8*JdbcOdbc.SQLNumParams(184632064) Returning: numParams = 0
    HttpThreadPool-8*Connection.registerStatement(com.timesten.jdbc.JdbcOdbcPreparedStatement@114c15d)
    HttpThreadPool-8*PreparedStatement.executeQuery()
    HttpThreadPool-8*PreparedStatement.execute()
    HttpThreadPool-8*JdbcOdbc.SQLExecute(184632064)
    HttpThreadPool-8*JdbcOdbc.SQLExecute(184632064): Returning needData=false
    HttpThreadPool-8*JdbcOdbc.SQLNumResultCols(184632064)
    HttpThreadPool-8*JdbcOdbc.SQLNumResultCols(hStmt=184632064): Returning numCols = 1
    HttpThreadPool-8*Statement.getResultSet()
    HttpThreadPool-8*JdbcOdbc.SQLNumResultCols(184632064)
    HttpThreadPool-8*JdbcOdbc.SQLNumResultCols(hStmt=184632064): Returning numCols = 1
    HttpThreadPool-8*JdbcOdbc.SQLAllocAndBindCols(184632064)
    HttpThreadPool-8*Statement.getResultSet()
    HttpThreadPool-8*ReferenceManager.handleReference(com.timesten.jdbc.BasicPhantomReference@1d43f63)
    HttpThreadPool-8*JdbcOdbcResultSet.doPostFinalization(com.timesten.jdbc.JdbcOdbcResultSet@18dacb5)
    HttpThreadPool-8*JdbcOdbcResultSet.close()
    HttpThreadPool-8*JdbcOdbc.SQLFreeStmt(184632064, 0)
    HttpThreadPool-8*JdbcOdbcResultSet.next()
    HttpThreadPool-8*JdbcOdbc.SQLFetch(184632064)
    HttpThreadPool-8*JdbcOdbc.standardError(-1, 0, 0, 184632064)
    HttpThreadPool-8*JdbcOdbc.createSQLException(0, 0, 184632064, true, true)
    HttpThreadPool-8*JdbcOdbc.createSQLException:Reason = [TimesTen][TimesTen 7.0.3.0.0 ODBC Driver]Function sequence error; SQLstate = S1010; VendorCode = 0

    Hi,
    Are you using Spring or Apache? If so, here is some information from one of my colleagues that may be relevant.
    They should turn OFF the singleton for the DAO bean (each DAO bean should NOT use a singleton query variable).
    <bean id="procDAO" class="vae.data.dao.ProcDAO" destroy-method="close" singleton="false">
              <property name="procDAOPool"><ref bean="procDAOPool"/></property>
              <property name="timeAlloted"><value>${db.query.TimeAlloted}</value></property>
              <property name="timeAllotedConf"><value>${db.query.TimeAllotedConf}</value></property>
              <property name="counter"><value>${db.query.Counter}</value></property>
              <property name="msgLimitPicContent"><value>${msgLimitPicContent}</value></property>
              <property name="msgLimitBinaryStandard"><value>${msgLimitBinaryStandard}</value></property>
              <property name="msgLimitNormalSMS"><value>${msgLimitNormalSMS}</value></property>
              <property name="txnCommit"><value>true</value></property>
    </bean>
    What happens is that, when the query variable (the PreparedStatement) is a singleton, which seems to be the default on Spring, at low load levels everything is OK. However as the # of transactions increase, you have a case where
    1) connection #1 enters the DAO bean and executes
    2) connection #2 enters the bean and executes
    3) connection #1 does executeQuery and getResultSet
    4) connection #2 does executeQuery -- this INVALIDATES the resultset obtained by connection #1
    5) when connection #1 tries to do getString the error comes out since the resultset is invalid
    Could you let me know if this is your issue or not.
    Thanks,
    Chris

  • How to create parallel routing sequence

    how to create parallel routing sequence?
    we have routings 3010 ,3020 ,3030 and 3040.
    but 3010,3020 and 3030 operationwise shop list to be released at one time becuse they all are parallel operations.
    after 3010,3020 and 3030 operations 3040 is a sequencial operation.
    please do explain the process how to create parallel routing sequence in this case
    and confirmation of operations
    thanking you
    srinivas

    Srinivas,
    i think you are looking at an option were in you can confirm or do goods Issue for the order. If that was the requirement, then the control is in customizing transaction "OPK4".
    Here in this transaction you need to define "operation sequence is not checked" for the plant/order type combination.
    Hope this helps....Please let me know if your need is something else,
    Regards,
    Prasobh

Maybe you are looking for

  • Why is my iPhone 5S randomly vibrating?

    Since getting my new iPhone 5S a few days ago, it has been continually randomly playing a Ding tone like I was getting an incoming e-mail message. I checked all of my apps and their sounds, and the general sounds, and it appeared that the only app th

  • Creating a wireless guest network.

    Good afternoon, I'm trying to set up a guest network for my lad to use with his Xbox 360, laptop, iphone, etc. At present I have my iMac, Airport Extreme Base Station, Airport Express all connected to my Sky broadband router. I also watch films on my

  • "is an invalid session name" error during publishing in workshop

    Hello, I use OSB workshop and WebLogic server. When I publishing my project I get error: javax.management.RuntimeMBeanException.java.lang.IllegalArgumentException: is an invalid session nameI tried to reinstall domain but there is the same result. Th

  • Debug an USER-EXIT which is present inside an INCLUDE

    Hi folks, i want to debug a include ' LVEDFF0E.' which is present in the program  'SAPLVEDF. my user exit 'ZXEDFU02' is present in the include LVEDFF0E . This exit is to change the IDOC segmants. i want to debug my user exit which is present inside a

  • "Share over Wan" - passworded but log files say differently?

    In a desperate attempt to get backup features to work on my TC, I enabled "Share over Wan". Thinking that I've got more than enough security with disk passwords, I didn't automatically think there'd be a problem. I then looked at my log files on my T