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. 

Similar Messages

  • 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

  • Spotlight not returning any results

    Hi, when I use spotlight at the top right corner of the desktop to search for anthing I no longer get any results.
    Since then I have tried the following with no luck:
    I repaired permisssions
    I downloaded a program called onyx and executed the rebuild index button
    I deselected all 14 categories in the spotlight preferences and reselected them
    I drug the harddrive to the privacy tab, closed, reopened preferences and drug the harddrive off - this caused a reindex but still no results.
    I rebooted a few times.
    Still spotlight is not showing any results. I see that others have formatted an reinstalled but I do not want to do this!

    I next dug into Metadata and found that it was a
    script calling these three key lines:
    /System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServic es.framework/Versions/A/Support/lsregister -r -domain system
    /usr/bin/touch /var/run/.metadataRunning
    /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/ Versions/A/Support/mds -bootstrap
    all three of these ran ok for me
    what is interesting though, in /System/Library/StartupItems/Metadata the line
    /System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServic es.framework/Versions/A/Support/lsregister -r -domain system
    was commented out...
    I uncommented it but Spotlight is still broken.
    in addition to the previously suggested fixes, I zapped my PRAM but to no avail.
    On my powerbook when I boot up, the Spotlight icon does nothing when clicked on. If I log out and log in again Spotlight works :P
    So now in addition to being frustrating to use it appears now Spotlight is quite flakey.
    I hope the new stuff Steve did not mention at WWDC06 is a working, user friendly find feature.
    In the mean time I still need to find stuff!!!
    Apple? Hello? any ideas?
    Has anyone tried the app Spotless?
    http://www.fixamacsoftware.com/software/spot/
    Did you notice Spotlight wierdness after using this app?

  • 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>

  • $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.

  • 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.

  • 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.

  • Bing based federated result sources not returning any results for non-English languages

    I have a result source with this query:
    http://www.bing.com/search?q={?searchterms}  language:fr site:msdn.microsoft.com&format=rss&count=50&first={startIndex}
    This used to give me 40-50 results for common terms like download, blog etc.
    From today (7/14) IST, this source does not return any results. There are no results if I execute this query directly in IE either.
    Same behavior observed for: language:es, language:de etc.
    I do however get results as expected for language:en.
    Any idea what the issue might be?

    Hi Swapnil,
    According to your description, my understanding is that no results returned when searching with non-English in the Result Source query.
    I tested the same scenario per your post and I got the same results as you got.
    I recommend to change the language:fr in the Result Source query to be lang=fr to see if the issue still occurs.
    More references:
    http://kbdump.com/sharepoint-2013-opensearch-search-twitter-facebook-wikipedia-page/
    http://richardstk.com/2013/11/08/sharepoint-2013-federated-search-to-bing/
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Xquery does not return any results on 10.2.0.4, does work on 10.2.0.5

    I have a Xquery statement that works as expected on Oracle 10.2.0.5 but does not return any results on Oracle 10.2.0.4.
    Is this the result of a badly written query? A bug in 10.2.0.4?
    Is there a way to rewrite the query so that is does work on 10.2.0.4?
    Testcode:
    declare
       l_xml xmltype;
       -- Select layers with TileMatrixSet EPSG:28992
       cursor c_layer(p_xml xmltype) is
          select t.*
            from xmltable(xmlnamespaces(default 'http://www.opengis.net/wmts/1.0'
                                       ,'http://www.opengis.net/ows/1.1' as "ows"
                                        ,'http://schemas.opengis.net/gml' as "gml"
                                        ,'http://www.w3.org/1999/xlink' as "xlink"
                                        ,'http://www.w3.org/2001/XMLSchema-instance' as "xsi")
                          ,'for $d in //Layer[TileMatrixSetLink/TileMatrixSet="EPSG:28992"] return $d' passing
                          p_xml columns title varchar2(100) path 'ows:Title'
                          ,format varchar2(100) path 'Format'
                          ,style xmltype path 'Style') as t;
    begin
       l_xml := xmltype.createxml('<?xml version="1.0" encoding="UTF-8"?>
    <Capabilities xmlns="http://www.opengis.net/wmts/1.0"
    xmlns:ows="http://www.opengis.net/ows/1.1"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:gml="http://www.opengis.net/gml" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd"
    version="1.0.0">
    <Contents>
      <Layer>
        <ows:Title>brtachtergrondkaart</ows:Title>
        <ows:Identifier>brtachtergrondkaart</ows:Identifier>
        <Style isDefault="true">
          <ows:Identifier>_null</ows:Identifier>
        </Style>
        <Format>image/png8</Format>
        <TileMatrixSetLink>      <TileMatrixSet>EPSG:28992</TileMatrixSet>
        </TileMatrixSetLink>  </Layer>
      <Layer>
        <ows:Title>top10nl</ows:Title>
        <ows:Identifier>top10nl</ows:Identifier>
        <Style isDefault="true">
          <ows:Identifier>_null</ows:Identifier>
        </Style>
        <Format>image/png8</Format>
        <TileMatrixSetLink>      <TileMatrixSet>EPSG:28992</TileMatrixSet>
        </TileMatrixSetLink>  </Layer>
      <Layer>
        <ows:Title>bgt</ows:Title>
        <ows:Identifier>bgt</ows:Identifier>
        <Style isDefault="true">
          <ows:Identifier>_null</ows:Identifier>
        </Style>
        <Format>image/png8</Format>
        <TileMatrixSetLink>      <TileMatrixSet>EPSG:28992</TileMatrixSet>
        </TileMatrixSetLink>  </Layer>
    </Contents>
    </Capabilities>');
       for r_layer in c_layer(l_xml)
       loop
          dbms_output.put_line(r_layer.title);
       end loop;
    end;Result on 10.2.0.5:
    brtachtergrondkaart
    top10nl
    bgt

    This one's strange indeed.
    I can reproduce on 10.2.0.4 and one of the following seems to fix it :
    1) Specifying the column list in the SELECT, instead of t.* :
       -- Select layers with TileMatrixSet EPSG:28992
       cursor c_layer(p_xml xmltype) is
          select t.title, t.format, t.style
            from xmltable(or,
    2) Using an extended FLWOR expression :
    for $d in //Layer
    where $d/TileMatrixSetLink/TileMatrixSet = "EPSG:28992"
    return $dMaybe you've already noticed but the problem only occurs within a PL/SQL context.
    The same query run from SQL is OK.

