$Web.AssociatedGroups is not returning correct results

Hi all, I have a script that syncs AD Groups to SharePoint Groups. If you ask me why, because SharePoint works better with Users in SharePoint Groups, not AD Groups (Workflows and other stuff like Site Mailbox). But this is not the Point, I am struggeling
with the AssociatedGroups property of the Web Object. The first sync works, but then I do not get the right values when I change associations and resync. It only stays with the first values.
Example: I add a Group AD_SMB-Test to a Web, then to a Subweb. Then I remove it from the parent web, but leave it on the Subweb. The AssociatedGroups Property of the Web Object now still shows the group, even if I removed it. Any Ideas?
To understand the Script, here it is...
asnp *sharepoint*
# Give the WebApplication you want to Sync
$RootWebApp = "https://portal.demo.local"
$Domain = "DEMO\"
# Find all  Site Collections
$Sites = ($RootWebApp | Get-SPSite -Limit All)
foreach ($Site in $Sites){
    $SyncedGroupArray = @()
    #Find all Webs
    $Webs = $Site.AllWebs
    foreach ($Web in $Webs) {
    Write-Host "Going for Web : " -NoNewline -ForegroundColor Green
    $Web.Url
        # Find all Groups
        $SPGroups = $Web.AssociatedGroups
        foreach ($SPGroup in $SPGroups){
        Write-Host "Now getting Group : " -NoNewline -ForegroundColor Yellow
        $SPGroup.Name
            # If one of the SharePoint Groups starts with "AD_" then it should be synced
            if ($SPGroup.ToString().StartsWith("AD_") -eq $true){
                $ADGroupName = $SPGroup.ToString().Remove(0,3)
                $ADGroup = Get-ADGroup -Filter {name -eq $ADGroupName}
                # Check if Group was already synced through another Web
                if ($SyncedGroupArray -contains $SPGroup.Name) {
                    Write-Host "Group already synce, breaking out"
                    break
                # Check if AD Group really exists
                if ($ADGroup -ne $null){
                    $ADGroupMembers = Get-ADGroupMember -Identity $ADGroup
                    # Take all Members Login of this AD Group into an Array to make up SharePoint
                    $SAMArray = @()
                    foreach ($ADGroupMember in $ADGroupMembers) {
                        $SAMArray = $SAMArray + ($Domain + $ADGroupMember.SamAccountName)
                    # Now iterate through SharePoint Group to find users that need to be deleted and create an Array with all of the "left overs"
                    $SPUserArray = @()
                    foreach ($SPUser in $SPGroup.Users) {
                        $SPUserlogin = $SPUser.LoginName.ToString().Remove(0,7)
                        if ($SAMArray -contains $SPUserlogin) {
                            $SPUserArray = $SPUserArray + $SPUserlogin
                        else {
                            $SPGroup.RemoveUser($SPUser)
                    # Now iterate through the AD Group and add missing members to SharePoint Group
                    foreach ($ADGroupMember in $ADGroupMembers) {
                        $ADUser = $Domain + $ADGroupMember.SamAccountName
                        if ($SPUserArray -contains $ADUser) {
                            #Do nothing, User is already present
                        else {
                            New-SPUser $ADUser -Web $Web.Url -Group $SPGroup.Name
                    # Set this Group marked as Synced for this Site Collectin
                    $SyncedGroupArray = $SyncedGroupArray + $SPGroup.Name
        $Web.Dispose()
        # sleep 5

Not sure what you mean when you say you remove the group from the parent.  Groups are always maintained for an entire site collection.  You can remove the permissions assigned to a group at the parent level, but that won't remove the group.  The
group is still there.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem.

Similar Messages

  • Content Query Web Part filter not returning any results

    This CQWP stopped working after moving a number of files to new locations. It is configured in the following way:
    Source: Show items from the following site and all subsites
    List type: Pages Library
    We want to filter the list by the article date, last 30 days. Without a filter, results are returned. If ANY filtering is applied, NO results are returned, NO error messages.
    I experimented with "Group items by" filter, but it also resulted in no results.
    If I change the Source field to a subfolder, I can return filtered results.
    Any ideas? 

    Make sure that ItemStyle.xslt is working fine, try to change the item style
    for your content query web part, if it shows data then there your custom defined
    item style is not working properly

  • Problems with EVGET not Returning Correct Results

    We have several reports with EVGETs that are not working.  It seems to be limited to gets on a particular datasrc when getting members at the base level.  Here is an example.
    Application: Budgeting
    Deptid: D_07104
    Account: A_612080
    Product: P_070040
    Project: PJ_NOPROJ
    Time: 2009.APR
    Datasrc; ACTUALS
    Category: INPUT
    At this point, all the members above are base level members.  A standard EVGET will not return results at this intersection even though there is data.  If we change any of the following (Deptid, product, time, or category) to a parent level member, data will be returned.  Another action we can take to get data to return is open a new worksheet and write the same EVGET on the same intersection and it will return results.  If we go back to the original sheet edit each formula and hit enter it will return the correct results.  If we refresh the sheet, the results will disappear.  We have also tried EVGTS and get similar results.
    Another thing we have tried is copying a month of data from datasrc (ACTUALS) and category (INPUT) to datasrc (NEW_ACTUALS) and category (NEW_INPUT) through the BPC delivered copy.  That seems to work.  I don't know if the copy does something to load the data that we are missing.  We also updated our fact table with a SQL update changing the datasrc and category the same way and processed the application and the data would return through some EVGETs and not others.

    This issue can happen when you have for onde dimension multiple hierachies and something is wrong into hierachies.
    Usually you have dimension formula where you are trying to do calculation of a member from H1 using members from H2.
    This it is an example but it can be other possible errors.
    Any way for sure your issue is related to one dimension having multiple hierachies.
    Regards
    Sorin Radulescu

  • ADDT not returning correct results

    Hello
    SELECT tblTraders.trader_company AS trader_ref, tblTrades.trade_name AS trade_ref, tblT2t.t2t_id
    FROM (tblT2t LEFT JOIN tblTraders ON tblT2t.trader_ref = tblTraders.trader_id) LEFT JOIN tblTrades ON tblT2t.trade_ref = tblTrades.trade_id
    WHERE {$NXTFilter_rstblT2t1}
    ORDER BY {$NXTSort_rstblT2t1}
    With reference to the above SQL statement generated while using dynamic list wizard, the SQL does not return the correct results.
    Sadly the SQL does not retrieve the field "trade_ref" and is blank when the "test" button is used.
    Anyone got any ideas?
    Cheers
    Paul

    Hi Paul,
    does this query return the correct results when loading the page in a browser ?
    Cheers,
    Günter

  • Search-Mailbox Search Query not returning correct results.

    Hi,
    I'd appreciate some assistance with the search and delete I'm trying to I'm run.
    I'm using the following command to find messages with a certain message class received before 01/01/14 in a mailbox.
    Get-Mailbox xxxxxxxxxxxxxxx | Search-Mailbox -SearchQuery '(Received:< 01/01/14) AND ("IPM.Note.Worksite.Ems.Filed")' -EstimateResultOnly | select displayname, success, resultitemscount,Resultitemssize
    When I first ran the command it returned 130,000 items, I ran it again with a -DeleteContent switch, all the items were successfully removed from the mailbox, great! However, when I look in the mailbox I can see ~1000 items with the message class in the command
    and dated 2013 or earlier, they meet the search criteria so I don't understand why when I run the command again it returns 0 items.
    Help!

    Hello,
    Based on your description, your cmdlet is ok.
    When you run the cmdlet with a -DeleteContent switch, the messages are not delete permanently. please try to run the cmdlet with a -DeleteContent switch and -Force switch to check the result.
    Besides, please use get-mailboxstatistics | fl cmdlet to check information about mailbox.
    Cara Chen
    TechNet Community Support

  • IPTObjectManager.Query not returning correct result (Java)

    Hi,
    I am having a problem with the IPTObjectManager.Query method. The code is given below. The issue I am having is, that when I search for a community in a specific folder not results are returned. However if I search in all folders (using -1 as the second parameter to the method) it returns multiple communities including the one I need. Anyone else had the same issue with this??
    // THIS CODE WORKS AND RETURN MULTIPLE COMMUNITIES
    // THE hotelCode VARIABLE IS A STRING VARIABLE CONTAINING A VALUE
    // WHICH IS THE COMMUNITY NAME.
    // Create a ObjectManager object
    IPTObjectManager objectManager = session.GetObjectManagers(ObjectClass.Community.toInteger());
    // define the query based on the passed string
    Object[][] vQueryFilter = {
         new Object[]{new Integer(PT_PROPIDS.PT_PROPID_NAME)},
         new Object[]{new Integer(PT_FILTEROPS.PT_FILTEROP_CONTAINS)},
         new Object[]{hotelCode}};
    // Run the query and return results
    IPTQueryResult ptQueryResult = objectManager.Query(
         PT_PROPIDS.PT_PROPID_ALL, -1, PT_PROPIDS.PT_PROPID_NAME, 0, -1, vQueryFilter);
    // THIS CODE DOES NOT WORK. I AM PASSING IS THE FOLDER ID OF THE
    // FOLDER WHICH CONTAINS THE COMMUNITY
    // Create a ObjectManager object
    IPTObjectManager objectManager = session.GetObjectManagers(ObjectClass.Community.toInteger());
    // define the query based on the passed string
    Object[][] vQueryFilter = {
         new Object[]{new Integer(PT_PROPIDS.PT_PROPID_NAME)},
         new Object[]{new Integer(PT_FILTEROPS.PT_FILTEROP_CONTAINS)},
         new Object[]{hotelCode}};
    // Run the query and return results
    IPTQueryResult ptQueryResult = objectManager.Query(
         PT_PROPIDS.PT_PROPID_ALL, 303, PT_PROPIDS.PT_PROPID_NAME, 0, -1, vQueryFilter);

    I don't know about G6, however in version 5 there does not appear an easy way of doing it. I guess the "easiest" way would be to query sub-folders first, build and array of their ids, and then query for communities in those folders. This is using server API. Something like this (.NET):
    publicvoidGetFolderCommunities(intfolderId){    IPTAdminFolder folder =this.session.GetAdminCatalog().OpenAdminFolder(folderId, false);    IPTQueryResult qr =folder.QuerySubfolders(PT_PROPIDS.PT_PROPID_ALL, [b]1, null, 0, -1, newobject[][] {             newobject[] { PT_PROPIDS.PT_PROPID_FOLDER_FOLDERTYPE }, newobject[] { PT_FILTEROPS.PT_FILTEROP_EQ } , newobject[] { PT_ADMIN_FOLDER_TYPES.PT_ADMIN_FOLDER_TYPE_COMMUNITYFOLDER } } ); int[] folderIds =newint[qr.RowCount()]; Console.WriteLine("------ sub-folders for communities -------"); for(inti =0; i <qr.RowCount(); i++) {        intobjectId =qr.ItemAsInt(i, PT_PROPIDS.PT_PROPID_OBJECTID);        stringobjectName =qr.ItemAsString(i, PT_PROPIDS.PT_PROPID_NAME);        intparentFolderId =qr.ItemAsInt(i, PT_PROPIDS.PT_PROPID_FOLDER_PARENTFOLDERID);        folderIds[i] =objectId; Console.WriteLine("{0}: {1}; parent: {2}", objectId, objectName, parentFolderId); } qr =this.session.GetCommunities().Query( PT_PROPIDS.PT_PROPID_ALL, -1, (object) null, 0, -1, newobject[][] {            newobject[] { PT_PROPIDS.PT_PROPID_FOLDERID }, newobject[] { PT_FILTEROPS.PT_FILTEROP_IN } , newobject[] { folderIds } } ); Console.WriteLine("------ communities from sub-folders -------"); for(inti =0; i <qr.RowCount(); i++) {        intobjectId =qr.ItemAsInt(i, PT_PROPIDS.PT_PROPID_OBJECTID);        stringobjectName =qr.ItemAsString(i, PT_PROPIDS.PT_PROPID_NAME);        int parentFolderId =qr.ItemAsInt(i, PT_PROPIDS.PT_PROPID_FOLDERID);        Console.WriteLine("{0}: {1}; folder: {2}", objectId, objectName, parentFolderId); }}
    Or you could use EDK RPC search. Again, in .NET:
    publicvoidSearchForCommunities(intfolderId){ IPortalSearchRequest searchRequest =this.ptSession.GetSearchFactory().CreatePortalSearchRequest(); searchRequest.SetObjectTypesToSearch(newObjectClass[] { ObjectClass.Community }); searchRequest.SetDocFoldersToSearch(newint[] {}, true); searchRequest.SetAdminFoldersToSearch(newint[] { folderId}, true); searchRequest.SetResultsCount(0, 100); searchRequest.SetResultsOrderBy(PortalField.OBJECT_ID); searchRequest.SetFieldsToReturn(newPlumtreeField[] {}); searchRequest.SetQuery("*"); ISearchResponse searchResponse =searchRequest.Execute(); intreturnedMatches =searchResponse.GetReturnedCount(); ISearchResultSet resultSet =searchResponse.GetResultSet(); IEnumerator enumerator =resultSet.GetResults(); while(enumerator.MoveNext()) { ISearchResult result =(ISearchResult) enumerator.Current; Console.WriteLine( result.GetFieldAsInt(PortalField.OBJECT_ID) +": "+ result.GetFieldAsString(PlumtreeField.NAME) ); }}
    Ruslan.

  • Using Java Connector Calling RFC.....But it's not returning correct result

    Hi Friends,
    In the code ....
    I am calling Remote Function module ZRFC_PO_VEND_VALID using java connector and passing PO_Number and Vendor Number as input parameters and after execution it returns (E_POVALID =1 [PO_NUMBER exists for Vendor number] otherwise E_POVALID = 0 )
    when i am executing the below code ....in both cases it is returning Zero value.
    I tested the function module in se37 its working....
    may i know the reason for this....
    import com.sap.mw.jco.*;
    @author Thomas G. Schuessler, ARAsoft GmbH
    http://www.arasoft.de
    public class TutorialBapi1 extends Object {
    JCO.Client mConnection;
    JCO.Repository mRepository;
    public TutorialBapi1() {
    try {
    // Change the logon information to your own system/user
    mConnection =
    JCO.createClient("100", // SAP client
    "abap", // userid
    "abap", // password
    "en", // language
    "sapdev1", // application server host name
    "00"); // system number
    mConnection.connect();
    mRepository = new JCO.Repository("ARAsoft", mConnection);
    catch (Exception ex) {
    ex.printStackTrace();
    System.exit(1);
    JCO.Function function = null;
    JCO.Table codes = null;
    try {
    function = this.createFunction("ZRFC_PO_VEND_VALID");
    if (function == null) {
    System.out.println("ZRFC_PO_VEND_VALID" +
    " not found in SAP.");
    System.exit(1);
    //mConnection.execute(function);
    JCO.Field vendID = function.getImportParameterList().getField("I_EBELN");
    JCO.Field poID = function.getImportParameterList().getField("I_LIFNR");
    vendID.setValue("20081");
    poID.setValue("4500000017");
    try {
    mConnection.execute(function);
    catch (Exception ex) {
         ex.printStackTrace();
         System.exit(1);
    JCO.Field povalid =
         function.getExportParameterList().getField("E_POVALID");
    //if (povalid.getValue() == null ){
         // System.out.println("Error Message");
    System.out.println(povalid.getValue());
         //if (povalid == null ){
              //System.out.println(povalid.getValue("E_POVALID"));
              //System.out.println("Error Message");
              //System.exit(1);
    catch (Exception ex) {
         ex.printStackTrace();
         System.exit(1);
    mConnection.disconnect();
    public JCO.Function createFunction(String name) throws Exception {
         try {
         IFunctionTemplate ft =
         mRepository.getFunctionTemplate(name.toUpperCase());
         if (ft == null)
         return null;
         return ft.getFunction();
         catch (Exception ex) {
         throw new Exception("Problem retrieving JCO.Function object.");
         public static void main (String args[]) {
         TutorialBapi1 app = new TutorialBapi1();
    with warm regards,
    Madhu.

    Hi Ravi ,
    I tried as per your sugggestion..still getting the same problem.
    Regards,
    Madhu!!

  • CF Not Returning Correct Results

    I have a column that has both positive and negative numbers and I am trying to seperate those numbers into a seperate column each. My code below is working if each barcode has both a positive and negative number to compare, but errors are thrown such as "can't convert " to a numeric value" if I just have all positive numbers in the colum. Which, in some casees, I will have because I am importing a CSV file. Can anyone help with the code? - Thanks.
    <!--- SUM POSITVE QUANTITY --->
    <cfquery name="SumPositiveTemp" datasource='inventory'>
    SELECT barcode, sum(quantity) as quantitysumPositive
    FROM temp
    WHERE Quantity > 0 
    GROUP BY barcode
    </cfquery>
    <!--- SUM NEGATIVE QUANTITY --->
        <cfquery name="SumNegativeTemp" datasource='inventory'>
        SELECT barcode, sum(quantity) as quantitysumNegative
        FROM temp
        WHERE Quantity < 0 
        GROUP BY barcode
        </cfquery>
    <!--- SUBTRACT QUANTITY ISSUED MINUS QUANTITY RECEIVED TO GET QUANTITY SOLD --->
        <cfset QuanitySold = '#SumPositiveTemp.quantitysumPositve-SumNegativeTempquantitysumNegative#'>
    <!--- INSERT POSITVIE/NEGATIVE NUMBERS INTO TABLE--->
    <cfoutput query="SumPositiveTemp">
        <cfquery name="InsertPositiveIntoCart" datasource="inventory">
       INSERT INTO Cart1 (barcode, QuantityOut, QuantityIn, QuantitySold)
        VALUES (#SumPositiveTemp.barcode#, #SumPositiveTemp.quantitysumPositive#, #SumNegativeTemp.quantitysumNegative#, #QuantitySold#)
        </cfquery>
    </cfoutput>

    geraldselectric225 wrote:
    Yes, I found that when the barcode did not have matching POS and NEG numbers it would return a null value. After more research, I found that <CFIF ISNUMERIC(NEG VALUE)> was the solution to avoiding a null value and use <CFSET NEG VALUE = 0> in that situation.
    What you have is good. I think you could improve it with this kind of logic:
    <cfif NOT isNumeric(someVar) or someVar LTE 0>
        <cfset someVar = 0>
    </cfif>

  • Spotlight Not Returning Correct Results

    Hello everyone,
    I have a client who uses Spotlight's metadata across the network to mark files for publishing. They'll use the labels as well as Spotlight comments. Now, an issue that has been bothering them since Lion server was installed is that their results from searches based upon either criteria is inconsistant, both on the server itself and across the network. For instance: a search for anything labeled red will come up with different results each time. On the server, some items show up without a filename. A search for Spotlight comments will return files that have no Spotlight comments, however, running the mdls command on the file will show the Spotlight Comments in the kMDFinderComment field. Rebuilding the index has no effect on this problem. Any solutions out there?
    Mac Mini Server running OS X Server 10.7.2
    2GB RAM

    I have a similar problem.  When I click on the Show All in Finder, the results are meaningless.  I get a listing of hundreds of files that have nothing to do with the search word.
    For example, if I put "house" in the search window, I get, for example:
    X Prize Update | 25 Years of PCR | Australia's Stem Cell Center
    X Prize Update | 25 Years of PCR | Australia's Stem Cell Center
    wx_printingoverview.html
    wx_odbcoverview.html
    wx_classesbycat.html
    wp_smart-grid-comms_en_xg.pdf
    Variable Area Technologies / Rotameters And Cole-Parmer Economical Spring-Loaded Flowmeters - Cole-Parmer Catalog.pdf
    Utility Breakdown 6 09-5 10.xlsx
    Utility Breakdown 6 09-5 10.xlsx
    User Guide.pdf
    User Guide
    This makes the Show in Finder completely useless. 

  • SQL Query Not Returning Correct Results

    I am trying to pull all records that are set for mailing and
    are from every state except for Nebraska and some counties in Iowa.
    It isn't pulling correctly. Any help would be greatly appreciated.
    SELECT HS_SATCode.School, HS_SATCode.Add1, HS_SATCode.City,
    HS_SATCode.State, HS_SATCode.[Zip Code], HS_SATCode.county,
    HS_SATCode.mail_list
    FROM HS_SATCode
    WHERE (((HS_SATCode.State)<>'NE') AND
    ((HS_SATCode.mail_list)=1)) OR (((HS_SATCode.State)='IA') AND
    ((HS_SATCode.county)<>'Adair' And
    (HS_SATCode.county)<>'adams' And
    (HS_SATCode.county)<>'audubon' And
    (HS_SATCode.county)<>'buena vista' And
    (HS_SATCode.county)<>'calhoun' And
    (HS_SATCode.county)<>'carroll' And
    (HS_SATCode.county)<>'cass' And
    (HS_SATCode.county)<>'cherokee' And
    (HS_SATCode.county)<>'clay' And
    (HS_SATCode.county)<>'crawford' And
    (HS_SATCode.county)<>'dickinson' And
    (HS_SATCode.county)<>'fremont' And
    (HS_SATCode.county)<>'greene' And
    (HS_SATCode.county)<>'guthrie' And
    (HS_SATCode.county)<>'harrison' And
    (HS_SATCode.county)<>'ida' And
    (HS_SATCode.county)<>'lyon' And
    (HS_SATCode.county)<>'mills' And
    (HS_SATCode.county)<>'monona' And
    (HS_SATCode.county)<>'montgomery' And
    (HS_SATCode.county)<>'o''brien' And
    (HS_SATCode.county)<>'osceola' And
    (HS_SATCode.county)<>'page' And
    (HS_SATCode.county)<>'pottawattamie' And
    (HS_SATCode.county)<>'plymouth' And
    (HS_SATCode.county)<>'ringold' And
    (HS_SATCode.county)<>'sac' And
    (HS_SATCode.county)<>'shelby' And
    (HS_SATCode.county)<>'sioux' And
    (HS_SATCode.county)<>'tayland' And
    (HS_SATCode.county)<>'union' And
    (HS_SATCode.county)<>'woodbury') AND
    ((HS_SATCode.mail_list)=1))
    ORDER BY HS_SATCode.mail_list, HS_SATCode.State,
    HS_SATCode.county

    Wow, that's a lotta brackets. And most of them are
    unnecessary. Let's reduce it a bit.
    WHERE
    HS_SATCode.State)<>'NE' AND HS_SATCode.mail_list =1
    OR (HS_SATCode.State='IA' AND
    HS_SATCode.county<>'Adair' )
    Can you see how this will send mail to Nebraska?

  • Cfquery not returning correct results

    I have a process where I am pulling records from another database.  I put them in the my database and then update a flag in the record from the database so I don't pull it again.  I started noticing that the flag in the records stopped updating.  Now I can't select values from the source table at all.  If I run the query in sql enterprise manager, I get records, but I don't using cfquery.  I am using cfmx 7 version 7,0,1,116466 

    hi
      can u reply with ur cfquery code please.
    thanks.

  • Web certificates are unrecognized.  Web pages do not display correctly.

    Web certificates are unrecognized.  Web pages do not display correctly.
    Web pages post as mostly text but links do not work.    for example youtube.com
    Upload
    Change
    Creator Studio
    Add account Sign out
    Search
    What to Watch
    My Subscriptions
    Music
    What to Watch
    My Channel
    My Subscriptions 5
    History
    Watch Later 27
    Playlists
    More 
    Cars
    Favorites
    Bob 2
    Robin
    Liked videos
    Subscriptions
    Benz lu
    This Connection is Untrusted
    You have asked Firefox to connect securely to smf.crm.red.com, but we can't confirm that your connection is secure.
    Same problem in Firefox.
    Normally, when you try to connect securely, sites will present trusted identification to prove that you are going to the right place. However, this site's identity can't be verified.
    What Should I Do?
    If you usually connect to this site without problems, this error could mean that someone is trying to impersonate the site, and you shouldn't continue.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Enterprise Manager does not give correct results

    I am using version 9.0.2.0.1 core edition(oc4j & web-cache).
    My application consists of business components, java beans and jsp. It is running fine.
    Oracle enterprise manager is not giving correct results of memory/cpu usage by oc4j_home and bc4j.
    Some times it does not gives result, when i refresh it twice or thrice it shows results.
    But results are not correct. On each refresh it gives different results.
    Then it is very hard to find which resuslt is correct.
    waiting for response,
    Tahir.

    i have been using 9iAS versions 102*, 90200, 90201, and now using 903.
    As stated above, some times the results for oc4j_home is displayed.
    But the memory/cpu usage for bc4j is never shown.
    Also, its radio-button is always disabled. while its status is "running".
    On BC4J page, it also shows results of application modules created. But these results are usually wrong.
    How bc4j will be enabled, and how its memory results can be get ???
    Tahir.

  • NonLinearFitWithMaxIters does not give correct results for phase

    Dear all,
    I am trying to fit a sin cuve with NonLinearFitWithMaxIters function of labwindows, but the results given by this function are dispersed a lot (the function does not give same results).
    In fact, I have two waveforms signals v and i (of 104 points), and I  find the phase between the two signals with NonLinearFitWithMaxIters.
    The two singals v and i are  measured with an osciloscope.
    I use the following fit functions :
    v=p1*sin(wt+p2) ;
    i=p3*sin(wt+p4) ;
    I use the NonLinearFitWithMaxIters function to fit the data and to have the parameters  p1, p2, p3, p4. Then, the phase is claculated as follow phase=p4-p3.
    The problem is that the phase calculted between the two signals (v and i) is different for each run for the same conditions.
    In fact, for a same condition, I measure different times the signals v and i, and I calculate the phase p4-p3, using NonLinearFitWithMaxIters. The goal is to calculate a mean of phases for the same condition. For example, there are cases where the phase=-5 degree, and other cases when phase=12 degree.
    For ten measures of v and i, the phase calculated is different. I get a big dispersion between the phases.
    I would like to know please why I have a big difference in phases calculated with the same condition?whern using NonLinearFitWithMaxIters.
    I read that this function does not give all time the correct results, is there a way to know when the results are not corrects and when they are correct ?
    And is there any solution to find accuratly the phase between the two waveforms.
    Thank you for your precious answer.

    The pseudocode which I am using is :
    v_err=NonLinearFitWithMaxIters(array_x,array_v,v_y_fit,1252,100,sinus,v_coef,2,&v_mean_squareError);
    The fit function is
    double sinus(double x, double a[],int noef){
        return (a[0]*sin((w*x)+a[1]));
     I use the same inital coeficient of v_coef for each run :     
    v_coef[0]=0.03;
    v_coef[1]=0.2;
    These coeficient are choosen arbitrary.
    In this case, the number of points of the data is 1252 (the data of array_v).
    The number of iterations is 100.
    For the array_x, the distance between adjacents values of the array is dt=0.4*1e-9(difference between array_x[i] anv array_x[i+1]=dt=0.4*1e-9 ).
    for (i=0;i<1252;i++){
    array_x[i]=i*(0.4*1e-9);
    The means square error returnned by the function when it is complished is  small, of the order of 0,001.
    I read the help
    « From the help:
    You must pass a pointer to the nonlinear function f(x,a) along with a set of initial guess coefficients a. NonLinearFitWithMaxIters does not always give the correct answer. The correct output sometimes depends on the initial choice of a. It is very important to verify the final result.
    That means that the function cannot be used, as it does not give correct results. How
    can we check if the results are good or not ? in my case.
    I think that in my case, the function does not give correct results, but how can I check if the results are good, or not ? The mean square error is small.

  • Avoid JDBC sender error: Execute statement did not return a result set

    Hi!
    My JDBC sender adapter towards MS SQL server works fine, with an Execute statement calling a stored procedure that returns the source data needed. The stored procedure itself updates the status of database table records, so that only the unread records are returned each time the stored procedure is called.
    However, the communication channel monitoring sets a red flag for the JDBC sender adapter, when there are no values to fetch from the database table (using the stored procedure). Message says: "Database-level error reported by JDBC driver while executing statement 'EXECUTE FetchMessage 1, 9000'. The JDBC driver returned the following error message: 'com.microsoft.sqlserver.jdbc.SQLServerException: The statement did not return a result set.'. For details, contact your database server vendor."
    This is not an error situation, as I do not expect there to be any values to fetch from the database at all times.
    I do not see how to change the stored procedure to avoid this error.
    Is there a parameter to be set on the JDBC adapter that I can use, so the red flag is avoided?
    Thanks for any input!
    Regards,
    Oeystein Emhjellen

    Hi Oeystein Emhjellen.
    The problem is Store Procedure that has to generate always a ResultSet (or cursor). If it doesn't have a output, you have to generate an Empty ResultSet.
    Like a SELECT Statement:
    If there are data, SELECT get an output result but if it get nothing the SELECT Statement get a empty ResultSet.
    Ask to your database team.
    I hope it helps you.
    Bruno.

Maybe you are looking for