Grouping Formula Issue

Hello,
I am stumped. I have a report that has 3 groupings on it:
Group1
Group2
Group3
In group3 footer I have a formula
global StringVar St;
select {vw_NEW_ITEMS.POS_FLAGS}
    case 1:
        if {vw_NEW_ITEMS.TAX_1} = 1 then
            St := St + "A"
        else
    case 2:
        if {vw_NEW_ITEMS.TAX_1} = 1 then  
            St := St + "G"
        else   
    case 3:
        if {vw_NEW_ITEMS.TAX_1} = 1 then       
            St := St + "N"
        else
    case 4:
        if {vw_NEW_ITEMS.TAX_1} = 1 then
            St := St + "S"
        else
    case 5:
        if {vw_NEW_ITEMS.TAX_1} = 1 then
            St := St + "T"
        else
    case 6:
        if {vw_NEW_ITEMS.TAX_1} = 1 then
            St := St + "V"
        else
This 'should' display
AGNSTV if tax_1 is 1 - for the first record it does.
But, for each new group3, it repeats - e.g.
AGNSTVAGNSTV
AGNSTVAGNSTVAGNSTV
AGNSTVAGNSTVAGNSTVAGNSTV
etc...
I created another formula and placed it in group3 header like this so the attempt was to "reset" my variable "St"
Global StringVar St;
    St := "";
It doesn't work. How can I fix this? I have tried about everything.
Thank you.

Hello,
you can try following two things:-
1)make your reset formula readtime as follows:
       Whiereadingrecords;
       Global StringVar St;
       St := "";
2)change each case from
        case x:
        if {vw_NEW_ITEMS.TAX_1} = x then
        St := St + "<character>"
        else
to
        case x:
        if {vw_NEW_ITEMS.TAX_1} = x then
        St + "<character>"
        else
Thanks,
Shantanu

