Invalid Cursor error when modifying Assignment details - Transfer workflow

Hi,
We're trying to submit a Transfer transaction but if we try to modify any field in the Assignment details screen, we're getting a system error, and sometimes we see ORA-01001: invalid cursor error. We have already checked the database objects (procedures, packages, triggers) and we don't see any code which has an invalid use of a cursor. Does anyone have a clue on the cause of this error?

This is just a guess,
all you cursors are being opened regardless of any condition, for example;
OPEN CUT(:NEW.LAYOUT_NO);
OPEN DET(:NEW.LAYOUT_NO);
OPEN ITM(:NEW.LAYOUT_NO);
OPEN LOT(:NEW.LAYOUT_NO);
OPEN DTN(:NEW.LAYOUT_NO, :NEW.CUT_NO, :NEW.NOTE);UNA however is opened after a condition;
IF DTN%NOTFOUND THEN
  /** start --added for cha 2011-3172 6/14/2011 **/
      OPEN UNA(:NEW.LAYOUT_NO, :NEW.ACCOUNT_NO);All cursors arel however closed regardless, i.e. they are all assumes to be open;
  CLOSE CUT;
  CLOSE DET;
  CLOSE DTN;
  CLOSE ITM;
  CLOSE LOT;
  CLOSE STAT;
  CLOSE UNA;So I think you are closing the UNA cursors wen it is in fact not open.
So, move the "CLOSE UNA;" line of code to before the END IF; on line 278, since that is when it will definitely be open.

