Alerts Not Auto Closing

I have several alerts in the console that are almost a year old according to the created and last state change colums. There are large repeat counts also so these are all rules, not monitors. I understand these will not close automatically as monitors
do because they are rules and don't have the "Automatically resolve.." setting per alert but I do have the global Automatic Alert Resolution setting "Resolve all active alerts in the new resolution state after" 30 days. They are also in
the new resolution state. When the task runs every day at 4 AM we do see alot of alerts that close which is what I thought should be happening. Also, when I run a report for alerts on those objects which have old alerts still open there
aren't any recently created ones. Why aren't these old alerts closing?

Hi,
Whether all rule generated alerts have this issue?
To work arround this issue, you may try below script tp close old alerts coming from rules:
SCOM 2012 script to close old alerts coming from Rules
https://gallery.technet.microsoft.com/SCOM-2012-script-to-close-c4511481
Regards,
Yan Li
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]

Similar Messages

  • Dispute case auto closing

    Hi,
    I have created a dispute case on customer noted item, when i will reverse the noted item the dispute case is not auto closed, it is still in open status.
    can any one give me solution for this.
    Regards,
    Prakash

    Hi,
    I have read already but my problem is i have created a noted item for which if i post advance receipt then i will go preclosed, but when i cancel the noted item it will still be open, i need close it pre closed manually.
    regards,
    Prakash

  • CCMS alert not running automatically

    Hi,
    Can take little time and read this one and please let me know where i am getting mistake, and is anyone can fix alert please let me know
    Thanks in Advanced
    1. SAPKB64020 Basis Support Package 20 for 6.40 imported at 13.12.2007
    2. check SU01 User Roles SAP_BC_BASIS_ADMIN, SAP_BC_ALM_CUST, SAP_ALM_ADMINISTRATOR, SAP_BC_ALM_ALERT_USER
    3. check SU01 comm.meth: e m a i l
    4. User Profile: S_A.SCON, SAP_ALL
    5. SMTP configured fine, internal mail works fine
    6. RZ21 - Copied CCMS_OnAlert_E m a i l to ZCCMS_OnAlert_E m a i l
       Execution Tab: Function Modle (SALO_M A I L_IN_CASE_OF_ALERT)
          Execute method on group (any server)
       Control Tab: Execute method (Periodically in dialog process
          Startup method group (checked -Execute method immediately after monitoring  segment start- )
          Selected (On all application servers)
       Paramaters Tabe: SENDER: awan_t
                        RECIPIENT:user @ company . com
                  RECIPIENT-TYPEID: U
                  SUBJECT_ALERT: This is CCMS from $SID
                  $NODENAME
                  $SEGMENT: Segment name node (= $INSTANCE )
       Release Tabe: (Checked Auto-reaction)
    7. RZ20 - SAP CCMS Monitor Templates
            --> Entire System
               --> XDV
                  --> Appication Server
                     --> SID ID
                       --> Operating System
                          --> Memory
                             --> Free Memory
       Selected Free memory and click properity
       Performance Attribute Tab: Comparison value (Selected Last reported value)
       Green to Yellow 10MB
       Yellow to Red 20MB
       Red to Yellow 10MB
       Rest from yellow to green 5mb
       Method Tab: Data collection method: CCMS_Mem_Collect_c
       auto-reaction method: zCCMS_OnAlert_mail
       Analysis method: CCMS_OS_Analze
    8. Goback to MTE Free memory (Refresh) and click open alert pushbutton
       it shows Free memory [ 1 Alert ], 49BM < 20 MB current value below throshold value
    9. click Extras from menu and actived mantannce function
    10. Goto EDIT from menu --> Nodes (MTE) --> Start method --> Start auto-reaction method
    11. I received e-mail when I started auto-reaction method
    Alert not running automacally ?

    Hi,
    Can take little time and read this one and please let me know where i am getting mistake, and is anyone can fix alert please let me know
    Thanks in Advanced
    1. SAPKB64020 Basis Support Package 20 for 6.40 imported at 13.12.2007
    2. check SU01 User Roles SAP_BC_BASIS_ADMIN, SAP_BC_ALM_CUST, SAP_ALM_ADMINISTRATOR, SAP_BC_ALM_ALERT_USER
    3. check SU01 comm.meth: e m a i l
    4. User Profile: S_A.SCON, SAP_ALL
    5. SMTP configured fine, internal mail works fine
    6. RZ21 - Copied CCMS_OnAlert_E m a i l to ZCCMS_OnAlert_E m a i l
       Execution Tab: Function Modle (SALO_M A I L_IN_CASE_OF_ALERT)
          Execute method on group (any server)
       Control Tab: Execute method (Periodically in dialog process
          Startup method group (checked -Execute method immediately after monitoring  segment start- )
          Selected (On all application servers)
       Paramaters Tabe: SENDER: awan_t
                        RECIPIENT:user @ company . com
                  RECIPIENT-TYPEID: U
                  SUBJECT_ALERT: This is CCMS from $SID
                  $NODENAME
                  $SEGMENT: Segment name node (= $INSTANCE )
       Release Tabe: (Checked Auto-reaction)
    7. RZ20 - SAP CCMS Monitor Templates
            --> Entire System
               --> XDV
                  --> Appication Server
                     --> SID ID
                       --> Operating System
                          --> Memory
                             --> Free Memory
       Selected Free memory and click properity
       Performance Attribute Tab: Comparison value (Selected Last reported value)
       Green to Yellow 10MB
       Yellow to Red 20MB
       Red to Yellow 10MB
       Rest from yellow to green 5mb
       Method Tab: Data collection method: CCMS_Mem_Collect_c
       auto-reaction method: zCCMS_OnAlert_mail
       Analysis method: CCMS_OS_Analze
    8. Goback to MTE Free memory (Refresh) and click open alert pushbutton
       it shows Free memory [ 1 Alert ], 49BM < 20 MB current value below throshold value
    9. click Extras from menu and actived mantannce function
    10. Goto EDIT from menu --> Nodes (MTE) --> Start method --> Start auto-reaction method
    11. I received e-mail when I started auto-reaction method
    Alert not running automacally ?

  • Alerts not working with direct agent?

    I'm aware of
    this issue with the SQL Intelligence pack and direct agents, which I'm also experiencing, but Alerts don't seem to be working with my direct agents either. I switched the handful of servers I had reporting under the old gateway model to direct agents
    last week, and added 6 new direct agent servers, I know some of those new servers have the same hotfix alerts that I'm seeing from the old ones, but I have not received a new alert since 11/26 when I switched everything over, and when I login to the portal
    and view alerts I receive:
    "No gateway or SCOM management group detected. Op Insights required a gateway or SCOM management group in order to analyze data and generate alerts"
    Followed by a link to the deployment guide, when I read the deployment guide for direct agents there no mention of an SCOM deployment requirement.
    Any suggestions? Is anyone who is configured with direct agents successfully receiving alerts?

    Indeed. Configuration Assessment 'alerts' are disabled with Direct Agent. Please look at the answer given here
    https://social.msdn.microsoft.com/Forums/azure/en-US/8241918e-41f4-4429-9a5f-962e96908878/repeated-closed-alerts-emails-on-closed-alerts-in-opsinsight?forum=opinsights with regards to those 'alerts': we are moving away from 'alerts' for configuration-related
    issues, and replacing them with those 'Recomendations' shapes (like the SQL Assessment). Those weren't 'alerts' in the first place - those were *proactive* recommendations. For new accounts with only Direct agents, those are not even produced and those screens
    are unavailable. We think of 'Alerts' in the SCOM sense: server is down, needs immediate action even at 2am.
    In this sense, we think of 'Alerts' as something that should be user-defined and based on searches where you can determine what to alert for, against any type of data - see this idea here
    http://feedback.azure.com/forums/267889-azure-operational-insights/suggestions/6519198-long-running-saved-searches-or-scheduled-that-ca

  • Auto closing of dispute cases--only for some company codes

    Hi
    We have activated dispute management for several company codes in our system. The auto closing of dispute cases also has been activated in status management. Cases are automatically closed by the system (through a batch job) when the last disputed object is cleared.
    Now there is a requirement to deactivate auto closing only for some company codes. They want to close cases manually in these company codes.
    Is this possible and if so how?
    Regards
    Raj.

    You cannot deselect at a company code level.
    Can we go through you proposed process.
    So you have a dispute for $100.
    The customer pays it and the dispute closes.
    Then the customer calls up and says they have an issue with the invoice they paid previously.
    I have seen this happen before but there was a little twist
    1 - The customer raised a debit note against the client for the issue that they had. The original invoice is cleared but a debit note is created and then disputed and processed. So you can close the original dispute and create a new dispute against the debit note
    2 - The customer paid the wrong invoice. The dispute was closed. However to rectify the miss allocation the clearing document will be reversed meaning the dispute is "re-opened" and can be processed.
    I am unaware of any other requirement for a customer to "re-dispute" a paid item in SAP.

  • Mac Pro does not auto-sleep (manual sleeping if fine!)

    I have a small annoyance with my 2009 (Nehalem) Mac Pro I am wondering if someone can help with, or suggest something, please:
    The Mac Pro does not auto-sleep; ever. I have played around with the sleep time settings, and enabled or disabled the 'sleep drives' option, but to no avail. Mac Pro will stay on, no matter if I am logged on OR even on the 'log on users' screen.
    That said, I can sleep the Mac Pro manually at any time, and without any problems; it stays asleep without a hitch, and wake-up is flawless.
    There is nothing in the console log that would tell me why the auto sleep doesn't function. I deleted the sleep plist and re-set, but again, no change.
    Any ideas? Not sure what could signal the system to not do auto-sleep?
    It's running 10.6.3.
    Cheers,
    Dan

    Exactly the same problems as those described above: forced sleep works (by using the power button or closing the lid) but automatic sleep doesn't (using 'Energy Saving' preferences).
    Tried every single piece of advice here and on other posts: reset PRAM/ SMC, verified disc, repaired permissions, deleted the power saving preference files, cleared caches & history, restarted in every conceivable mode... The only things that worked were safe boot and creating a new user account which means it must be a software issue.
    Disabled/ removed/ paused/ reinstalled every piece of software I could but to no avail. The most frustrating thing? Having to wait for 5 mins every time I tried something to check whether the damned thing was going to go to sleep.
    In the end, and in desperation, I took the advice of Dino X and downloaded PleaseSleep. Success! A genius piece of software. It forces sleep when the Energy Saver preferences cut in but, even if I don't set exceptions, it won't force sleep if there's a DVD playing (for example).
    Only had the Mac for a few months and I'll never go back to that other, unmentionable operating system; the Mac's just too good but I'm vexed that I'm having to use third party software to get it to work as it should (and was) - feels like a bit of a Win*s solution to me.

  • Safari auto closing/shutdown

    Hi is anyone else experiencing their safari auto closing/shutdown during use? I looks around and saw it may be a memory thing but safari is all that's running and I have the 30gb iPad gen3  with over 10gb available. Any help would be great

    HKWOY-
    Your symptoms sound more serious, as if there was an internal electrical problem with your iPad.  I suggest you show it to an Apple Store Genius.  If the Genius can not fix it, you may get a replacement iPad.
    If there is no Apple Store near you, look for an Apple Authorized Repair Center.  There may be one in your city.  <Apple Authorized Repair Centers>
    Fred

  • Import Dialog will not auto open - Lightroom 4.1

    Since I upgraded to Lightroom 4.1 from 3 the Import Dialog screen will not auto open when I insert a memory Cart to my Imac. 
    I have the correct box ticked in the preferences.

    I have performed all of the above and I still can't get Lightroom 4.2 to open to the Import screen when inserting a memory card. If LR is already open and then a card is inserted...yes the Import screen opens. If LR is 'Quit' (closed) and a card is then connected Lightroom opens to the Library, but not the Import screen. I have also tried to delete the preferences files and restart, but I'm unsuccessful with multiple tries there too.Running a Macbook Pro 10.6.8. Lightroom 4 opens as desired—connect card via card reader, LR launches and opens to the Import screen—on my iMac 10.7.4.
    LR 4.2 Build 850741
    Chrlz_B

  • Dreamweaver does not auto-complete /script tag

    Dremaweaver CS5 Version 11.0 Build 4993 - does not close script tag. I type <script> include the text then type </   and the Script tag is NOT closed.
    When I type </  the script tag should complete and close automatically.
    So, for example:
    <script type="text/javascript" language="javascript">
    function closeThisWindow() {
         window.close();
    </
    I have to type </script>  because it does not auto-complete.
    Thanks,
    Don.

    Good morning all,
    Ok, Jon, thank you. I've not used a lot of </ within the scripts that I've written so, so far, that hasn't been a problem for me. Your explanation makes sense though. It also explains why it works if you select the option to:  close after typing the opening tag's ">". Because once the opening and closing tags have been populated, entering </ would have no effect on the scripot tag at all.
    Very nice response Jon. This behavior is crystal clear now and in fact, it seems to be a feature, not a bug.
    Thank you,
    Don.

  • GR/IR not auto clear in system

    Hi All,
    GR/IR not auto clear in system
    Normally every week end the system automatically clears the open items in f.13, But this time it has not clear the open items
    What could be the reason the system not to clear open items on the week end.
    So that's the reason the user manually cleared the open items
    - User has performed F.13 on 26th of Oct but system didn't auto clear the open items.
    - Those documents are posted prior to 26th of Oct and user would like to know what cause to incident.
    Please suggest me what should be the reason to come out of this issue.
    Thanks in advance
    nandha
    Edited by: nandhasapfi on Nov 8, 2011 1:07 PM

    Hi All,
    I trying to auto clear fbl3n open items in f.13,  every week end  the system defaultly  auto clears all the open items in the system but last weekend it has not been done that job.
    Suggest me what should be the reason for the above issue.
    And i checked in OB74 for the G/L a/c 123456 they have configured the below thing
    chart of account ABC
    a/c type S
    criteria 1 zuonr  assignment     
    criteria 2 vbund  Trading partner
    criteria 3 ebeln   purchasing document
    criteria 4 ebelp   item
    criteria 5 empty
    Suggest me Still any thing required to configure for auto clear the open items of fbl3n
    Thanks in advance
    Edited by: nandhasapfi on Nov 10, 2011 11:45 AM

  • Reporting Services Webpart - web part does not auto render consistantly

    We are on SharePoint 2010 (integrated with Reporting Services)- on several sites we have added the Reporting Services Web Part and with a saved parameter.  The behavior of this web part is not consistent.  There are times when I open up a site
    and the web part will auto render the report.  5 minutes later I can go into the same site, and the web part does not auto render the report.  I have to do edit page, or close and re-open the web site.  Has anyone experienced this type of behavior. 
    I've looked for assistance with this issue on-line cannot find anything that specifically addresses this issue.   

    Hi Karen,
    If the parameters have default values in the report, then the report can be rendered automatically.
    For this issue, I recommend to verify the things below:
    Does this issue occur when you open the page with the web part in a new tab in the browser or go back to the previous opened tab?
    Does this issue occur in the server side or client side?
    Please add the site to trusted sites in Internet Explorer to see how it works.
    Please change another browser to see how it works.
    For narrowing down the issue scope, please test with another report and compare the results.
    Thanks,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Document not auto cleared after performing FF67

    Hi all,
    firstly i would like to acknowledge that i'm using version 4.7.
    after performing FF67, bank recon document generated in main bank & clearing bank GL accounts. But it is not auto clear in the clearing bank GL account. the treatment is as post GL account & manual clear.
    after checking:-
    1. trans type ABC using int. algorithm 15 - use assignment field to clear.
    2. posting type in posting rule is 4 - clear debit GL account
    in FF67 screen variant, assignment field entered the same as assignment value in clearing bank account. by right, the documents will clear off automatically.
    anyone can assist what else that i miss out?
    thanks in advance.

    hi..
    we can perform manual clearing or F.13, but the pupose of having such posting rule and posting type is to minimize steps of clearing.
    by right, once ff67 posted, the clearing bank gl account will get cleared.

  • XSD OTD compilefailure String literal not properly closed by double-quote

    Java CAPS 5.1.3
    I have created a XSD to describe a simple XML file. After this I created an OTD from the exported XSD file.
    This OTD is being used in a JCD. During the build of the Deployment Profile I get the error: :Compile failed: xsd.XSD_MB235401907.X_all_B: Line 69: String literal is not properly closed by a double-quote
    All steps have been preferformed within the same eDesigner and the same repository.
    I have verified the XSD file with netbeans and can not see a problem with the file itself.
    Any ideas to resolve this compile failure?
    The XSD is:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:tns="http://ams1saa011:12000/repository/repository/Recieve/MessageBroker/WISE_WTE/repository1423024:117d46f486a:-8000/XSDDefinition1" targetNamespace="http://ams1saa011:12000/repository/repository/Recieve/MessageBroker/WISE_WTE/repository1423024:117d46f486a:-8000/XSDDefinition1">
        <xsd:element name="MessageBroker">
            <xsd:complexType>
                <xsd:sequence>
                    <xsd:element name="IN" maxOccurs="unbounded">
                        <xsd:complexType>
                            <xsd:all>
                                <xsd:element name="MSGFN" type="xsd:string" default="IN"/>
                                <xsd:element name="DIR" type="xsd:string" default="\"/>
                                <xsd:element name="FILEMASK"
                                    type="xsd:string" default="*.DAT"/>
                                <xsd:element name="MAPID" type="xsd:string" default="MS000"/>
                                <xsd:element name="RCVPRN" type="xsd:string"/>
                                <xsd:element name="RCVPRT" type="xsd:string"/>
                                <xsd:element name="RCVPFC" type="xsd:string"/>
                                <xsd:element name="SNDPRN" type="xsd:string"/>
                                <xsd:element name="SNDPRT" type="xsd:string"/>
                                <xsd:element name="MESTYP" type="xsd:string"/>
                                <xsd:element name="MESCOD" type="xsd:string"/>
                                <xsd:element name="MESFCT" type="xsd:string"/>
                                <xsd:element name="TEST" type="xsd:boolean" nillable="true"/>
                            </xsd:all>
                        </xsd:complexType>
                    </xsd:element>
                </xsd:sequence>
                <xsd:attribute name="dateTime" type="xsd:dateTime"/>
            </xsd:complexType>
        </xsd:element>
    </xsd:schema>The complete error stack trace is:
    com.stc.codegen.framework.model.CodeGenException: error generating otd for CMap1_jcdMB_Recieve_SAP_Inbound1:Compile failed: xsd.XSD_MB235401907.X_all_B: Line 69: String literal is not properly closed by a double-quote
         at com.stc.codegen.OTDImpl.model.OTDCodeletFactory$OTDCodelet.postFileGeneration(OTDCodeletFactory.java:767)
         at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.processCodelets(CodeGenFrameworkImpl.java:653)
         at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.process(CodeGenFrameworkImpl.java:1544)
         at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:405)
         at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:308)
         at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.traverseDeployment(DeploymentVisitorImpl.java:268)
         at com.stc.codegen.driver.module.DeploymentBuildAction.loadCodeGen(DeploymentBuildAction.java:923)
         at com.stc.codegen.driver.module.DeploymentBuildAction.access$1000(DeploymentBuildAction.java:174)
         at com.stc.codegen.driver.module.DeploymentBuildAction$1.run(DeploymentBuildAction.java:599)
         at org.openide.util.Task.run(Task.java:136)
         at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:599)
    Caused by: java.lang.RuntimeException: Compile failed: xsd.XSD_MB235401907.X_all_B: Line 69: String literal is not properly closed by a double-quote
         at com.stc.javac.Javac.compile(Javac.java:227)
         at com.stc.otd.codegen.BaseXsdDtdGenerator.compileFromJarfile(BaseXsdDtdGenerator.java:254)
         at com.stc.otd.codegen.BaseXsdDtdGenerator.compile(BaseXsdDtdGenerator.java:52)
         at com.stc.otd.xsd.codegen.XsdParserGenerator.compile(XsdParserGenerator.java:182)
         at com.stc.otd.codegen.BaseXsdDtdGenerator.generate(BaseXsdDtdGenerator.java:166)
         at com.stc.otd.codegen.BaseXsdDtdGenerator.generate(BaseXsdDtdGenerator.java:90)
         at com.stc.codegen.OTDImpl.model.CollabOTDGenerator.generateCollabOTDJavaFiles(CollabOTDGenerator.java:233)
         at com.stc.codegen.OTDImpl.model.OTDCodeletFactory$OTDCodelet.processOTDJars(OTDCodeletFactory.java:861)
         at com.stc.codegen.OTDImpl.model.OTDCodeletFactory$OTDCodelet.postFileGeneration(OTDCodeletFactory.java:666)
         ... 10 more

    You may need to escape the default slash "\\".
    I'd suggest importing the xsd into the jcaps xml schema editor and verifying that way and then creating the otd by node export.
    Regards,
    Rupert

  • String literal is not properly closed by a double-quote

    Hi,
    In my Java Class, this message appears:
    String literal is not properly closed by a double-quote
    LINE: The red part of the statement.
    Please help! Thanks!
    package demo;
    import javax.persistence.EntityManager;
    import javax.persistence.EntityManagerFactory;
    import javax.persistence.Persistence;
    public class Flights {
         private EntityManagerFactory emf;
        private EntityManager getEntityManager() {
            if (emf == null) {
                emf = Persistence.createEntityManagerFactory("Flights");
            return emf.createEntityManager();
        public Flights[] getFlights() {
            EntityManager em = getEntityManager();
            try {
                javax.persistence.Query q = em.createQuery("SELECT /*+ INDEX(lh_master_q lh_master_pk)*/ DISTINCT to_char(FD.FLIGHT_DATE, 'DY')||'.'|| FD.FLIGHT_DATE AS DATE_HEADER,
      FD.FLIGHT_DATE AS TRAVEL_DATE,
      B.CITY                       AS LEAVING,
      LM.STD                       AS DEPART,
      C.CITY                       AS ARRIVING,
      LM.STA                       AS ARR,
      LM.FNR                       AS FLIGHT,
      E.CARRIER                    AS AIRLINE,
      LM.ACTYPE                    AS AIRCRAFT,
      LM.ACTYPEFULLNAME            AS EQUIP,
      LM.STD ||' '|| LM.DEP ||' - '|| LM.STA ||' '|| LM.ARR AS SCHEDULE,
      B.CITY ||' - '|| C.CITY AS ROUTE
      MAX(CASE WHEN FA.BOOKING_CLASS = 'S' AND p_num_adt > 1 THEN (ROUND(FA.LH_FARE_EUR, 2)* p_num_adt) END) AS ECONOMY_SAVER,
      MAX(CASE WHEN FA.BOOKING_CLASS = 'H' AND p_num_adt > 1 THEN (ROUND(FA.LH_FARE_EUR, 2)* p_num_adt) END) AS ECONOMY,
      MAX(CASE WHEN FA.BOOKING_CLASS = 'B' AND p_num_adt > 1 THEN (ROUND(FA.LH_FARE_EUR, 2)* p_num_adt) END) AS ECONOMY_FLEXIBLE,
      MAX(CASE WHEN FA.BOOKING_CLASS = 'Z' AND p_num_adt > 1 THEN (ROUND(FA.LH_FARE_EUR, 2)* p_num_adt) END) AS BUSINESS,
      MAX(CASE WHEN FA.BOOKING_CLASS = 'D' AND p_num_adt > 1 THEN (ROUND(FA.LH_FARE_EUR, 2)* p_num_adt) END) AS BUSINESS_FLEXIBLE,
      MAX(CASE WHEN FA.BOOKING_CLASS = 'F' AND p_num_adt > 1 THEN (ROUND(FA.LH_FARE_EUR, 2)* p_num_adt) END) AS FIRST_CLASS
    FROM LH_MASTER_Q LM, LH_FLIGHT_DATE FD, AIRPORTS_LOOKUP B, AIRPORTS_LOOKUP C, CARRIERS E, LH_FARES FA, LH_SERVICE_CLASS SC, LH_CABIN_CLASS CC
    WHERE LM.ROWNR = FD.FLIGHT_LEG_ID
       AND LM.DEP = FA.FROM_AP
       AND LM.ARR = FA.TO_AP
       AND LM.DEP = B.IATA_CODE
       AND LM.ARR = C.IATA_CODE
       AND LM.AL = E.CARRIER_CODE
       AND FA.BOOKING_CLASS = SC.BKG_CLASS_ID
       AND SC.CABIN_CLASS_ID = CC.CABIN_CLASS_ID
       AND LM.ACTYPE = FD.AIRCRAFT_TYPE
       AND B.CITY_CODE = :p_leaving
       AND C.CITY_CODE = :p_arriving
       AND CC.CABIN_CLASS_NAME = :p_class
       AND E.CARRIER = :p_airline
       AND FD.FLIGHT_DATE = :p_outbound
    GROUP BY FD.FLIGHT_DATE,
             to_char(FD.FLIGHT_DATE, 'DY')||'.'|| FD.FLIGHT_DATE,
             B.CITY,
             LM.STD,
             C.CITY,
             LM.STA,
             LM.FNR,
             E.CARRIER,
             LM.ACTYPE,
             LM.ACTYPEFULLNAME,
             LM.STD ||' '|| LM.DEP ||' - '|| LM.STA ||' '|| LM.ARR,
             B.CITY ||' - '|| C.CITY,
             to_char(FD.FLIGHT_DATE, 'DY')
    ORDER BY Depart;");
                return (Flights[]) q.getResultList().toArray(new Flights[0]);
            } finally {
                em.close();
    }

    From the Java specification (http://docs.oracle.com/javase/specs/jls/se5.0/html/lexical.html#3.10.5):
    It is a compile-time error for a line terminator to appear after the opening " and before the closing matching ".
    In other words, string literals cannot span lines.
    You can use the concatenation operator ( + ) to fix this:
    String myLiteral = "A long line " +
    "Another long line " +
    "Another long line, etc.";
    If you're going to ever print out that string literal (like for debugging purposes), it would probably be better to have a return at the end of each line (\n):
    String myLiteral = "A long line\n" +
    "Another long line\n" +
    "Another long line, etc.";
    Edited by: user739461 on Mar 5, 2012 8:10 AM

  • Import of photos is not working. Moreover 'photos' app is not getting closed, it says 'closing all libraries'. Even it is stopping shutdown/restart of my mac.

    Import of photos is not working. Moreover 'photos' app is not getting closed, it says 'closing all libraries'. Even it is stopping shutdown/restart of my mac.

    Next time you open the photos application hold down both of the keys suggested and then launch the application in the usual way. If you do this you will be presented with the opportunity to repair your library.

Maybe you are looking for

  • How to track EM usage pattern in a fixed time interval?

    Hi, all. I am trying to get an idea of how much EM our system is using at different time during the day in order to find out the EM usage pattern on the ECC6.0 system. From ST02, I only see the current usage and max usage. But there is no history on

  • Please Reply fast

    Hi i was wondering is it possible i have iChat 3 on my tiger and i know on leopard you can make yourself invisible is it possible to do that on tiger?

  • Why reloading pure asset SWF with AIR sdk 3.6+ doesn't work?

    Hi, I posted this in the AIR beta channel, but I think it suits better here... I'm sorry for double posting. Hi, I have a game targeting iOS using AIR sdk that needs to load many swf assets from the disk (packaged with the game). When using AIR sdk 3

  • I don't know how to USE my remote control on my AUDIGY 2 ZS Platinum

    I followed the instructions on this page: http://support.creative.com/kb/showa....aspx?sid=2965 about activating my remote control for my AUDIGY 2 ZS Platinum but mediasource did not have a remote control option tab as you can see here... Untitled.jp

  • HP envy headphones not working

    I have windows 7 on my HP envy 3D laptop. The headphones have suddenly stopped working when I put them in the jack. They work with my other devices but not with this laptop. Please help. I have enabled all the settings. From reading the posts here, I