Similar Messages

  • Crystal Report Grouping Formula

    Experts,
    In Crystal repot how can we have Grouping formula basis, i.e
    there are two coulmns
    1. GRPO Doc No
    2. GRPO Doc No (Has GRNA)
    now if column 2 has value it should do grouping with this or
    if column 1 has value then grouping should be done on col1.
    Now i have put one field on other in one single Column, so if GRPO Doc No is present it shows value or vice versa

    Hi,
    Insert Group in crystal reports for
    1.  GRPO Doc No
    2. GRPO Doc No (Has GRNA)
    Then supress the groups1 when GRPO Doc No is blank and silarly for other.
    it will resolve the issue.
    Thanks,
    Neetu

  • To enable filtering the Purchase Orders based on Purchasing Group in Issue

    Hi All,
    We are facing one issue
    Currently we are working with Extended Classic Scenario with SRM 5.0 and support pack 11
    If the buyer uses Issue PO transaction in SRM, there are POs from all the buyers.
    There is no filter to allow the buyer to display only POs relevant for his/her Purchasing group.
    To enable filtering the Purchase Orders based on Purchasing Group in Issue Purchase Order transction, we found one
    OSS note : 1162884 - BBP_PPF: Purchasing group as search criteria for PO
    But we found that this oss note is not applicable for our system version
    Could you please help me to resolve this issue by any suggestion or by any other oss note?
    Thanks
    Snehal

    Hi Snehal,
    There is a easy way to do that.
    Go to buyer role in PFCG transaction and look for profile and go inside profile ...look for your transaction...
    for Process PO  transaction -  BBP_PD_PO and you have field BBP_PURGRP...using which you can restrict it on purchasing group..
    You may have to copy same role and create new roles based on purchasing group..
    I feel that basis or Security and Authorization team can help you in this matter.
    Regards,Nishant

  • Grouping with A formula issue

    I am grouping on a date that was calculated using the following formula :
    local stringvar d:= {TAGDTL.USER_DEF_TEXT_1}; //or database field
    numbervar y:= tonumber ( '20' & d[5 to 6]);
    numbervar m:= tonumber ( d[1 to 2] );
    numbervar dd:= tonumber ( d[3to 4] );
    date( y, m, dd)
    The date displays fine, however when I group on it, it appears that it ignores the date completely.
    The data in the detail shows up
    10/14/2008
    10/15/2008
    10/16/2008 etc
    however the group shows up with a completly different date.
    Group = 10/12/2008
    detail = 10/14/2008
    detail = 10/15/2008 etc....
    any ideas? Suggestions? help?
    Thanks,
    Jim

    Sorry guys, still get the same results...... I have tried the formula
    Whilereadingrecords;
    numbervar y:= tonumber("20" & Mid ({TAGDTL.USER_DEF_TEXT_1},5,2)); numbervar m:= tonumber(Mid ({TAGDTL.USER_DEF_TEXT_1},1,2)); numbervar dd:= tonumber(Mid ({TAGDTL.USER_DEF_TEXT_1},3,2));
    cdate( y, m, dd);
    and still get the same results...
    this is all done in a formula correct?
    Edited by: James Fulton on Oct 20, 2008 7:06 PM

  • F110 Grouping Key Issue

    I have 3 open items for a vendor - 2 credit memos (with 1000 and 600 amounts ) and one invoice (with amount 600). In the current situation, these items are not offset against each other as they have different payment methods, payment supplement code etc etc. The only common factor between these items is the company code and the vendor number.
    And the current requirement is that, only these 2 fields - company code and vendor number need to be considered in offsetting the open items and all the other fields including the payment method etc should be ignored. So, after some research - I figured out that there is something called a grouping key that can be set in the configuration using transaction OBAP. I set the grouping key in OBAP. And this grouping key needs to be used in the vendor master screen for payments for that particular vendor so that all the other parameters will be overridden by this grouping key. FYI..I set this grouping key 02 to use only the vendor number.
    Technically.. SAP says this should work. They also say that if it does not work, go and generate the program RSZGR000  as this program contains the respective code to make the payment run program understand that the grouping key is the overriding factor. So, I generated this program too and made sure the code exists. This grouping key is populated in the structure ZHLG1-PAYGR and the payment run program is supposed to understand that this is the overriding field for offsetting the invoices against credit memos. I debugged the payment run proposal and saw that it is populating this field in the structure.
    So, I do all this and yet, my open items are not cleared using JUST the Company & vendor. It is still looking for the other fields like payment methods, supplment code etc.
    I was looking up at the note 164835 and found that for automatic payment transactions the following fields need to be same for the documents that are being offset with each other: Currency, Receiver, Payment Mthod in the Item and Bank Details in the item.
    I was assuming that once the grouping key is populated and used, all the other fields above should be ignored for offsetting.
    Any help in this matter would be appreciated!!

    I do not think that is the issue here. The issue here is that the payment methods are different for these invoices/cedit memos. One of the Credit Memo's has a blank payment method. So, the automatic payment program is not picking that document with blank payment method.
    Invoice 1 has payment method C
    Credit Memo 1 has payment method S
    Credit Memo 2has payment method as blank
    There is an option in the Automatic Payment Transactions screen where you enter the company code and payment methods. In the payment methods, we can enter multiple ones - so, I added S and C, but there is no way to tell the program to pick documents with blank payment methods too.
    That is why the Credit memo2 is left out and not settled with other documents.
    Please let me know if there is a way out for this.

  • Presentation variable in column formula issue

    Hi,
    I'm having an issue about putting a presentation variable in a column formula. I'm using obiee 11.1.1.7.141014
    I'm adding a text in a formula column where I use two presentation variables: pPeriodo and pAno
    pPeriodo invoques the month selected in a prompt and pAno the year. I have to compare different years, so in one member I use @{pAno} when is the selected year and @{pAno-1} when is the prior year.
    The result of this (please see the header of the 2nd column):
    The problem is when Icompare to next years. So my issue happens when I do an addition to the presentation variable: @{pAno+1}
    It doesn't do the sum; it concatenates the value as you can see in the following images
    If anyone have a workaround about this, please share.
    Regards,
    Miguel

    Hi Joven
    Try @{pAno}+1 instead of @{pAno+1}
    Regards
    Rajagopal

  • Crystal Report 2008 / JavaScript hyperlink formula/ Issue

    Hi,
    We've developed the Crystal Report using the Crystal Reports 2008 software & integrated it in asp.net web page and also deployed in IIS web server. We have a requirement like opening the sub report in a new window. We have integrated the sub report also in a asp.net web page & passing the parameters in URL & acheived it..
    For the above, we have used JavaScript code like "javascript:window.open('SubReport.aspx','...','..' ...)" in the hyperlink formula field of main report. It works fine while running using VS 2005 in the development box.
    But in production serer (Windows 2003 server), the JS URL in the formula field is not working properly. Instead , it is rendered as a drill down JS url. Like javascript:bobj.event.publish('drilldown',........)
    Can you please help us to resolve this issue?
    (OR) Do we have any other approach to open the web page in new window from CR (same like a popup window)
    Thanks
    Jeyakumar
    Edited by: Jeyakumar Seenivasagam on Nov 21, 2008 12:02 PM

    I understand that the point of this is to allow the URL link to open the Subreport.aspx page in a new window. This can be problematic due to cross-site scripting restrictions. A few years ago we found that it was possible for report writers to add JavaScript to reports. This isn't a problem if the report writers are honest and nice. However, it is possible for JavaScript to be malicious so that ability to include JavaScript was turned off when the app uses our webform viewers. There may be a way to turn it off in the registry though. This is documented for CR XI r2 [here|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do].
    I am not sure if this reg key works for the .NET viewer, though the note specifies DHTML and .NET InfoView, so CR should work also. As you are using CR 2008, I suspect the key would be:
    HKLMSoftwareBusiness ObjectsSuite 12.0Crystal Reports
    You will most likely have to add the Export folder, then add the HTML folder, then add the EncodeHTMLForSingleLineFieldObjects and set it to "no".
    Please note that this is a hack / workaround found for CR XI r2. The functionality you are looking to exploit was removed for a reason. As such if the above does not work for CR 2008, it will not be considered to be a "bug" and we will not be able to send this to R&D for a resolution.
    Ludek

  • Group policy issue

    I have two Domain Controllers Main ( Main DC ) and Second DC.
    the date of some policies is not out of date....
    please check these files to know the problem.
    dcdiag.txt output:
    Directory Server Diagnosis
    Performing initial setup:
       Trying to find home server...
       * Verifying that the local machine ASMDC, is a Directory Server.
       Home Server = ASMDC
       * Connecting to directory service on server ASMDC.
       * Identified AD Forest.
       Collecting AD specific global data
       * Collecting site info.
       Calling ldap_search_init_page(hld,CN=Sites,CN=Configuration,DC=buc,DC=edu,LDAP_SCOPE_SUBTREE,(objectCategory=ntDSSiteSettings),.......
       The previous call succeeded
       Iterating through the sites
       Looking at base site object: CN=NTDS Site Settings,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=buc,DC=edu
       Getting ISTG and options for the site
       * Identifying all servers.
       Calling ldap_search_init_page(hld,CN=Sites,CN=Configuration,DC=buc,DC=edu,LDAP_SCOPE_SUBTREE,(objectClass=ntDSDsa),.......
       The previous call succeeded....
       The previous call succeeded
       Iterating through the list of servers
       Getting information for the server CN=NTDS Settings,CN=ASMDC,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=buc,DC=edu
       objectGuid obtained
       InvocationID obtained
       dnsHostname obtained
       site info obtained
       All the info for the server collected
       Getting information for the server CN=NTDS Settings,CN=BSMDC,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=buc,DC=edu
       objectGuid obtained
       InvocationID obtained
       dnsHostname obtained
       site info obtained
       All the info for the server collected
       * Identifying all NC cross-refs.
       * Found 2 DC(s). Testing 2 of them.
       Done gathering initial info.
    Doing initial required tests
       Testing server: Default-First-Site-Name\ASMDC
          Starting test: Connectivity
             * Active Directory LDAP Services Check
             Determining IP4 connectivity
             Determining IP6 connectivity
             * Active Directory RPC Services Check
             ......................... ASMDC passed test Connectivity
       Testing server: Default-First-Site-Name\BSMDC
          Starting test: Connectivity
             * Active Directory LDAP Services Check
             Determining IP4 connectivity
             Determining IP6 connectivity
             * Active Directory RPC Services Check
             ......................... BSMDC passed test Connectivity
    Doing primary tests
       Testing server: Default-First-Site-Name\ASMDC
          Starting test: Advertising
             The DC ASMDC is advertising itself as a DC and having a DS.
             The DC ASMDC is advertising as an LDAP server
             The DC ASMDC is advertising as having a writeable directory
             The DC ASMDC is advertising as a Key Distribution Center
             The DC ASMDC is advertising as a time server
             The DS ASMDC is advertising as a GC.
             ......................... ASMDC passed test Advertising
          Test omitted by user request: CheckSecurityError
          Test omitted by user request: CutoffServers
          Starting test: FrsEvent
             * The File Replication Service Event log test
             ......................... ASMDC passed test FrsEvent
          Starting test: DFSREvent
             The DFS Replication Event Log.
             ......................... ASMDC passed test DFSREvent
          Starting test: SysVolCheck
             * The File Replication Service SYSVOL ready test
             File Replication Service's SYSVOL is ready
             ......................... ASMDC passed test SysVolCheck
          Starting test: KccEvent
             * The KCC Event log test
             Found no KCC errors in "Directory Service" Event log in the last 15 minutes.
             ......................... ASMDC passed test KccEvent
          Starting test: KnowsOfRoleHolders
             Role Schema Owner = CN=NTDS Settings,CN=ASMDC,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=buc,DC=edu
             Role Domain Owner = CN=NTDS Settings,CN=ASMDC,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=buc,DC=edu
             Role PDC Owner = CN=NTDS Settings,CN=ASMDC,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=buc,DC=edu
             Role Rid Owner = CN=NTDS Settings,CN=ASMDC,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=buc,DC=edu
             Role Infrastructure Update Owner = CN=NTDS Settings,CN=ASMDC,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=buc,DC=edu
             ......................... ASMDC passed test KnowsOfRoleHolders
          Starting test: MachineAccount
             Checking machine account for DC ASMDC on DC ASMDC.
             * SPN found :LDAP/ASMDC.buc.edu/buc.edu
             * SPN found :LDAP/ASMDC.buc.edu
             * SPN found :LDAP/ASMDC
             * SPN found :LDAP/ASMDC.buc.edu/BUC
             * SPN found :LDAP/5e88f85b-15a6-4ff5-b0fd-6df748df06fd._msdcs.buc.edu
             * SPN found :E3514235-4B06-11D1-AB04-00C04FC2DCD2/5e88f85b-15a6-4ff5-b0fd-6df748df06fd/buc.edu
             * SPN found :HOST/ASMDC.buc.edu/buc.edu
             * SPN found :HOST/ASMDC.buc.edu
             * SPN found :HOST/ASMDC
             * SPN found :HOST/ASMDC.buc.edu/BUC
             * SPN found :GC/ASMDC.buc.edu/buc.edu
             ......................... ASMDC passed test MachineAccount
          Starting test: NCSecDesc
             * Security Permissions check for all NC's on DC ASMDC.
             * Security Permissions Check for
               DC=ForestDnsZones,DC=buc,DC=edu
                (NDNC,Version 3)
             * Security Permissions Check for
               DC=DomainDnsZones,DC=buc,DC=edu
                (NDNC,Version 3)
             * Security Permissions Check for
               CN=Schema,CN=Configuration,DC=buc,DC=edu
                (Schema,Version 3)
             * Security Permissions Check for
               CN=Configuration,DC=buc,DC=edu
                (Configuration,Version 3)
             * Security Permissions Check for
               DC=buc,DC=edu
                (Domain,Version 3)
             ......................... ASMDC passed test NCSecDesc
          Starting test: NetLogons
             * Network Logons Privileges Check
             Verified share \\ASMDC\netlogon
             Verified share \\ASMDC\sysvol
             ......................... ASMDC passed test NetLogons
          Starting test: ObjectsReplicated
             ASMDC is in domain DC=buc,DC=edu
             Checking for CN=ASMDC,OU=Domain Controllers,DC=buc,DC=edu in domain DC=buc,DC=edu on 2 servers
                Object is up-to-date on all servers.
             Checking for CN=NTDS Settings,CN=ASMDC,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=buc,DC=edu in domain CN=Configuration,DC=buc,DC=edu on 2 servers
                Object is up-to-date on all servers.
             ......................... ASMDC passed test ObjectsReplicated
          Test omitted by user request: OutboundSecureChannels
          Starting test: Replications
             * Replications Check
             * Replication Latency Check
                DC=ForestDnsZones,DC=buc,DC=edu
                   Latency information for 1 entries in the vector were ignored.
                      1 were retired Invocations.  0 were either: read-only replicas and are not verifiably latent, or dc's no longer replicating this nc.  0 had no latency
    information (Win2K DC).  
                DC=DomainDnsZones,DC=buc,DC=edu
                   Latency information for 1 entries in the vector were ignored.
                      1 were retired Invocations.  0 were either: read-only replicas and are not verifiably latent, or dc's no longer replicating this nc.  0 had no latency
    information (Win2K DC).  
                CN=Schema,CN=Configuration,DC=buc,DC=edu
                   Latency information for 5 entries in the vector were ignored.
                      5 were retired Invocations.  0 were either: read-only replicas and are not verifiably latent, or dc's no longer replicating this nc.  0 had no latency
    information (Win2K DC).  
                CN=Configuration,DC=buc,DC=edu
                   Latency information for 5 entries in the vector were ignored.
                      5 were retired Invocations.  0 were either: read-only replicas and are not verifiably latent, or dc's no longer replicating this nc.  0 had no latency
    information (Win2K DC).  
                DC=buc,DC=edu
                   Latency information for 5 entries in the vector were ignored.
                      5 were retired Invocations.  0 were either: read-only replicas and are not verifiably latent, or dc's no longer replicating this nc.  0 had no latency
    information (Win2K DC).  
             * Replication Site Latency Check
             ......................... ASMDC passed test Replications
          Starting test: RidManager
             * Available RID Pool for the Domain is 8604 to 1073741823
             * ASMDC.buc.edu is the RID Master
             * DsBind with RID Master was successful
             * rIDAllocationPool is 7604 to 8103
             * rIDPreviousAllocationPool is 7604 to 8103
             * rIDNextRID: 7640
             ......................... ASMDC passed test RidManager
          Starting test: Services
             * Checking Service: EventSystem
             * Checking Service: RpcSs
             * Checking Service: NTDS
             * Checking Service: DnsCache
             * Checking Service: NtFrs
             * Checking Service: IsmServ
             * Checking Service: kdc
             * Checking Service: SamSs
             * Checking Service: LanmanServer
             * Checking Service: LanmanWorkstation
             * Checking Service: w32time
             * Checking Service: NETLOGON
             ......................... ASMDC passed test Services
          Starting test: SystemLog
             * The System Event log test
             An Warning Event occurred.  EventID: 0x825A0024
                Time Generated: 08/21/2014   00:22:16
                Event String:
                The time service has not synchronized the system time for 86400 seconds because none of the time service providers provided a usable time stamp. The time service will not update the local system
    time until it is able to synchronize with a time source. If the local system is configured to act as a time server for clients, it will stop advertising as a time source to clients. The time service will continue to retry and sync time with its time sources.
    Check system event log for other W32time events for more details. Run 'w32tm /resync' to force an instant time synchronization.
             An Warning Event occurred.  EventID: 0x8000000E
                Time Generated: 08/21/2014   00:32:29
                Event String:
                There were password errors using the Credential Manager. To remedy, launch the Stored User Names and Passwords control panel applet, and reenter the password for the credential BUC.EDU\administrator.
             An Error Event occurred.  EventID: 0x00000422
                Time Generated: 08/21/2014   00:32:29
                Event String:
                The processing of Group Policy failed. Windows attempted to read the file \\buc.edu\sysvol\buc.edu\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\gpt.ini from a domain controller and was not
    successful. Group Policy settings may not be applied until this event is resolved. This issue may be transient and could be caused by one or more of the following:
                a) Name Resolution/Network Connectivity to the current domain controller.
                b) File Replication Service Latency (a file created on another domain controller has not replicated to the current domain controller).
                c) The Distributed File System (DFS) client has been disabled.
             ......................... ASMDC failed test SystemLog
          Test omitted by user request: Topology
          Test omitted by user request: VerifyEnterpriseReferences
          Starting test: VerifyReferences
             The system object reference (serverReference)
             CN=ASMDC,OU=Domain Controllers,DC=buc,DC=edu and backlink on
             CN=ASMDC,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=buc,DC=edu
             are correct.
             The system object reference (serverReferenceBL)
             CN=ASMDC,CN=Domain System Volume (SYSVOL share),CN=File Replication Service,CN=System,DC=buc,DC=edu
             and backlink on
             CN=NTDS Settings,CN=ASMDC,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=buc,DC=edu
             are correct.
             ......................... ASMDC passed test VerifyReferences
          Test omitted by user request: VerifyReplicas
       Testing server: Default-First-Site-Name\BSMDC
          Starting test: Advertising
             The DC BSMDC is advertising itself as a DC and having a DS.
             The DC BSMDC is advertising as an LDAP server
             The DC BSMDC is advertising as having a writeable directory
             The DC BSMDC is advertising as a Key Distribution Center
             The DC BSMDC is advertising as a time server
             The DS BSMDC is advertising as a GC.
             ......................... BSMDC passed test Advertising
          Test omitted by user request: CheckSecurityError
          Test omitted by user request: CutoffServers
          Starting test: FrsEvent
             * The File Replication Service Event log test
             ......................... BSMDC passed test FrsEvent
          Starting test: DFSREvent
             The DFS Replication Event Log.
             ......................... BSMDC passed test DFSREvent
          Starting test: SysVolCheck
             * The File Replication Service SYSVOL ready test
             File Replication Service's SYSVOL is ready
             ......................... BSMDC passed test SysVolCheck
          Starting test: KccEvent
             * The KCC Event log test
             Found no KCC errors in "Directory Service" Event log in the last 15 minutes.
             ......................... BSMDC passed test KccEvent
          Starting test: KnowsOfRoleHolders
             Role Schema Owner = CN=NTDS Settings,CN=ASMDC,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=buc,DC=edu
             Role Domain Owner = CN=NTDS Settings,CN=ASMDC,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=buc,DC=edu
             Role PDC Owner = CN=NTDS Settings,CN=ASMDC,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=buc,DC=edu
             Role Rid Owner = CN=NTDS Settings,CN=ASMDC,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=buc,DC=edu
             Role Infrastructure Update Owner = CN=NTDS Settings,CN=ASMDC,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=buc,DC=edu
             ......................... BSMDC passed test KnowsOfRoleHolders
          Starting test: MachineAccount
             Checking machine account for DC BSMDC on DC BSMDC.
             * SPN found :LDAP/BSMDC.buc.edu/buc.edu
             * SPN found :LDAP/BSMDC.buc.edu
             * SPN found :LDAP/BSMDC
             * SPN found :LDAP/BSMDC.buc.edu/BUC
             * SPN found :LDAP/93561cab-4fb3-421f-9a67-af6b4c280eca._msdcs.buc.edu
             * SPN found :E3514235-4B06-11D1-AB04-00C04FC2DCD2/93561cab-4fb3-421f-9a67-af6b4c280eca/buc.edu
             * SPN found :HOST/BSMDC.buc.edu/buc.edu
             * SPN found :HOST/BSMDC.buc.edu
             * SPN found :HOST/BSMDC
             * SPN found :HOST/BSMDC.buc.edu/BUC
             * SPN found :GC/BSMDC.buc.edu/buc.edu
             ......................... BSMDC passed test MachineAccount
          Starting test: NCSecDesc
             * Security Permissions check for all NC's on DC BSMDC.
             * Security Permissions Check for
               DC=ForestDnsZones,DC=buc,DC=edu
                (NDNC,Version 3)
             * Security Permissions Check for
               DC=DomainDnsZones,DC=buc,DC=edu
                (NDNC,Version 3)
             * Security Permissions Check for
               CN=Schema,CN=Configuration,DC=buc,DC=edu
                (Schema,Version 3)
             * Security Permissions Check for
               CN=Configuration,DC=buc,DC=edu
                (Configuration,Version 3)
             * Security Permissions Check for
               DC=buc,DC=edu
                (Domain,Version 3)
             ......................... BSMDC passed test NCSecDesc
          Starting test: NetLogons
             * Network Logons Privileges Check
             Verified share \\BSMDC\netlogon
             Verified share \\BSMDC\sysvol
             ......................... BSMDC passed test NetLogons
          Starting test: ObjectsReplicated
             BSMDC is in domain DC=buc,DC=edu
             Checking for CN=BSMDC,OU=Domain Controllers,DC=buc,DC=edu in domain DC=buc,DC=edu on 2 servers
                Object is up-to-date on all servers.
             Checking for CN=NTDS Settings,CN=BSMDC,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=buc,DC=edu in domain CN=Configuration,DC=buc,DC=edu on 2 servers
                Object is up-to-date on all servers.
             ......................... BSMDC passed test ObjectsReplicated
          Test omitted by user request: OutboundSecureChannels
          Starting test: Replications
             * Replications Check
             * Replication Latency Check
                DC=ForestDnsZones,DC=buc,DC=edu
                   Latency information for 1 entries in the vector were ignored.
                      1 were retired Invocations.  0 were either: read-only replicas and are not verifiably latent, or dc's no longer replicating this nc.  0 had no latency
    information (Win2K DC).  
                DC=DomainDnsZones,DC=buc,DC=edu
                   Latency information for 1 entries in the vector were ignored.
                      1 were retired Invocations.  0 were either: read-only replicas and are not verifiably latent, or dc's no longer replicating this nc.  0 had no latency
    information (Win2K DC).  
                CN=Schema,CN=Configuration,DC=buc,DC=edu
                   Latency information for 5 entries in the vector were ignored.
                      5 were retired Invocations.  0 were either: read-only replicas and are not verifiably latent, or dc's no longer replicating this nc.  0 had no latency
    information (Win2K DC).  
                CN=Configuration,DC=buc,DC=edu
                   Latency information for 5 entries in the vector were ignored.
                      5 were retired Invocations.  0 were either: read-only replicas and are not verifiably latent, or dc's no longer replicating this nc.  0 had no latency
    information (Win2K DC).  
                DC=buc,DC=edu
                   Latency information for 5 entries in the vector were ignored.
                      5 were retired Invocations.  0 were either: read-only replicas and are not verifiably latent, or dc's no longer replicating this nc.  0 had no latency
    information (Win2K DC).  
             * Replication Site Latency Check
             ......................... BSMDC passed test Replications
          Starting test: RidManager
             * Available RID Pool for the Domain is 8604 to 1073741823
             * ASMDC.buc.edu is the RID Master
             * DsBind with RID Master was successful
             * rIDAllocationPool is 8104 to 8603
             * rIDPreviousAllocationPool is 8104 to 8603
             * rIDNextRID: 8106
             ......................... BSMDC passed test RidManager
          Starting test: Services
             * Checking Service: EventSystem
             * Checking Service: RpcSs
             * Checking Service: NTDS
             * Checking Service: DnsCache
             * Checking Service: NtFrs
             * Checking Service: IsmServ
             * Checking Service: kdc
             * Checking Service: SamSs
             * Checking Service: LanmanServer
             * Checking Service: LanmanWorkstation
             * Checking Service: w32time
             * Checking Service: NETLOGON
             ......................... BSMDC passed test Services
          Starting test: SystemLog
             * The System Event log test
             An Error Event occurred.  EventID: 0x00000457
                Time Generated: 08/20/2014   23:52:15
                Event String:
                Driver Send To Microsoft OneNote Driver required for printer Send To OneNote 2007 is unknown. Contact the administrator to install the driver before you log in again.
             An Error Event occurred.  EventID: 0x00000457
                Time Generated: 08/20/2014   23:52:18
                Event String:
                Driver SolidPDF XChange required for printer SolidPDF XChange is unknown. Contact the administrator to install the driver before you log in again.
             An Error Event occurred.  EventID: 0x00000457
                Time Generated: 08/20/2014   23:52:18
                Event String:
                Driver NRG SP 3400N PCL 6 required for printer !!net_pc5!NRG SP 3400N PCL 6 is unknown. Contact the administrator to install the driver before you log in again.
             An Error Event occurred.  EventID: 0x00000457
                Time Generated: 08/20/2014   23:52:19
                Event String:
                Driver Send To Microsoft OneNote Driver required for printer !!BUCLAPTOP1!Send To OneNote 2007 is unknown. Contact the administrator to install the driver before you log in again.
             An Error Event occurred.  EventID: 0x00000457
                Time Generated: 08/20/2014   23:52:20
                Event String:
                Driver NRG SP 3400N PCL 6 required for printer !!BUCLAPTOP1!NRG SP 3400N PCL 6 is unknown. Contact the administrator to install the driver before you log in again.
             An Warning Event occurred.  EventID: 0x80000008
                Time Generated: 08/20/2014   23:52:20
                Event String:
                The jobs in the print queue for printer Microsoft XPS Document Writer (redirected 2) were deleted. No user action is required.
                To stop logging warning events for the print spooler, in Control Panel, open Printers, right-click a blank area of the window, click Run as Administrator, click Server Properties, click the
    Advanced tab, and then clear the Log spooler warning events check box.
             An Warning Event occurred.  EventID: 0x80000004
                Time Generated: 08/20/2014   23:52:20
                Event String:
                Printer Microsoft XPS Document Writer (redirected 2) will be deleted. No user action is required.
                To stop logging warning events for the print spooler, in Control Panel, open Printers, right-click a blank area of the window, click Run as Administrator, click Server Properties, click the
    Advanced tab, and then clear the Log spooler warning events check box.
             An Warning Event occurred.  EventID: 0x80000003
                Time Generated: 08/20/2014   23:52:20
                Event String:
                Printer Microsoft XPS Document Writer (redirected 2) was deleted, and users will no longer be able to print to this printer. No user action is required.
                To stop logging information events for the print spooler, in Control Panel, open Printers, right-click a blank area of the window, click Run as Administrator, click Server Properties, click
    the Advanced tab, and then clear the Log spooler information events check box.
             An Error Event occurred.  EventID: 0x00000457
                Time Generated: 08/20/2014   23:52:22
                Event String:
                Driver NRG SP 3400N PCL 6 required for printer !!BUCLAPTOP1!NRG SP 3400N PCL 6 (Copy 1) is unknown. Contact the administrator to install the driver before you log in again.
             ......................... BSMDC failed test SystemLog
          Test omitted by user request: Topology
          Test omitted by user request: VerifyEnterpriseReferences
          Starting test: VerifyReferences
             The system object reference (serverReference)
             CN=BSMDC,OU=Domain Controllers,DC=buc,DC=edu and backlink on
             CN=BSMDC,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=buc,DC=edu
             are correct.
             The system object reference (serverReferenceBL)
             CN=BSMDC,CN=Domain System Volume (SYSVOL share),CN=File Replication Service,CN=System,DC=buc,DC=edu
             and backlink on
             CN=NTDS Settings,CN=BSMDC,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=buc,DC=edu
             are correct.
             ......................... BSMDC passed test VerifyReferences
          Test omitted by user request: VerifyReplicas
          Test omitted by user request: DNS
          Test omitted by user request: DNS
          Test omitted by user request: DNS
          Test omitted by user request: DNS
       Running partition tests on : ForestDnsZones
          Starting test: CheckSDRefDom
             ......................... ForestDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... ForestDnsZones passed test
             CrossRefValidation
       Running partition tests on : DomainDnsZones
          Starting test: CheckSDRefDom
             ......................... DomainDnsZones passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... DomainDnsZones passed test
             CrossRefValidation
       Running partition tests on : Schema
          Starting test: CheckSDRefDom
             ......................... Schema passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Schema passed test CrossRefValidation
       Running partition tests on : Configuration
          Starting test: CheckSDRefDom
             ......................... Configuration passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... Configuration passed test CrossRefValidation
       Running partition tests on : buc
          Starting test: CheckSDRefDom
             ......................... buc passed test CheckSDRefDom
          Starting test: CrossRefValidation
             ......................... buc passed test CrossRefValidation
       Running enterprise tests on : buc.edu
          Test omitted by user request: DNS
          Test omitted by user request: DNS
          Starting test: LocatorCheck
             GC Name: \\ASMDC.buc.edu
             Locator Flags: 0xe00013fd
             PDC Name: \\ASMDC.buc.edu
             Locator Flags: 0xe00013fd
             Time Server Name: \\ASMDC.buc.edu
             Locator Flags: 0xe00013fd
             Preferred Time Server Name: \\ASMDC.buc.edu
             Locator Flags: 0xe00013fd
             KDC Name: \\ASMDC.buc.edu
             Locator Flags: 0xe00013fd
             ......................... buc.edu passed test LocatorCheck
          Starting test: Intersite
             Skipping site Default-First-Site-Name, this site is outside the scope
             provided by the command line arguments provided.
             ......................... buc.edu passed test Intersite
    ====================================================================
    Repadmin: running command /showrepl against full DC localhost
    Default-First-Site-Name\ASMDC
    DSA Options: IS_GC
    Site Options: (none)
    DSA object GUID: 5e88f85b-15a6-4ff5-b0fd-6df748df06fd
    DSA invocationID: 1355f657-cd24-4ad4-b890-f04f5c624acd
    ==== INBOUND NEIGHBORS ======================================
    DC=buc,DC=edu
        Default-First-Site-Name\BSMDC via RPC
            DSA object GUID: 93561cab-4fb3-421f-9a67-af6b4c280eca
            Last attempt @ 2014-08-21 00:43:56 was successful.
    CN=Configuration,DC=buc,DC=edu
        Default-First-Site-Name\BSMDC via RPC
            DSA object GUID: 93561cab-4fb3-421f-9a67-af6b4c280eca
            Last attempt @ 2014-08-21 00:41:11 was successful.
    CN=Schema,CN=Configuration,DC=buc,DC=edu
        Default-First-Site-Name\BSMDC via RPC
            DSA object GUID: 93561cab-4fb3-421f-9a67-af6b4c280eca
            Last attempt @ 2014-08-20 23:51:37 was successful.
    DC=DomainDnsZones,DC=buc,DC=edu
        Default-First-Site-Name\BSMDC via RPC
            DSA object GUID: 93561cab-4fb3-421f-9a67-af6b4c280eca
            Last attempt @ 2014-08-21 00:45:39 was successful.
    DC=ForestDnsZones,DC=buc,DC=edu
        Default-First-Site-Name\BSMDC via RPC
            DSA object GUID: 93561cab-4fb3-421f-9a67-af6b4c280eca
            Last attempt @ 2014-08-20 23:51:37 was successful.
    Regards and thanks in advance
    Mhiar

    Hi,
    Based on the description, the Sysvol is replicated by FRS service.
    >>some policies at the main DC are not updated like same policies in second DC.
    In this case, we can do a non-authoritative restore on the main DC.
     To do so:   
    Click Start, and then click
    Run.
    In the
    Open box, type cmd and then press ENTER.
    In the
    Command box, type net stop ntfrs.
    Click Start, and then click
    Run.
    In the
    Open box, type regedit and then press ENTER.
    Locate the following subkey in the registry:
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\NtFrs\Parameters\Backup/Restore\Process at Startup
    In the right pane, double-click
    BurFlags.
    In the
    Edit DWORD Value dialog box, type D2 and then click OK.
    Quit Registry Editor, and then switch to the
    Command box.
    In the
    Command box, type net start ntfrs.
    Quit the
    Command box.
    Regarding reinitializing File Replication Service replica sets, the following article can be referred to for more information.
    Using the BurFlags registry key to reinitialize File Replication Service replica sets
    http://support.microsoft.com/kb/290762/en-us
    Best regards,
    Frank Shen

  • Windows 7 DNS and Group Policy Issues

    Hi,
    We have several suites of Windows 7 domain connected PC's.
    In one of the suites I have been called into look at 3 different PC's where the users have not got mapped drives, desktop backgrounds, internet connectivity - because their group policies have not applied.
    When I look at the error logs I find DNS 1014 errors, and Group Policy 1054 errors.
    I have looked at the logs on the switches, and there is nothing on them - Could a pupil pulling the network cable out cause these errors?... Possibly they could have put it back in before I got back in the room.
    The user logs off of the PC and back on again and are fine, as are the users that logon after them.
    We have 2 DC's/DNS servers, which I would have thought would be able to cope with the load here.
    Please let me know what you think the likely cause could be.

    Hello John555444,
    What is your current situation?
    Is this issue resolved?
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • Group Policy - Issues deploying software packages through GPO

    Hello everyone,
    I am having issues successfully deploying MSI packages through group policy.  I have set my computer account up in its own test OU in my domain, but yet the software will not deploy.  Example, I'm trying to deploy AVG Anti-Virus and make sure it
    is installed on each and every PC in my domain.  As for the GPO, I set it up as an assigned package and pointed to the location of the package with the UNC file path (visible to both the DC and my computer that is part of the affected OU)
    On the domain controller, I get these messages in application event logs:
    Beginning a Windows Installer transaction: \\hs-dc2\software\avg\installavg.msi. Client Process Id: 9048.
    Ending a Windows Installer transaction: \\hs-dc2\software\avg\installavg.msi. Client Process Id: 9048.
    This shows up when I refresh GP on my computer.  I run gpresult /h GPReport.html and get the following message:
    Software Installation failed due to the error listed below.
    Fatal error during installation.
    Additional information may have been logged. Review the Policy Events tab in the console or the application event log for events between
    The software is in a share on the domain controller that is visible from my computer, and permissions are set where "Everyone" has read access.  I have tested the package on my computer and it installs
    correctly if I do it manually, so it's a good package. 
    I'm at a loss.  I am admitedly very new to GP management, but I'm pretty sure I have covered all my bases here.  I humbly ask for any and all help that you all can provide.
    Thank you all very much, have a great weekend!

    > Magnolia_Schools.exe
    What's that???
    > \\hs-dc2\software\avg\installavg.msi
    > <file://\\hs-dc2\software\avg\installavg.msi> /qb addeploy=1
    /qb ADDEPLOY=1
    Uppercase matters (:
    A bissle "Experience", a bissle GMV... Wenn meine Antwort hilfreich war, freue ich mich über eine Bewertung! If my answer was helpful, I'm glad about a rating!
    I should have explained, my apologies.  The InstallAVG.msi is the package I have GP deploying.  it is a package that AVG wrote for us that goes in, uninstalls the two previous antivirus softwares we have on our network if it is present, and
    then wraps it to run magnolia_schools.exe which installs the AV software.  I am uninstalling AVG now and will try reinstalling with
    \\hs-dc2\software\avg\installavg.msi /qb ADDEPLOY=1 and report back.
    also, the only logs I found that were around the time of the install attempt were such as these:
    1: 2905 2: C:\windows\system32\appmgmt\MACHINE\{06ee0d46-cd5f-4216-a09f-2aeb573aa5ba}.aas
    1: 2905 2: C:\windows\system32\appmgmt\MACHINE\{06ee0d46-cd5f-4216-a09f-2aeb573aa5ba}.aas
    Does that tell you anything?
    I will say this, if this means anything...now that AVG is installed, the event logs are changing from an error %%1603 to this:
    Failed to apply changes to software installation settings. The installation of software deployed through Group Policy for this user has been delayed until the next logon because the changes must be applied before the user logon. The error was : %%1274
    The removal of the assignment of application exe2msiSetupPackage from policy Install AVG failed. The error was : %%2
    So it acts like it's at least seeing that the package is installed...and reacting differently, correct?
    Thanks so much

  • Radio group / Image issues: additional labels - how do I get rid of them?

    Hello experts,
    I'm having a little issue with a radio group in VC on SPS 11.
    The problem is that I need a radio group in a popup (not sure if that is relevant) - and I also can create this - but it creates a textfield (with a label that has the radio groups name as its text) as well, that is not shown during design time, but only after I deploy the model.
    The annoying textfield is always displayed at the lower left corner of the popup.
    How can I disable this?
    On a related note, I'm also having a similar issue with Images: for an Image with name IMG3 it also displays a textfield with a label 'IMGFLD3" that shows the resource that is currently displayed in the image.
    What can I do about this?
    Best regards,
    Florian

    Hi Srini,
    I used the following work around:
    Instead of using one image UI control that has many images in the Control Properties -> Image tab (all with their respective visibility condition), I used many image UI controls with just one image each (and visibility condition 'true'), stacked them on top of each other, and used the 'hidden' property of the image control instead to select which image is displayed
    Hope that helps, best regards,
    Florian

  • SQL Query Group By Issues - Urgent

    I currently have an issue writing a pl\sql report, I can get part of the way to the results I want but the group by clause is causing problems, because I have to add more columns to the group by, dispersing the figures further, I have tried it with coalesce for each of the task types but I still get the same results, I am getting close to the results I need but not quite there yet. I would really appreciate it if someone could take at look at this for me as it is an urgent requirement.
    The report is based on the tables similar to the following:
    TASKS, ORGANISATIONS, POSITIONS
    A position is a member of an organisation.
    A task has a position assigned to it.
    The SQL for the tables and to insert the data that would produce the report is detailed below:
    CREATE TABLE TASKS
    (     TASK_ID NUMBER NOT NULL ENABLE,
         TASK_TYPE VARCHAR2 (15 BYTE) NOT NULL ENABLE,
         STATUS VARCHAR2 (15 BYTE) NOT NULL ENABLE,
         POS_ID NUMBER NOT NULL ENABLE,
         CONSTRAINT TASKS_PK PRIMARY KEY (TASK_ID));
    CREATE TABLE ORGANISATIONS
    (     ORG_ID NUMBER NOT NULL ENABLE,
         ORG_NAME VARCHAR2 (15 BYTE) NOT NULL ENABLE,
         CONSTRAINT ORGANISATIONS_PK PRIMARY KEY (ORG_ID));
    CREATE TABLE POSITIONS
    (     POS_ID NUMBER NOT NULL ENABLE,
         POS_NAME VARCHAR2 (25 BYTE) NOT NULL ENABLE,
         ORG_ID NUMBER NOT NULL ENABLE,
         CONSTRAINT POSITIONS_PK PRIMARY KEY (POS_ID));
    INSERT INTO ORGANISATIONS (ORG_ID, ORG_NAME) VALUES (1,'ABC');
    INSERT INTO ORGANISATIONS (ORG_ID, ORG_NAME) VALUES (2,'DEF');
    INSERT INTO ORGANISATIONS (ORG_ID, ORG_NAME) VALUES (3,'EFG');
    INSERT INTO POSITIONS (POS_ID, POS_NAME, ORG_ID) VALUES (1,'ABC-1', 1);
    INSERT INTO POSITIONS (POS_ID, POS_NAME, ORG_ID) VALUES (3,'ABC-2', 1);
    INSERT INTO POSITIONS (POS_ID, POS_NAME, ORG_ID) VALUES (2,'ABC-3', 1);
    INSERT INTO POSITIONS (POS_ID, POS_NAME, ORG_ID) VALUES (5,'DEF-2', 2);
    INSERT INTO POSITIONS (POS_ID, POS_NAME, ORG_ID) VALUES (4,'DEF-1', 2);
    INSERT INTO POSITIONS (POS_ID, POS_NAME, ORG_ID) VALUES (7,'EFG-1', 3);
    INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (12,'TASK_TYPE_3','LIVE',3);
    INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (11,'TASK_TYPE_2','LIVE',3);
    INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (10,'TASK_TYPE_2','LIVE',2);
    INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (9,'TASK_TYPE_2','LIVE',2);
    INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (8,'TASK_TYPE_1','LIVE',3);
    INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (7,'TASK_TYPE_1','LIVE',3);
    INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (6,'TASK_TYPE_1','LIVE',3);
    INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (5,'TASK_TYPE_1','LIVE',3);
    INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (4,'TASK_TYPE_1','LIVE',2);
    INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (3,'TASK_TYPE_3','LIVE',1);
    INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (2,'TASK_TYPE_1','LIVE',1);
    INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (1,'TASK_TYPE_1','LIVE',1);
    INSERT INTO TASKS (TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (13,'TASK_TYPE_3','LIVE',3);
    The report should detail the following information based on the information in the tables:
    1st Column
    Organisation
    ABC
    DEF
    EFG
    2nd Column
    No. of Positions in Organsiation
    3
    2
    1
    With total of the number of people in all of the organisation 6
    3rd Column
    Number of tasks assigned to the organisation of task type1
    2
    1
    4
    4th Column
    Number of tasks assigned to the organisation of task type 2
    0
    2
    1
    5th Column
    Number of tasks assigned to the organisation of task type 3
    1
    0
    2
    Total no of tasks assigned to the Organisation
    3
    3
    7
    Message was edited by:
    Suzy_r_82
    Message was edited by:
    Suzy_r_82

    Hi,
    Apologies, my insert statements where incorrect, if you try the data below instead it should give you output I was expecting
    INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (1,'TASK_TYPE_1', 'LIVE',1);
    INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (2,'TASK_TYPE_1', 'LIVE',2);
    INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (3,'TASK_TYPE_1', 'LIVE',5);
    INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (4,'TASK_TYPE_1', 'LIVE',7);
    INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (5,'TASK_TYPE_1', 'LIVE',7);
    INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (6,'TASK_TYPE_1', 'LIVE',7);
    INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (7,'TASK_TYPE_1', 'LIVE',7);
    INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (8,'TASK_TYPE_2', 'LIVE',4);
    INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (9,'TASK_TYPE_2', 'LIVE',5);
    INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (10,'TASK_TYPE_3', 'LIVE',1);
    INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (11,'TASK_TYPE_3', 'LIVE',7);
    INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (12,'TASK_TYPE_2', 'LIVE',7);
    INSERT INTO TASKS( TASK_ID, TASK_TYPE, STATUS, POS_ID) VALUES (13,'TASK_TYPE_3', 'LIVE',7);
    The results I would like are
    ORG    No. of Pos     No of Task    No of Task     No of Task     Total no
               In Org           Type1 for      Type2 for        Type3 for       of Tasks
                                   Org             Org                Org               for Org
    ABC        3                   2                 0                   1                   3
    DEF        2                   1                 2                   0                   3
    EFG        1                   4                 1                   2                   7
    Total        6The results I get are multiple lines for each organisation, I would like to rollup these lines so I can have one line per organisation.
    Hope this helps a bit more, I appreciate the help, let me know if you need more information
    Thanks
    Suzy

  • SQL Statement -- Throws GROUP BY issue on NVL

    Hey All,
    This is pretty much my first time tackling a very complex SQL Statement but the boss is adamant about it.
    Anyways here is the information. I have 3 Tables. Table one Contains Work Order Infromation that will be listed or grouped. Table 2 and Table 3 house information that needs to be summed (Estimate hours and Actual Hours).
    So my SQL Statement looked something like this... (Its a mess)
    select workorder.wolo3, workorder.wojp1, workorder.wonum, workorder.description, workorder.location, workorder.status, workorder.wopriority, workorder.targstartdate, workorder.reportdate, workorder.pmnum, workorder.schedstart, sum(labtrans.regularhrs + labtrans.premiumpayhours) as actualhours, sum(wplabor.quantity * wplabor.laborhrs) as estimatehrs
    from maximo.workorder left outer join maximo.labtrans on labtrans.regularhrs > 0 and labtrans.refwo = workorder.wonum and labtrans.siteid = workorder.siteid or labtrans.premiumpayratetype = 'MULTIPLIER' and labtrans.refwo = workorder.wonum and labtrans.siteid = workorder.siteid left outer join maximo.wplabor on wplabor.wonum = workorder.wonum and wplabor.siteid = workorder.siteid
    where workorder.istask=0 and workorder.siteid='NTS' and workorder.status in ('INPRG','SCHED') and workorder.crewid in ('MAINT','DAF') and workorder.schedstart <= TO_DATE('12-13-2009','MM-DD-YYYY') and wolo3 is not null group by workorder.wonum, workorder.status, workorder.wopriority, workorder.pmnum, workorder.location, workorder.description, workorder.targstartdate, workorder.reportdate, workorder.schedstart, workorder.wolo3, workorder.wojp1
    Now the problem is that the 2nd sum (Estimate Hrs) gets HUGE numbers if there are multiple rows in Actual Hours. So I did some searching. Seems that if I used the NVL function in the SQL Statement it would fix the issue...
    select workorder.wolo3, workorder.wojp1, workorder.wonum, workorder.description, workorder.location, workorder.status, workorder.wopriority, workorder.targstartdate, workorder.reportdate, workorder.pmnum, workorder.schedstart, sum(labtrans.regularhrs + labtrans.premiumpayhours) as actualhours,
    nvl((select sum(wplabor.quantity * wplabor.laborhrs) from maximo.wplabor where wplabor.wonum = workorder.wonum and wplabor.siteid = workorder.siteid),0)
    from maximo.workorder left outer join maximo.labtrans on labtrans.regularhrs > 0 and labtrans.refwo = workorder.wonum and
    labtrans.siteid = workorder.siteid or labtrans.premiumpayratetype = 'MULTIPLIER' and labtrans.refwo = workorder.wonum and
    labtrans.siteid = workorder.siteid
    where workorder.istask=0 and workorder.siteid='NTS' and workorder.status in ('INPRG','SCHED') and
    workorder.crewid in ('MAINT','DAF') and workorder.schedstart <= TO_DATE('12-13-2009','MM-DD-YYYY') and wolo3 is not null
    group by workorder.wonum, workorder.status, workorder.wopriority, workorder.pmnum, workorder.location, workorder.description, workorder.targstartdate, workorder.reportdate, workorder.schedstart, workorder.wolo3, workorder.wojp1
    However If get the error not a GROUP BY expression.
    I really need this to work. How can I get the NVL to work with out having to define a Group for it. The problem is that it is a "alias column" and you cannot Group by those fields. Frustation sets in... UGH!
    Thanks in Advance, Ben.

    Hi, Ben,
    Wlecome to the forum!
    user12273726 wrote:
    So my SQL Statement looked something like this... (Its a mess)You're right. Fix that first.
    Put each SELECT item, each condition, and each GROUP BY expression on a separate line. Indent to show here the clauses (SELECT, FROM, WHERE) are.
    For example:
    SELECT    workorder.wolo3
    ,       workorder.wojp1
    ,       workorder.wonum
    ,       workorder.description
    ,       workorder.location
    ,       workorder.status
    ,       workorder.wopriority
    ,       workorder.targstartdate
    ,       workorder.reportdate
    ,       workorder.pmnum
    ,       workorder.schedstart
    ,       SUM (labtrans.regularhrs + labtrans.premiumpayhours)     AS actualhours
    ,       SUM (wplabor.quantity * wplabor.laborhrs)          AS estimatehrs
    FROM                  maximo.workorder
    LEFT OUTER JOIN   maximo.labtrans     ON      labtrans.regularhrs         > 0
                                       AND     labtrans.refwo              = workorder.wonum
                             AND     labtrans.siteid              = workorder.siteid
                             OR     labtrans.premiumpayratetype = 'MULTIPLIER'     -- WARNING!  Don't mix AND and OR
                             AND     labtrans.refwo              = workorder.wonum
                             AND     labtrans.siteid              = workorder.siteid
    LEFT OUTER JOIN   maximo.wplabor     ON     wplabor.wonum              = workorder.wonum
                                       AND     wplabor.siteid              = workorder.siteid
    WHERE     workorder.istask      = 0
    AND       workorder.siteid       = 'NTS'
    AND       workorder.status       IN ('INPRG','SCHED')
    AND       workorder.crewid       IN ('MAINT','DAF')
    AND       workorder.schedstart   <= TO_DATE ('12-13-2009','MM-DD-YYYY')
    AND       wolo3                       IS NOT NULL
    GROUP BY  workorder.wonum
    ,            workorder.status
    ,       workorder.wopriority
    ,       workorder.pmnum
    ,       workorder.location
    ,       workorder.description
    ,       workorder.targstartdate
    ,       workorder.reportdate
    ,       workorder.schedstart
    ,       workorder.wolo3
    ,       workorder.wojp1
    ;When you post formatted text on this site, type these 6 characters:
    &#123;code&#125;
    (small letters only, inside curly brackets) before and after sections of formatted text, to preserve spacing.
    Now the problem is that the 2nd sum (Estimate Hrs) gets HUGE numbers if there are multiple rows in Actual Hours. Huge numbers are not necessarily wrong. Do yo mean the numbers computed by your query are much bigger than they are supposed to be?
    So I did some searching. Seems that if I used the NVL function in the SQL Statement it would fix the issue...
    select workorder.wolo3, workorder.wojp1, workorder.wonum, workorder.description, workorder.location, workorder.status, workorder.wopriority, workorder.targstartdate, workorder.reportdate, workorder.pmnum, workorder.schedstart, sum(labtrans.regularhrs + labtrans.premiumpayhours) as actualhours,
    nvl((select sum(wplabor.quantity * wplabor.laborhrs) from maximo.wplabor where wplabor.wonum = workorder.wonum and wplabor.siteid = workorder.siteid),0)
    ...It looks like you have a Chasm Trap, where you have multiple, independent one-to-many relationships on the same table, and the solution to aggregate them in separate queruies.
    It looks like you're trying to aggregate wplabor in scalar sub-queries, which makes the GROUP BY more complicated (as you discovered), and is also very inefficient.
    It would be easier to code and more efficient to run if you aggregated wplabor in a sub-query, and then joined to this sub-query (and not the actual wplabor table) in your main query.
    If you'd like help, post a little sample data (CREATE TABLE and INSERT statements) for all three tables, and the results you want from that data.
    Simplify as much as possible. Instead of GROUPing BY 11 columns, just GROUP BY, say, 3 columns: the 2 involved in the join condidiotns, and one more. Once you understand how to do this, adding the other expressions will be trivial.
    You can also simplify by ignoring, for now, the WHERE clause, and, therefore, the columns involved in the WHERE clause. It looks like that has nothing to do with the problem. Again, adding the conditions later will be trivial.

  • Group Security Issue with Business Rules

    Hopefully you experts out there can follow this. We have about 200 users in our Planning application split into 3 categories (Admins, Interactive Users and Planners) via groups setup in Shared services. We also have an email group list setup in Outlook that has all 200 users in it that we use to send out emails to all users regarding the application. So in Shared Services we have the email group list as an assigned group in the Planners group. So as new people are added to the group list in email they are automatically included as a user in the Planning application. People that are Admins or Interactive Users are manually added to those groups in Shared Services. Everything seemed to be working fine until we tried blocking the Planners groups from running certain business rules in the application. We have clusters setup in Essbase to control access to the business rules. I went into the cluster and set the Planners group to cannot validate or launch on certain rules but found that I now could not run the business rules either even though I am an Admin and the Admin group has vaildate and launch privledges in the cluster. I believe the issue has to do with the fact that I am by default in the Planners group because I am in the email group list which is assigned to the Planners group in Shared Services. Other than setting up and managing 3 seperate email group lists and assigning them individually in Shared Services, does anyone know how I can manage business rules security using the 3 groups i have setup? I hope this makes sense. If not I can provide more detail. Thanks.

    Have you tried using Business Rules projects? Create a project for the admin Shared Services group and assign all rules to that group. Create a Planning project for planners and assign only rules that you want them to run. Any rule that planners should not have access to would be removed from the Planner business rules project, but still in the admin project for you to run.

  • Urgent Group Policy Issue - not applying despite saying it does

    Thank you for this urgent help. Auditors checking this out tomorrow morning.
    We have a GPO that sets the eventlog audit settings for success or failure security events. The scope is set to Authenticated Users.
    When I run the group policy wizard in GPMC it shows the settings applying to one of our servers in that OU.
    When I run gpresult/z from that server it shows the policy applying to that server.
    But when I go into gpedit.msc the security audit settings are all set to "not defined" and they are grayed out so I can't edit them manually.
    As a test I set the GPO to deny applying to that server. I ran gpudpate/force on the system and then gpresult and it shows the GPO now not applying. But the settings are still set to not defined and still not editable. they are not being set by any other GPO.
    In the event logs I only see three GPO errors but they are unrelated. A separate GPO is having issues creating user accounts. No other GPOs apply.
    Quick help would be fantastic.
    Server runs on Windows Server 2008 R2 (I can edit GPO but not the domain ones and I don't have access to the domain controllers).

    OK, After several hours I figured it out. Turns out there's bugs and odd functionality.
    If someone ever tested the 'advanced audit settings' (which I did in the same GPO at some point) then it sets a registry key to disable the use of the older basic audit settings. But when you stop using those advanced settings in your GPO it doesn't remove
    that registry bit. So I used the GPO to undo that setting. This was the first step. This is found Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options > "Audit: Force audit policy subcategory
    settings (Windows Vista or later) to override audit policy category settings" to DISABLED.
    Even though this is done, sometimes the GPO files on the domain controllers don't remove the old audit settings. So in the comments of another thread I found out you may have to go to
    \\domain-fqdn\SYSVOL\domain-fqdn\Policies\{your-policy-id-where-this-setting-was-originally-set}\Machine\Microsoft\Windows NT\ and delete the Audit folder which is left behind due to some odd bug. If you don't do this even after doing the next step the
    next gpupdate will bring that security setting above back down.
    Next you have to reset your audit settings on your PC to the defaults. Unfortunately there is no way to do this. Auditpol /clear does not accomplish this. The only way to do this is to take the audit settings from another working system, export them and
    then 'restore' those same settings to the affected server. To do this:
    1. On 'working system' run cmd.exe as administrator and export the audit settings to a folder like this:
    auditpol /backup /file:c:\working-auditpol-settings.txt
    2. Copy that file to the broken system such as the C:\ drive and run this on the broken system:
    auditpol /restore /file:c:\working-auditpol-settings.txt
    Open GPEDIT.MSC and verify the audit settings are back to normal. Computer Configuration > Windows Settings > Security Settings > Local Policies > Audit Policy
    Then run gpupdate/force on the formerly broken system. Close gpedit.msc and reopen and verify the settings were not overwritten. If you skipped the sysvol audit folder deletion step they may come back.
    Hope this helps someone.

Maybe you are looking for

  • Custom event handler not executing

    Hello. I'm to set an event handler to execute after a user gets added a role. I have my plugin.zip file like this: -lib/(myjar).jar -plugin.xml Plugin.xml looks like this: <?xml version="1.0" encoding="UTF-8" ?> <oimplugins>      <plugins pluginpoint

  • Problem with .profile

    Hi. I have been editing the .env files for the db user on the application node of our development db and now when I log back in as that user I get this: su - appdbdev .profile[3]: !/bin/sh: not found. .profile[3]: dev: not found. Does this mean that

  • HT4241 HDMI displayport

    my hdmi display port was working just fine and then all of the sudden just stopped working. Has this happened to anyone else and if so what do i do to fix it?

  • Web browsers for Mac Snow Leopard

    This weekend I upgrade to Snow Loepard and then version 10.6.3. I now experience high cpu usage (and slowness)with Safari. An Apple rep told me there have been reports of this issue, but no resolution. As a result I need to use a different web browse

  • Is this possible in OEPE?

    Using latest version of OEPE with Eclipse Indigo deploying to weblogic 9.2 server on win 2000 (sp4) Whenever I select Publish or Clean the server automatically starts up - surely it's possible to disable this but can't find anything obvious - how can