Similar Messages

  • Invalid Cursor Error when executing a form

    I am getting the following error
    "Error Executing Cursor
    ORA-01001: invalid cursor"
    when I try to "Submit" information in a form based on the procedure below. What's the problem?! The procedure compiles fine.
    create or replace procedure MARKETING_FORM_2_7
    (ToAdd in Varchar2,
    FromAdd in Varchar2,
    Subject in Varchar2,
    SenderName in Varchar2,
    Branch in Varchar2,
    Phone in Varchar2,
    Address in Varchar2,
    Suggestion in Varchar2,
    SalesPromo in Varchar2,
    TradeshowPrep in Varchar2,
    SalesMaterials in Varchar2,
    DirectMail in Varchar2,
    CounterDays in Varchar2,
    BranchCustData in Varchar2,
    Other in Varchar2,
    ProjectName in Varchar2,
    Purpose in Varchar2,
    Audience in Varchar2,
    WhoPay in Varchar2,
    Deadline in Varchar2,
    Progress in Varchar2,
    EmployeeUpdate in Varchar2,
    WESCOWin in Varchar2,
    DescribeWin in Varchar2,
    PotentialValue in Varchar2,
    PartBranches in Varchar2,
    SignifPeople in Varchar2,
    SpecialFactors in Varchar2)
    is
    mailhost Varchar2(15) :='CLAPTON';
    mail_conn utl_smtp.connection;
    crlf varchar2(2):=chr( 13 )||chr( 10 );
    mesg varchar2(5000);
    begin
    mail_conn := utl_smtp.open_connection(mailhost,25);
    mesg:= 'From: <'||FromAdd||'>' ||crlf ||
    'To: '||ToAdd || crlf ||
    'Subject: '||Subject || crlf ||
    '' ||crlf||
    'Name: '||SenderName || crlf ||
    'Branch: '||Branch || crlf ||
    'Phone: '||Phone || crlf ||
    'Address: '||Address || crlf ||
    'Comment or Suggestion: ' || Suggestion || crlf ||
    'Sales Promotion Assistance: '|| SalesPromo || crlf ||
    'Tradeshow Assistance: '|| TradeshowPrep || crlf ||
    'Sales Materials or Presentations Assistance: '|| SalesMaterials || crlf ||
    'Direct Mail Assistance: '|| DirectMail || crlf ||
    'Counter Days Assistance: '|| CounterDays || crlf ||
    'Customer Database Assistance: '|| BranchCustData || crlf ||
    'Other: '|| Other || crlf ||
    'Project Name: '|| ProjectName|| crlf ||
    'Purpose: '|| Purpose || crlf ||
    'Indended Audience: '|| Audience || crlf ||
    'Who Will Pay?: ' || WhoPay || crlf ||
    'Deadline: '|| Deadline || crlf ||
    'Progress Made: ' || Progress || crlf ||
    'Mailing List Update: ' || EmployeeUpdate || crlf ||
    'WESCO Win: '|| WESCOWin || crlf ||
    'Win Description: ' || DescribeWin || crlf ||
    'Contract Value/Potential Sales: '|| PotentialValue || crlf ||
    'Participating Branches: '|| PartBranches || crlf ||
    'Significant Contributors: '|| SignifPeople || crlf ||
    'Special Factors: '|| SpecialFactors;
    utl_smtp.helo(mail_conn, mailhost);
    utl_smtp.mail(mail_conn, FromAdd);
    utl_smtp.rcpt(mail_conn, ToAdd);
    utl_smtp.data(mail_conn, mesg);
    utl_smtp.quit(mail_conn);
    end;

    Try executing the procedure independently (say from sqlplus) to see whether the procedure works fine.
    Alternatively, try commenting out the calls to the utl_smtp packages to see whether the procedure works.

  • Some WMA files returning "invalid file" error when I try to transfer them to my MP3 pla

    Hello! I'm having a new problem with my Zen Micro this week. I have been using Walmart.com's music download service for a year or so now and have never had a problem with their files. All of a sudden this week, 2/3rds of the files I have downloaded will not transfer to my MP3 player. When I try to import them, the Zen Micro returns an error saying they are "invalid" files. Some files transfer fine -- others give me this error. I talked to Walmart about this and they said it's a problem with my MP3 player. Does anybody know what might be causing this? Should I be trying an upgrade to my Media Explorer program, or something like that?
    Thanks for any advice you can offer (and yes, I know Walmart is run by *******s, but at least they don't make me download a huge application before I can buy online music from them!).
    --Meg

    I had similar problems with downloads before I upgraded to PlaysForSure. Even though in theory you don't need PlaysForSure for pay as you go downloads, in practice the complex rights built into the music mean that it is the only guarantee that downloaded music will play for sure and correctly on your player. I would recommend upgrading to PlaysForSure firmware from the 'downloads' section of this website (you need windows xp service pack 2 and windows media player 0 first). Make sure you back up your music if possible first as all content will be erased when you upgrade firmware. You will then need to download the software suite for PlaysForSure zen micros to get MediaSource and MediaExplorer.
    Message Edited by joshua32 on 04-27-2006 05:28 PM

  • 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

  • "Invalid Cursor" Error in Form

    Hi,
    I wrote a procedure that take a REF CURSOR as an IN OUT argument. This procedure does an "OPEN cursor FOR qry" with a dynamic query:
    OPEN l_cursor FOR
           'SELECT A '||
             'FROM B '||
            'WHERE C = :l_var'
         USING myVar;After calling the procedure, I do a LOOP with FETCH.
    It works well when I use it in SQL*Plus with DBMS_OUTPUT but it returns a "ORA-01001 invalid cursor" error in Forms.
    Any help is welcome!
    Regards,
    Olivier.

    I found a solution on Metalink:
    Note:170881.1
    Note: 1007395.6
    Olivier.

  • Invalid cursor error in procedure

    i am writing a procedure in which i have make use of cursor........it is giving me error INVALID CURSOR
    on running
    i have used this cursor with WITH CLAUSE....
    when i am executing or running this procedure this giving me invalid cursor error
    create or replace
    procedure USP_UPDATEDRUGORDERDTL
    v_pServiceid IN NUMBER DEFAULT NULL ,
    v_pServRendered IN NUMBER DEFAULT NULL ,
    v_pSchDateTime IN DATE DEFAULT NULL ,
    v_pOrdQty IN FLOAT DEFAULT NULL ,
    v_billingclassid IN NUMBER DEFAULT NULL ,
    v_pOrdID IN NUMBER DEFAULT NULL ,
    v_UpdatedBy IN NUMBER DEFAULT NULL ,
    v_prender IN NUMBER DEFAULT 0 ,
    v_pInsertedByUserID IN VARCHAR2 DEFAULT NULL ,
    v_pInsertedON IN DATE DEFAULT NULL ,
    v_pDrugID IN NUMBER DEFAULT 0 ,
    v_pRate IN FLOAT DEFAULT 0 ,
    v_pBatchId IN NUMBER DEFAULT 0 ,
    v_OrderSource IN VARCHAR2 DEFAULT NULL ,
    v_pInsertedMacID IN VARCHAR2 DEFAULT NULL ,
    v_pInsertedIPAddress IN VARCHAR2 DEFAULT NULL ,
    v_pOldOrdID IN NUMBER DEFAULT NULL,
    v_plocid in char DEFAULT NULL
    AS
    vr_pConsumptionID NUMBER(10,0);
    vr_pSavedQty NUMBER(10,3);
    vr_pReturnQty NUMBER(10,3);
    vr_Qty NUMBER(10,3);
    begin
    vr_pSavedQty := 0;
    vr_pReturnQty := v_pOrdQty;
    declare
    cursor ordDtl_cur is -----cursor declaration
    with --- with clause used with cursor
    Q1 AS
    Select NVL(ConsumptionID,0) As ConsumptionID,Sum(OrdQty) As OrdQty,
    OrdID,DrugID,BatchID, locid from Orderdtl
    Where OrdID = v_pOldOrdID and DrugID = v_pDrugID And BatchID = v_pBatchID and NVL(Cancelled,0) = 0
    Group By OrdID,DrugID,BatchID,ConsumptionID
    Order By ConsumptionID asc
    Q2 AS
    SELECT NVL(OrderDtl.ConsumptionID,0) As ConsumptionID,(SUM(OrderDtl.OrdQty)) As OrdQty,
    IvPatientIssueReturnDtl.OrderID as OrdID,OrderDtl.DrugID,OrderDtl.BatchID,OrderDtl.locid
    FROM OrderDtl INNER JOIN
    IvPatientIssueReturnDtl ON OrderDtl.OrdID = IvPatientIssueReturnDtl.NewOrderId AND
    OrderDtl.DrugId = IvPatientIssueReturnDtl.ItemId AND OrderDtl.BatchId = IvPatientIssueReturnDtl.BatchId
    WHERE (OrderDtl.BatchId = v_pBatchID) AND (IvPatientIssueReturnDtl.OrderId = v_pOldOrdID)
    AND (OrderDtl.DrugID = v_pDrugID) and NVL(OrderDtl.Cancelled,0) = 0
    Group By IvPatientIssueReturnDtl.OrderID,OrderDtl.DrugID,OrderDtl.BatchID,OrderDtl.ConsumptionID
    Order By OrderDtl.ConsumptionID asc
    Select
    Q1.ConsumptionID,(Sum(NVL(Q1.OrdQty,0)) + Sum(NVL(Q2.OrdQty,0))) As OrdQty,
    Q1.OrdID,Q1.DrugID,Q1.BatchID,Q1.locid
    from
    Q1 ,Q2
    where
    Q1.OrdID =Q2.OrdID(+)
    and
    Q1.BatchID =Q2.BatchID(+)
    and
    Q1.DrugID =Q2.DrugID(+)
    and
    Q1.ConsumptionID =Q2.ConsumptionID(+)
    Group By Q1.OrdID,Q1.BatchID,Q1.DrugID,Q1.ConsumptionID;
    TYPE ordDtl_trec is TABLE of ordDtl_cur%ROWTYPE index by PLS_INTEGER;
    l_ordDtl ordDtl_trec; ---- cursor syntax
    begin
    if ordDtl_cur%ISOPEN then
    open ordDtl_cur; --------------opening cursor
    end if;
    loop
    -- fetch data into cursor---
    fetch ordDtl_cur
    bulk collect into
    l_ordDtl;
    -----perform logic--------------------
    for indx IN 1..l_ordDtl.COUNT loop
    if vr_pSavedQty <> vr_pReturnQty then
    If v_pOrdQty <= (vr_pReturnQty - vr_pSavedQty) then
    vr_pSavedQty := vr_pSavedQty + v_pOrdQty;
    vr_Qty := v_pOrdQty;
    else
    vr_Qty := (vr_pReturnQty - vr_pSavedQty);
    vr_pSavedQty := vr_pSavedQty + (vr_pReturnQty - vr_pSavedQty);
    end if;
    end if;
    end loop;
    exit when ordDtl_cur%NOTFOUND;
    end loop;
    CLOSE ordDtl_cur; ---- closing cursor
    end;
    end;

    Hello.
    Very simple.
    You are using cursor name before opening it.
    Here is the problem.
      if ordDtl_cur%ISOPEN then
       open ordDtl_cur; --------------opening cursor
      end if;
    end if;Please change your code like this
    comment IF statement use only OPEN  ordDtl_cur;
      ---- if ordDtl_cur%ISOPEN then
         open ordDtl_cur; --------------opening cursor
      --- end if;Thanks,
    Suri

  • Getting Invalid Cursor error in a procedure

    Hi,
    I have a procedure(1) which inturn calls another procedure(2) which does some task.
    Procedure(1) accepts response from Procedure(2).
    The error code of procedure(2) is *0* which is the success response.
    Iam getting 0 from Procedure(2).
    But still Procedure(1) gives me a Invalid cursor error ( eventhough all the cursors are closed and opened ).
    Any suggestion on this????

    procedure p_create_conn -- Procedure(1) which is the calling proc
    is
    begin
    connectivity_api.p_create_connection -- Procedure(2) called proc
    in_scheme_number => in_scheme_number
    ,in_a_lp_sysid => in_a_lp_sysid
    ,in_z_lp_sysid => in_z_lp_sysid
    ,in_interconnect_name => in_interconnect_name
    ,in_mux_usage => in_mux_usage
    ,in_mux_type => in_mux_type
    ,out_a_end_sne => v_out_a_sne_id
    ,out_z_end_sne => v_out_z_sne_id
    ,out_sss_id => v_out_sss_id
    ,out_error_code => out_error_code
    ,out_error_message => out_error_message
    ,in_a_port_name => in_a_port_name
    ,in_a_port_signal => in_a_port_signal
    ,in_z_port_name => in_z_port_name
    ,in_z_port_signal => in_z_port_signal
    ,in_trs_area => in_trs_area
    ,in_alternate_id => in_alternate_id
    ,in_dcn_equipment_name => in_dcn_equipment_name
    ,in_dcn_equipment_id => in_dcn_equipment_id
    ,in_dcn_equipment_notes => in_dcn_equipment_notes
    ,in_tcode => in_tcode
    if out_error_code != 0 --- Error code from Procedure(2) is 0 in my case
    then
    raise ex_p_create_connection;
    end if;
    -- Faliing after success response here
    workflow_utils.create_link
    in_link_type => 'A'
    ,in_source_workflow_name => con_wf_scheme_type
    ,in_source_record_id => in_scheme_number
    ,in_trigger_state => 'initial'
    ,in_dest_workflow_name => con_wf_connectivity
    ,in_dest_record_id => v_out_sss_id
    ,in_dest_from_state => null
    ,in_dest_to_state => null
    ,in_terminate_source => 'N'
    ,in_terminate_dest => 'N'
    ,in_user_account_name => v_user
    -- in this proc all the cursors have been closed properly.
    exception
    when ex_p_create_connection
    then
    null;
    when others
    then
    out_error_code := sqlcode;
    out_error_message := sqlerrm;
    end p_create_connection;
    Is that fine with you????

  • Invalid Cursor Error

    I have a table called cdd_merge_children where the comments field contains the following SQL.
    SELECT EVENT_ID FROM EVENT WHERE ACCOUNT_ID = :ACCOUNT_NO
    In my procedure I am doing the following:
    --get the comments from the cdd_merge_children table where CDD_MERGE_CHILDREN_TYPE
    --is of type 3. type 3 are a replica of type 2's for audit/history purposes 
    SELECT DISTINCT COMMENTS
    INTO ls_comments
    FROM CDD_MERGE_CHILDREN
    where table_name = ps_tablename
    and CDD_MERGE_CHILDREN_TYPE = 3 ;
    --get the comments from the table and execute the dynamic sql using the looser.
    OPEN col_cv FOR ls_comments USING gvloosingaccount ;
    --dump the curosr values in the table
    FETCH col_cv BULK COLLECT INTO loosingvals ;
    For some reason or the other when I try doing the fetch I am getting invalid cursor or ORA-01001: invalid cursor error. WHY WHY
    Please help !

    You cannot bulk-fetch from a cursor into a collection of records, you can only bulk-fetch from a cursor into one or
    more collections:
    DECLARE
    TYPE NameList IS TABLE OF emp.ename%TYPE;
    TYPE SalList IS TABLE OF emp.sal%TYPE;
    CURSOR c1 IS SELECT ename, sal FROM emp WHERE sal > 1000;
    names NameList;
    sals SalList;
    BEGIN
    OPEN c1;
    FETCH c1 BULK COLLECT INTO names, sals;
    END;
    You cannot however,
    DECLARE
    TYPE NameList IS TABLE OF emp.ename%TYPE;
    names NameList;
    salary emp.sal%TYPE;
    TYPE DeptRecTab IS TABLE OF dept%ROWTYPE;
    dept_recs DeptRecTab;
    CURSOR c1 IS
    SELECT deptno, dname, loc FROM dept WHERE deptno > 10;
    BEGIN
    SELECT ename, sal BULK COLLECT INTO names, salary; -- illegal target
    BEGIN
    OPEN c1;
    FETCH c1 BULK COLLECT INTO dept_recs; -- illegal
    END;
    Ok I have a table called cdd_merge_children which has a column called comments. In this column I am storing dynamic SQL such as
    SELECT EVENT_ID FROM EVENT WHERE ACCOUNT_ID = :ACCOUNT_NO
    Now in my code I retrieve this SQL statement and use it as follows:
    --get the comments from the table and execute the dynamic sql using the looser.
    OPEN col_cv FOR ls_comments USING gvloosingaccount ;
    --col_cv is a reference cursor BTW
    --dump the curosr values in the table
    FETCH col_cv BULK COLLECT INTO loosingvals ;
    Ok at this fetch is where I am getting the following error
    ORA-01001: invalid cursor
    Why ? Anyhelp would be great
    Thank's
    Sameer Handa

  • "ORA-01001 Invalid Cursor" error

    Platform: oracle 8.X on ibm aix and java client code from
    windows NT.
    JDBC DRIVER: JDBC Oracle thin driver version 1.2.
    when i execute a Sql satement with Cursor expression from the
    java client code with XSU it returns an XML DOM But if the
    CURSOR EXPRESSION IN THE SQL QUERY RETURNS EMPTY ROWS i get
    back an error node with "ORA-01001 Invalid Cursor" error
    message.i had aslo set the setNullAttributes(true) property
    on oraclexmlquery.
    Interestingly, if i exceute the same query in the SQL plus
    it returns the column names with no rows.
    is there any way where i can get xml document with table
    structure, when there are no rows instead of ORA error message.
         

    This is just a guess,
    all you cursors are being opened regardless of any condition, for example;
    OPEN CUT(:NEW.LAYOUT_NO);
    OPEN DET(:NEW.LAYOUT_NO);
    OPEN ITM(:NEW.LAYOUT_NO);
    OPEN LOT(:NEW.LAYOUT_NO);
    OPEN DTN(:NEW.LAYOUT_NO, :NEW.CUT_NO, :NEW.NOTE);UNA however is opened after a condition;
    IF DTN%NOTFOUND THEN
      /** start --added for cha 2011-3172 6/14/2011 **/
          OPEN UNA(:NEW.LAYOUT_NO, :NEW.ACCOUNT_NO);All cursors arel however closed regardless, i.e. they are all assumes to be open;
      CLOSE CUT;
      CLOSE DET;
      CLOSE DTN;
      CLOSE ITM;
      CLOSE LOT;
      CLOSE STAT;
      CLOSE UNA;So I think you are closing the UNA cursors wen it is in fact not open.
    So, move the "CLOSE UNA;" line of code to before the END IF; on line 278, since that is when it will definitely be open.

  • Problems publishing a web-access on Sharepoint: Error when modifying list schemes

    Good afternoon.
    I have an application built with an access database with several forms and web macros which is published on Sharepoint 2010. Through this application - not too big not too complex (ca. 10 tables / less than 2000 records at most) - I receive updates
    that are loaded into external applications, mainly excel worksheets, ms project files and so on.
    I have been going through the cycle of developing and publishing new versions of the application on the same site for more than a year; suddenly, from severeal weeks ago on, I started receiving the following error affecting random tables (not always the
    same) which crashes the compilation and publishing:
    "Error when modifying lists schemes. Changing name to "ID" field on list XXXX failed"
    And each time the list is different. And of course I am no trying at all to change the name of any ID field !????
    Any clue of what might be happening?
    Thank you

    The article might have missed the step where the blogger might have missed the step. Read the following article and which confirms that you cannot use user controls in SB solutions.
    http://msdn.microsoft.com/en-us/library/gg615454.aspx
    If you are trying to build this in SharePoint 2013 then you must know that custom code is deprecated from SB solutions.
    Deprecation
    of Custom Code in Sandboxed Solutions
    For SP 2013 your best bet is to create an APP or create a farm solution (God please forgive me). :)
    Amit

  • Invalid image error when saving to pdf

    I keep getting an invalid image error when saving a MS Publisher file as a pdf. Can anyone help with solving this issue?

    You need to provide system and version info and explain how you actualyl produce the PDF. Unless you use the Acrobat PDF printer, I don't see how Adobe software would be involved in any of this, as recent versions of MS Office products can save PDFs natively...
    Mylenium

  • Invalide identifier error, when use subselect

    Hi all,
    I got "ORA-0094: sp.spriden_pidm invalid identifier "error when runing the following query.
    select (select t.name from
    (select rownum row_number, s.spriden_last_name name
    from spriden s
    where s.spriden_pidm = sp.spriden_pidm) t
    where t.row_number = 1) last_name
    from spriden sp
    where sp.spriden_pidm = 70105;
    Any one has an idea why this is happening?
    Thanks

    Unless I am missing something here, this looks like a straight pivot query to me.
    SQL> with my_test AS (SELECT 1 id, 'June' contact_name FROM dual UNION ALL
      2                   SELECT 1, 'Email' FROM dual UNION ALL
      3                   SELECT 1, 'Mark' FROM dual UNION ALL
      4                   SELECT 2, 'Tom' FROM dual),
      5       my_test_2 AS (SELECT 1 id, trunc(sysdate) act_date FROM dual UNION ALL
      6                     SELECT 1, trunc(sysdate-1) FROM dual UNION ALL
      7                     SELECT 2, trunc(sysdate-1) FROM dual)
      8  SELECT id, act_date,
      9         MAX(DECODE(rn, 1, contact_name)) nc1,
    10         MAX(DECODE(rn, 2, contact_name)) nc2,
    11         MAX(DECODE(rn, 3, contact_name)) nc3
    12  FROM (SELECT m.id, contact_name, act_date,
    13               ROW_NUMBER() OVER (PARTITION BY m.id
    14                                  ORDER BY contact_name) rn
    15        FROM my_test m, my_test_2 m2
    16        WHERE m.id = m2.id and
    17              m2.act_date = trunc(sysdate-1))
    18  GROUP BY id, act_date;
            ID ACT_DATE    NC1   NC2   NC3
             1 11-Sep-2008 Email June  Mark
             2 11-Sep-2008 TomAssuming that you have a known maximum number of possible values in my_test for a given id this should work. You may need to use something other than the contact_name in the order by in the row_number function if you require the values in specific columns, but given your sample data, I have no idea what that might be.
    John

  • 'Invalid Currency' error when attempting to deliver order

    Hi Experts,
    I have a sales order which cannot be despatched or invoiced because whenever I try to convert the order into a delivery note or AR Invoice I get error message:
    Invalid Currency [Message 131-74]
    I have also tried adding a delivery note and the Copy From function with no success.
    The BP is set up to use All Currencies and the order is only in GBP.
    Thanks
    Jon

    What version of SAP Business One are you using?
    Have you had a look at SAP Note  # 1252328 ?
    Invalid currency error when copying a Sales Order
    Symptom
    You are managing an item with the FIFO valuation method. You have some open layers with zero cost. You create a Sales Order for this item and want to copy it to the next marketing document: a Delivery or an A/R Invoice. You receive the following error: Invalid currency [Message 131-74]
    Other terms
    OINM,FIFO, zero cost, sales order ,delivery ,invoice
    Reason and Prerequisites
    Application error
    example:
    1.Create item managed by FIFO.
    2.Goods Receipt for item ,quantity10, no price.
    3.Goods Receipt PO for item, quantity 10.price 5
    4.Sales Order for item ,quantity 11,
    5.e.g.copy it to Delivery or AR Invoice
    You will receive the error:Invalid Currency[Message 131-74]
    the same error message when you use the copy from function
    Solution
    SAP plans to fix this issue in a future patch. See the info.txt file on SAP Service Marketplace to verify when the fix was included.
    Apparently its affecting SAP Business One 2007 B Patch 13 and SAP Business One 2007 A Patch 47

  • Sharepoint designer 2010 32 bit error when trying to create a workflow

    Windows 7 64 bit enterprise pc's with sharepoint designer 32 bit see these errors when trying to create a workflow on any Sharepoint 2010 farm - dev and production
    "The list of workflow actions on the server references an assembly that does not exist. Some actions will not be available. The assembly is Microsoft.Office.Workflow.Actions, Version=14.0.0.0 ..."
    "The list of workflow actions on the server references an assembly that does not exist. Some actions will not be available. The assembly is Microsoft.SharePoint.WorkflowActions, Version=14.0.0.0 ..."
    "The list of workflow actions on the server references an assembly that does not exist. Some actions will not be available. The assembly is Microsoft.SharePoint, Version=14.0.0.0 ..."
    Using an XP pc and 32bit designer user able to create workflow. We have to use 32 bit designer as we have Office 2010 32 bit for compatiblility reasons
    Any ideas on how to resolve?

    Hi Nick, check out this link for possible solutions:
    https://mohamedelkassas.wordpress.com/2014/12/26/the-list-of-workflow-actions-on-the-server-references-an-assembly-that-does-not-exist-some-actions-will-not-be-available/
    cameron rautmann

  • Error when modifying VM Memory - "Invalid minimum memory amount"

    Good day,
    I am trying to modify a virtual machine's static memory setting using VMM 2012 R2 with UR 2.  The VM is running on a Hyper-V 2012 R2 host cluster.  Whether I use the VMM GUI or attempt to issue the command via VMM Command Shell, I get the same
    result:
    PS C:\Windows\system32> $VM= Get-SCVirtualMachine -name "SomeVM"
    PS C:\Windows\system32> set-scvirtualmachine -VM $VM -MemoryMB 4096
    set-scvirtualmachine : VMM cannot complete the host operation on the hyperv.domain.com server because of the error: 'SomeVM' failed to modify device 'Memory'. (Virtual machine ID22AD6F9F-E5B6-4B8D-9AB6-6A48A9521297)Invalid minimum memory amount assigned for 'SomeVM'. The minimum amount of memory you can assign to a virtual machine is '32' MB. (Virtual machine ID22AD6F9F-E5B6-4B8D-9AB6-6A48A9521297) (Error ID: 12700, Detailed Error:Unknown error (0x8005))
    Resolve the host issue and then try the operation again.
    To restart the job, run the following command:
    PS> Restart-Job -Job (Get-VMMServer localhost | Get-Job | where { $_.ID -eq"{8301e122-b69e-4ac0-82d7-82c473d99e3a}"})
    At line:1 char:1
    + set-scvirtualmachine -VM $VM -MemoryMB 4096
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
    + CategoryInfo          : ReadError: (:) [Set-SCVirtualMachine], CarmineEx   ception   
    + FullyQualifiedErrorId : 12700,Microsoft.SystemCenter.VirtualMachineManag   er.Cmdlets.SetVMCmdlet
    The error indicates that I am attempting to set the VM memory to something less than 32 MB, but as shown above I am actually trying to set it to 4096 MB.  I also get this error when I attempt to modify the value using Hyper-V Manager (or in this case
    the Failover Cluster Manager).  Note that I am not attempting to configure dynamic memory on this VM.
    One more note about this VM - it was migrated from a Hyper-V 2012 host cluster performed by exporting the VM from the old host, and importing it to the new one.
    Not sure if anyone else has experienced this error or if there is a work around.

    Really what the error is not telling you, is that you need to set the value for minimum memory in addition to the value you are setting.
    if dynamic memory is on, you need to set them all: 
    http://technet.microsoft.com/en-us/library/hh801341.aspx
    -MemoryMB<Int32>
    Specifies, in megabytes (MB), the amount of random access memory (RAM) on the host that is allocated to a virtual machine. The default value is 512 MB. For a virtual machine on which dynamic memory is enabled (on a host running Windows Server 2008 R2 SP1
    or later), use MemoryMB to specify the startup memory value.
    I have run into this issue what I had VMs that I migrated to Hyper-V 2012 R2, because the minimum was actually lower.  Or it was empty if the VM had fixed memory.  And now it can no longer be an empty setting.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.

Maybe you are looking for

  • How do I use daqmx to get encoder direction/count on E-series board?

    Hardware: PCI-6014 Labview 7.1 I have a linear actuator and wish to get distance/direction.  The motor has a quad encoder with phase A and B only.  I connected the lines according the the E-series, PFI-8 and PFI-6, and ground to digital ground. I the

  • Personal File Sharing problem

    We networked an iMac, iBook and PowerBook G4 through airport. Worked swimmingly until recently. Now the PowerBook is making difficulties. It recognises both other computers but fails to actually connect to them (just continues 'thinking' eternally wh

  • IPhone 5 won't wake up

    It freezes for about 2-3 and nothing works. Tried soft and hard reset still nothing. This happens all the time.

  • Flash animation for Myspace

    Not sure if this is the right section of the right forum. I have created a flash that works fine as a flash. But will not export as an animated jif and upload animated. I'm not sure whats going on. I have tried everything I know. Exported as flash up

  • Compatibility with iHome

    A few days ago I did the latest softward update, and recently my ipod is telling me that it is incompatible with my iHome.  Any suggestions?