SPList.Items throwing error

Experts -
I suspect my production list got corrupted some how. When trying to query this list SPList.Items, I get an error "Server out of Memory".
But the other lists are working as expected. I can open the list and add new item from SharePoint page, but same is not happening through Server object model.
Is there anyway to revert the SharePoint list from faulted state?
Bala

Hi Bala,
According to your post, my understanding is that you get the “Server out of the Memory” error while query the list SPList.items.
That’s because when we use the web.Lists["YOURLISTNAME"].Items , it will return the complete list item collection.
Once, twice – it is going to be okay, but if the list contains many items, over a period of time, the framework wouldn’t be able to power-lift this heavy a collection.
As a workaround, instead of taking the complete collection in memory, we can get the collection to pick up a view as below.
using (SPSite site = new SPSite("<sharepoint site url>"))
using (SPWeb web = site.OpenWeb())
SPList list = web.Lists["YourListName"];
SPView view = list.Views["YourView"];
SPListItemCollection listItems = list.GetItems(view);
For more reference:
http://blogs.msdn.com/b/sridhara/archive/2008/06/06/out-of-memory-exception-when-adding-item-to-a-list-using-sharepoint-om.aspx
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support

Similar Messages

  • List.asmx add new item throwing error

    can any one suggest.I am trying to update the list in moss 2007 using list.asmx service. where list having default title column alone.But its still throwing me below error:
    error:0x81070906The operation failed because an unexpected error occurred. (Result Code: 0x81070906)
    Below is the code i followed:
     private void InsertItem(string pictureURL,string currentlLoginID)
           /*Declare and initialize a variable for the Lists Web service.*/
                spsService.Lists listService = new spsService.Lists();
                /*Authenticate the current user by passing their default
                credentials to the Web service from the system credential cache.*/
                listService.Credentials = System.Net.CredentialCache.DefaultCredentials;
                listService.Url = "http://spsService/sites/MP/_vti_bin/Lists.asmx";
                System.Xml.XmlNode ndListView = listService.GetListAndView("Team Profiles", "");
                string listName = ndListView.ChildNodes[0].Attributes["Name"].Value;
                string viewName = ndListView.ChildNodes[1].Attributes["Name"].Value;
                 XmlDocument xmlDoc = new XmlDocument();
                /* Declare an XmlNode object and initialize it with the XML response from the GetListItems method.*/
                System.Xml.XmlNode nodeListItems = listService.GetList(listName);
                string sBatch = string.Empty;         
                //Query to insert data
                sBatch = "<Method ID=\"1\" Cmd=\"New\">";
                sBatch += "<Field Name=\"ID\">New</Field>";
                          sBatch += "</Method>";
                XmlElement batch_element = xmlDoc.CreateElement("Batch");
                batch_element.SetAttribute("OnError", "Continue");
                batch_element.InnerXml = sBatch;
                listService.UpdateListItems(listName, batch_element);
    Thanks &amp; Regards, Krishna

    Hello,
    Is user having contribute rights in list? Please verify. Your code seems to be ok.
    OR try this code.
    list.Credentials = new System.Net.NetworkCredential("username", "password", "domain");
    XmlDocument doc = new XmlDocument();
    XmlElement batch_element = doc.CreateElement("Batch");
    string item = "<Method ID=\"1\" Cmd=\"New\">" + "<Field Name=\"ID\">New</Field>" + "<Field Name=\"Title\">Test1</Field>" + "</Method>";
    batch_element.InnerXml = item;
    list.UpdateListItems("ListTest", batch_element);
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • To throw error message on line item

    Hi Experts,
      I am using the user exit MV45AFZZ_MOVE_FIELD_TO_VBAP of sale order and it is getting triggered when we press 'ENTER' after filling the line item details of a sale order.
      In my requirement i have to check some conditions on the line items and have to throw error message on that particular item sothat the user can delete that item and can proceed with the remaining.
      But i am not able to throw error message on the particular item.
      Please help me to throw error message on the particular tabstrip corresponds to the item. 
    Thanks in Advance,
    Shaju

    You can try this fm
                    CALL FUNCTION 'DD_POPUP_TO_CONFIRM_CANCEL'
                         EXPORTING
                              textline1    = text-902
                              textline2    = text-903
                              title        = text-901
                              start_column = 25
                              start_row    = 6
                              defaultpos   = 'C'
                         IMPORTING
                              answer       = cancel_rc.
                    CASE cancel_rc.
                      WHEN 'A'.
                      WHEN 'C'.
                        LEAVE PROGRAM.
                      WHEN OTHERS.
                    ENDCASE.
    Based upon user inputs you can handle conditions (CANCEL_RC) accordingly.

  • Submit button not throwing error

    I have a Search Region and a table to show the data based on Search criteria...After search I am modifying the some fields with invalid data in Result table
    and I am clicking the Submit button, it is throwing error(I written Exception in EO level) , the same time if i click the submit button second time , it is not validating and throwing the error and record is saving to database with invalid data.
    Could you please help me and let me know what I am missing here?

    I written the following code in EntityExpert, the EntityExpert code in EO
    public boolean isItemNameValid(String ItemName)
    System.out.println("Entity Expert");
    System.out.println(ItemName);
    boolean isActive = false;
    ItemNameVVOImpl ItemNameVO = (ItemNameVVOImpl)findValidationViewObject("ItemNameVVO1");
    ItemNameVO.initQuery(ItemName);
    if (ItemNameVO.hasNext())
    isActive = true;
    System.out.println("Return ");
    System.out.println(isActive);
    return isActive;
    and I am calling the above method in EOImpl
    public void setItemName(String value)
    if ((value != null) || (!("".equals(value.trim()))))
    ItemNameEntityExpert expert = getItemNameEntityExpert(getOADBTransaction());
    if (!(expert.isItemNameValid(value)))
    throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,
    getEntityDef().getFullName(), // EO name
    getPrimaryKey(), // EO PK
    "Item Name", // Attribute Name
    value, // Attribute value
    "MSC", // Message product short name
    "UPDATE_SUPPLY_ITEMNAME"); // Message name
    setAttributeInternal(ITEMNAME, value);
    Please check.
    Thanks,
    K.Murugesan

  • I am using Mac OS X 10.7.5 as of now and when I am trying to upgrade to Mavericks, it is throwing error "The product distribution file could not be verified. It may be damaged or not signed".

    I am using Mac OS X 10.7.5 as of now and when I am trying to upgrade to Mavericks, the App Store is throwing error "The product distribution file could not be verified. It may be damaged or not signed".
    Is there anything I should do differently? Is anyone else facing the same issue?
    Kindly help.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac. 
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing. 
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects. 
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it. The headings “Step 1” and so on are not part of the commands. 
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply. 
    Launch the Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Triple-click anywhere in the line of text below on this page to select it:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}' | open -ef 
    Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting. A TextEdit window will open with the output of the command. If the command produced no output, the window will be empty. Post the contents of the TextEdit window (not the Terminal window), if any — the text, please, not a screenshot. You can then close the TextEdit window. The title of the window doesn't matter, and you don't need to post that. No typing is involved in this step.
    Step 2 
    Repeat with this line:
    { sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix\.cron)|org\.(amav|apac|cups|isc|ntp|postf|x)/{print $3}'; echo; sudo defaults read com.apple.loginwindow LoginHook; echo; sudo crontab -l; } 2> /dev/null | open -ef 
    This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. 
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step. 
    Step 3
    { launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)/{print $3}'; echo; crontab -l 2> /dev/null; } | open -ef 
    Step 4
    ls -A /e*/{cr,la,mach}* {,/}Lib*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts .la* 2> /dev/null | open -ef  
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting. 
    Step 5
    osascript -e 'tell application "System Events" to get name of login items' | open -ef 
    Remember, steps 1-5 are all copy-and-paste — no typing, except your password. Also remember to post the output. 
    You can then quit Terminal.

  • Dialog box throws error "This content cannot be displayed in a frame"

    I have disconnected a SP2010 db and re-connected to a new SP2013 farm. The visual upgrade is not yet done and decided to continue with sp2010 UI for now. In SP2013, I get the following error when I click "Add new item" in a list and "New
    user" in a SP Group. Any dialog simply throws error.
    This content cannot be displayed in a frame.
    To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame.
    I have also added "<WebPartPages:AllowFraming runat="server" />" and  <meta http-equiv="X-Frame-Options" content="allow">
    to the master page but no luck.
    Your assistance wil be appreciated.
    Thanks

    Hi,
     This error is generally specific to Internet Explorer and has two possible causes. The most likely explanation is that your browser has unusual browser security settings. I would recommend you try
    resetting your security settings to defaults (varies by version but all essentially the same). You may also have to turn off
    Protected Mode which is enabled by default on some systems. If you’re seeing this error (or a version of it) outside Internet Explorer, you may have a server-level setting that is preventing your content from being framed.
    Reference:https://social.technet.microsoft.com/Forums/exchange/en-US/1460c5a5-6242-4402-9f6b-bc581bf56478/content-cannot-be-displayed-in-a-frame-when-trying-to-add-item?forum=sharepointgeneral
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Eric Tao
    TechNet Community Support

  • While clearing through F-54 system throws error No downpayment exist

    While clearing through F-54 system throws error : No downpayment exist. But I have checked in the Downpayment account, A/P account and Customer Line item and the entry exists. Customization for Downpayment made also correct. All the fields are correctly entered in F-54. Still the error comes.
    Please clarify.
    Thanks,
    Raj

    Hi Ravi,
    This transaction is not a downpayment request.  But one thing I have to mention.  For this downpayment the assignment of alternate reconciliation account was done on 17.3.09.
    The posting date and document date has been given as 13.03.2009 for the downpayment document.  Whereas when I check in the entry view > header details, the posting date is 18.03.2009 (may be it is
    showing the actual date of posting).  When the clearing is done through F-54 by giving
    date 31.03.2009, the system gives the error that no downpayment exist.   If we give
    the Inv.No. details and click for document display, the system shows the relevant document
    to be cleared.  Wen we click open process items tab, the error is shown. Kindly confirm
    whether the system is not updated with the assignment of alternate reconciliation account
    for downpayment when the document date and posting date has been given prior to that
    assignment and that is why the system is showing error.  Further, is it right to reverse that
    downpayment document and post a fresh document by giving date after 17.03.2009 and then
    clear the entry.
    Regards,
    Sadashivan

  • Item Import Error Message

    Hi
    I'm running the import items program to update the existing item in inventory. For that it is throwing some error when the record move from interface table to inventory base table. See below error message.
    TRANSACTION ID : 203532465
    ORGANIZATION ID : 3895
    TABLE NAME : MTL_SYSTEM_ITEMS_INTERFACE
    COLUMN NAME : MASTER_CHILD_4F
    MESSAGE NAME : INV_IOI_MASTER_CHILD_4F
    ERROR MESSAGE : Master - Child Conflict in one of these Attributes: Pick Components(PICK_COMPONENTS_FLAG), Assemble To Order(REPLENISH_TO_ORDER_FLAG), Base Model(BASE_ITEM_ID), ATP Components(ATP_COMPONENTS_FLAG), Check ATP(ATP_FLAG), Fixed(FIXED_LEAD_TIME
    Can anyone give the solutuion for this?
    Thanks

    Hi,
    Please review the following documents and see if it helps.
    Note: 142697.1 - IOI PROCESS: Error Master - Child Conflict in One of These Attributes
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=142697.1
    Note: 208715.1 - Item Import Errors When Loading Into Child Organizations
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=208715.1
    Note: 360542.1 - Import Price Catalog Errors with Master/ Child Conflict on the UOM when Importing Item
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=360542.1
    Regards,
    Hussein

  • UNSPSC code is not passed for RT catalog item then error !!

    Hi SRM GURUs,
    We have implemented BBP_CATALOG_TRANSFER BADI.
    In which if a RT catalog item is not having UNSPSC code then we are passing some generic material group for that particular item.
    Here the issue is, if a UNSPSC code is not passed for a RT catalog item, then system is throwing error message "No logical system for FI is maintained. inform system admin".
    Also, a pop-up is coming on SRM screen "Error in system;shopping cart cannot be processed further" and then after clicking on "OK" of the POP-UP it is taking me on SRM home page.
    will anybody explain why this is happening ? Kindly, explain this logic (As this logic is in standard SAP program)?
    PS: we are at SRM5.0 & CCM2.0.
    Thanks !!
    Vivek

    Hi Masa,
    we tried with blanking out the material group. we have got few errors but not of type like above mentioned.
    The errors are as follows.
    Cost center should not be blank
    Service Account assignment should be Cost Center(Services) or Cost Center(Sched Services) or Network
    Tax code ZZ in procedure TAXUSX is invalid
    No G/L account was entered. Enter a G/L account
    Product category 41E532538A930138000000000A4023DB does not exist
    Enter the product category
    Error in account assignment for item 1
    Not possible to calculate tax
    In SLG1 the log is green and contains following.
    Start of line 000000 in shopping cart of catalog
    External product category 26111710 contains errors or does not exist
    where the number 26111710 is the UNSPSC code which i was deleted while debugging.
    Please help on this.
    Thanks in adv.
    Vivek

  • How to throw error from process without raising exception

    Hi ,
    I like to throw error messages in Process error section whenever my If condition fails from PL/SQL anonymous block.The process is fired after submit-computation and validation.Also i like to avoid placing raise_application_error from the Process region source.
    My task is to validate whether a itemvalue is in from the table lists or not.
    like --- If :P1_X not in ('abc','xyz') then throw error .(where abc and xyz are tablename) .Instead of placing the validation as Validation routine i must have to place it in Process since the :P1_X item value obtain after computation and validation of another process.
    Thanks & Regards,
    ROSY.

    Hi Vikas ,
    Again thnx for ur input and sorry 4 my late reply.
    Probably i cant make my actual requirement clear to you.
    I want to press a submit button and the process will be fired.The process should check the item :p1_x value if this value is not in the tablenames then here i am throwing error by raise_application_error .I want to make this customized such that instead of raising the error i want to make the error string display in the error message section which is the error pattern usually displayed as Inline error notification for the validation types.But since its not validation rather process so how can i handle the situation.
    Any suggestion ?
    Thanks & Regards,
    ROSY.

  • [svn:fx-trunk] 9284: Fix bug: Spark BasicLayout should throw error/ RTE when setting useVirtualLayout

    Revision: 9284
    Author:   [email protected]
    Date:     2009-08-13 15:33:07 -0700 (Thu, 13 Aug 2009)
    Log Message:
    Fix bug: Spark BasicLayout should throw error/RTE when setting useVirtualLayout
    QE notes: None
    Doc notes: None
    Bugs: SDK-22211
    Reviewer: Hans
    Tests run: checkintests, gumbo/core/Group, gumbo/core/DataGroup, gumbo/core/List
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22211
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/bundles/en_US/layout.properties
        flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/BasicLayout.as

    This bug figures out also when creating a custom spark ComboBox, then trying to programatically update the userProposedSelectedIndex property. The proposed selected index is selected, but does not apply the same skin as when mouse is on rollover or item is selected due to up and down keys.
    The issue seems like updating the status of the item renderer to rollover or selected to get the same skin applied.
    Please could you attach DropDow nList.as that you edited ?
    Thank you so much.

  • Item defining error in inventory R12.1.1

    while defining item in the Inventory.. items, master items
    after giving item name and discription
    when i enable the check box for (inventory) it is showing an error
    frm-40212 :Invalid value for field STOCK_ENABLED_FLAG_MIR
    and throws errors too while enabling "purchased,purchasable"
    and also lot of errors appear while running the template tools>copy from "purchased item"
    i defined Master organization,UOM.
    what more i have to define, please help me. it makes my project to stop from 2 days.

    I do not see any similar issues on MOS website, so you better log a SR.
    You may also post in the Financial forum for a better/faster response -- Financials
    Thanks,
    Hussein

  • PL/SQL throwing errors! trying to alter dates

    the following code keeps throwing errors, I was wondering if it is due to me getting confused when to use ":" before a variable and also ":=" when setting values?
    Can anyone see what I am doing wrong?
    Here is the code, at the moment it is throwing an error on line 44
    ORA-06550: line 44, column 1:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    CODE.....
    DECLARE
         QNStart DATE;
         QNFinish DATE;
         Q1Start DATE;
         Q1Finish DATE;
         Q2Start DATE;
         Q2Finish DATE;
         Q3Start DATE;
         Q3Finish DATE;
         Q4Start DATE;
         Q4Finish DATE;
         Q5Start DATE;
         Q5Finish DATE;
         QNT NUMBER;
         Q1T NUMBER;
         Q2T NUMBER;
         Q3T NUMBER;
         Q4T NUMBER;
         QNR NUMBER;
         Q1R NUMBER;
         Q2R NUMBER;
         Q3R NUMBER;
         Q4R NUMBER;
    BEGIN
         case current_date
              when current_date between to_date('01-JAN', 'DD-Mon') AND to_date('31-MAR', 'DD-Mon') then
                        QNStart := to_date('01-JAN', 'DD-Mon');
                        QNFinish := to_date('31-MAR', 'DD-Mon');
              when current_date between to_date('01-APR', 'DD-Mon') AND to_date('30-JUN', 'DD-Mon') then
                        QNStart := to_date('01-APR', 'DD-Mon');
                        QNFinish := to_date('30-JUN', 'DD-Mon');
              when current_date between to_date('01-JUL', 'DD-Mon') AND to_date('30-SEP', 'DD-Mon') then
                        QNStart := to_date('01-JUL', 'DD-Mon');
                        QNFinish := to_date('30-SEP', 'DD-Mon');
              when current_date between to_date('01-OCT', 'DD-Mon') AND to_date('31-DEC', 'DD-Mon') then
                        QNStart := to_date('01-OCT', 'DD-Mon');
                        QNFinish := to_date('31-DEC', 'DD-Mon');
         End Case
    :Q1Start := ADD_MONTHS(:QNStart,-3);
    :Q1Finish := ADD_MONTHS(:QNFinish,-3);
    :Q2Start := ADD_MONTHS(:QNStart,-6);
    :Q2Finish := ADD_MONTHS(:QNFinish,-6);
    :Q3Start := ADD_MONTHS(:QNStart,-3);
    :Q3Finish := ADD_MONTHS(:QNFinish,-3);
    :Q4Start := ADD_MONTHS(:QNStart,-4);
    :Q4Finish := ADD_MONTHS(:QNFinish,-4);
    :Q5Start := ADD_MONTHS(:QNStart,-5);
    :Q5Finish := ADD_MONTHS(:QNFinish,-5);
    select COUNT(COUNT(*)) INTO :Q1T from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
    WHERE f.DATE_ENTERED BETWEEN :Q1Start AND :Q1Finish
    AND a.ACTION_SCORE = 'Y'
    AND f.INPUT_TYPE = a.ACTION_NAME
    GROUP BY f.COMPANY_NAME;
    select COUNT(COUNT(*)) INTO :Q2T from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
    WHERE f.DATE_ENTERED BETWEEN :Q2Start AND :Q2Finish
    AND a.ACTION_SCORE = 'Y'
    AND f.INPUT_TYPE = a.ACTION_NAME
    GROUP BY f.COMPANY_NAME;
    select COUNT(COUNT(*)) INTO :Q3T from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
    WHERE f.DATE_ENTERED BETWEEN :Q3Start AND :Q3Finish
    AND a.ACTION_SCORE = 'Y'
    AND f.INPUT_TYPE = a.ACTION_NAME
    GROUP BY f.COMPANY_NAME;
    select COUNT(COUNT(*)) INTO :Q4T from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
    WHERE f.DATE_ENTERED BETWEEN :Q4Start AND :Q4Finish
    AND a.ACTION_SCORE = 'Y'
    AND f.INPUT_TYPE = a.ACTION_NAME
    GROUP BY f.COMPANY_NAME;
    select COUNT(COUNT(*)) INTO :QNT from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
    WHERE f.DATE_ENTERED BETWEEN :QNStart AND :QNFinish
    AND a.ACTION_SCORE = 'Y'
    AND f.INPUT_TYPE = a.ACTION_NAME
    GROUP BY f.COMPANY_NAME;
    select COUNT(COUNT(*)) INTO :Q1R from FF_ACTIONS a
    WHERE a.DATE_ENTERED BETWEEN Q1Start AND Q1Finish
    AND a.COMPANY_NAME IN
         (select f.COMPANY_NAME from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
         WHERE f.DATE_ENTERED BETWEEN Q2Start AND Q2Finish
         AND a.ACTION_SCORE = 'Y'
         AND f.INPUT_TYPE = a.ACTION_NAME
         GROUP BY f.COMPANY_NAME)
    GROUP BY a.COMPANY_NAME;
    select COUNT(COUNT(*)) INTO :Q2R from FF_ACTIONS a
    WHERE a.DATE_ENTERED BETWEEN Q2Start AND Q2Finish
    AND a.COMPANY_NAME IN
         (select f.COMPANY_NAME from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
         WHERE f.DATE_ENTERED BETWEEN Q3Start AND Q3Finish
         AND a.ACTION_SCORE = 'Y'
         AND f.INPUT_TYPE = a.ACTION_NAME
         GROUP BY f.COMPANY_NAME)
    GROUP BY a.COMPANY_NAME;
    select COUNT(COUNT(*)) INTO :Q3R from FF_ACTIONS a
    WHERE a.DATE_ENTERED BETWEEN Q3Start AND Q3Finish
    AND a.COMPANY_NAME IN
         (select f.COMPANY_NAME from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
         WHERE f.DATE_ENTERED BETWEEN Q4Start AND Q4Finish
         AND a.ACTION_SCORE = 'Y'
         AND f.INPUT_TYPE = a.ACTION_NAME
         GROUP BY f.COMPANY_NAME)
    GROUP BY a.COMPANY_NAME;
    select COUNT(COUNT(*)) INTO :Q4R from FF_ACTIONS a
    WHERE a.DATE_ENTERED BETWEEN Q4Start AND Q4Finish
    AND a.COMPANY_NAME IN
         (select f.COMPANY_NAME from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
         WHERE f.DATE_ENTERED BETWEEN Q5Start AND Q5Finish
         AND a.ACTION_SCORE = 'Y'
         AND f.INPUT_TYPE = a.ACTION_NAME
         GROUP BY f.COMPANY_NAME)
    GROUP BY a.COMPANY_NAME;
    select COUNT(COUNT(*)) INTO :QNR from FF_ACTIONS a
    WHERE a.DATE_ENTERED BETWEEN QNStart AND QNFinish
    AND a.COMPANY_NAME IN
         (select f.COMPANY_NAME from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
         WHERE f.DATE_ENTERED BETWEEN Q1Start AND Q1Finish
         AND a.ACTION_SCORE = 'Y'
         AND f.INPUT_TYPE = a.ACTION_NAME
         GROUP BY f.COMPANY_NAME)
    GROUP BY a.COMPANY_NAME;
    EXECUTE
    Cheers
    Simon

    Dave had given you already some good advice.
    Your code is not only too complicated, but you have also probably a bug in it. You have for instance a QNstart as to_date('01.01, 'dd.mm') and a corresponding QNfinish as to_date('31.03', 'dd.mm'). As this means, it is the time portion at 00:01, you are missing the complete last day of this interval. So you better do:
    declare
      l_QNstart      date;
      l_Q1start      date;
      l_Q1finish     date;
      l_q1t          number
    begin
      l_QNstart := trunc(sysdate, 'Q');
      l_Q1start := add_months(l_QNstart, -3);
      l_Q1finish := l_QNstart;
      -- your condition is now
      select count(count(*))
      into   l_q1t
      from   ff_actions f, ff_action_type_lov a
      where  f.date_entered >= l_Q1start and f.date_entered < l_Q1finish
      and    a.action_score = 'y'
      and    f.input_type = a.action_name
      group by f.company_name;
    end;
    /Message was edited by:
    Leo Mannhart
    btw: what is the difference between Q1Start / Q3 Start and Q1Finish / Q3Finish resp.?

  • Report throwing error

    Hi BI Experts,
    I have an issue in the report output. The query is giving the data but the report is not showing the same.
    when nonexisting values are given, report is throwing ERROR instead of giving blank page. Client is expecting blank page or dummy page with tables or headings etc but not the error message.
    Please suggest a solution for this.
    Let me know if anybody needs any other information regarding this.
    Thanks in advance.

    you need to use no data found logic in order to get blank or any message saying no data found for that selected value.
    check this link
    https://blogs.oracle.com/xmlpublisher/entry/no_data_found
    or
    send me your sample xml having data and no data and template i can try at my side. email: [email protected]
    assign me some points if helpful

  • I am using report generation toolkit 1.1 with Labview 7.0 and Office 2003 profession​al. The create new report VI opens Excel but throws error (-21471672​62- from automation open VI) when I try to open MS word. please help...

    I am using report generation toolkit 1.1 with Labview 7.0 and Office 2003 professional. The create new report VI opens Excel but throws error (-2147167262- from automation open VI) when I try to open MS word. please help...

    Hi Leo22,
    Does this error occur if you use any of the example programs that come shipped with LabVIEW? I would try opening one of the examples that write data to Word and see if those give you an error. Also, have you tried just putting down a New Report.VI and change the report type to Word? If this simple vi (that's all you need to open Word) breaks, I would check to see if there are any instances of Word still open. Check the task manager to see if any word processes are still open. There should not be a problem accessing Word 2003 from LabVIEW 7.0. If neither of these solutions work, please give some more detail about your application and we can research further. Thanks!
    Jeremy L.
    National Instruments
    Jeremy L.
    National Instruments

Maybe you are looking for