Maybe you are looking for

  • Fusion VM (Windows) won't start after migration to new Mac

    Friends, I just bought a new MacBook Pro, onto which I have migrated my old Mac.  I had Windows 7 installed as a VM on the old Mac, but when I try to start it on the new machine I get no response. Fusion starts and I see the black screen with the "PL

  • How do you fix colored lines on Macbook Pro with Retina Display?

         I have had my Macbook Pro 13" Retina display for over a year now, I recently opened it up and there were several green and blue lines running down the screen.  When I apply pressure to the bottom of the screen, where the black border is, some of

  • URI-Access doesn't work

    I use the xml-databases first time (9.2.0.6) - it works very well (also with register schema and the sql-select) - but the access via http://localhost:8080/oradb/etc. isn't possible (with the standard-xdbconfig.xml) - Has anybody an idea, what's wron

  • Display Occupant Name in adjoining room

    Hi, Have a bit of a problem, I hope you can assist with. I have a report which displays occupants of a dorm. There is also a field that displays the adjoining room number - Is there a simple way to display the occupant name matching the value of the

  • Can't load COM object to display my reports

    Hi, We have created a few reports using Crystal Report with visual studio 2008. Works fine on our development machines.. but not on the server. I installed the redistribuable x86 on the server, but I always get this error (see below). I tracked down