Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Error Message - 'Poor performing query - too many rows examined' (4 Comments)

$
0
0

Topic by Harriet Laker

Hi all,

I have written a custom script to import an excel file. I am trying to do the following:

Use 'importArray[1]' as a unique reference to read the appropriate Custom Object 'Geo$Address' record and retrieve Geo$Address.ID. Set ImpactedAddress to Geo$Address.ID. Code is the following:

        $cndb_ar_id = RNCPHP\ROQL::escapeString($importArray[1]);
        $address = RNCPHP\Geo\Address::first("CNDB_AR_ID = $cndb_ar_id");
        if (!$address) {
        echo "Error: No such Address where CNDB_AR_ID = $cndb_ar_id. Skipping to next row.\n";
        continue;
        }
        $impactedAddress = new RNCPHP\Geo\Incident();
        $impactedAddress->ImpactedAddress = $address->ID;
        $address->save();

 

But I get the error:

Fatal error:  Uncaught exception 'RightNow\Connect\v1_2\ConnectAPIError' with message 'Poor performing query - too many rows examined' in /cgi-bin/northernpowergrid.cfg/scripts/custom/src/investigations.php:35
Stack trace:
#0 /cgi-bin/northernpowergrid.cfg/scripts/custom/src/investigations.php(35): RightNow\Connect\v1_2\RNObject::first('CNDB_AR_ID = 22...')
#1 {main}

       

Can anyone help with where I am going wrong? Many thanks


Viewing all articles
Browse latest Browse all 2504

Trending Articles