function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
gvgv 

Errors while Deploying

Hi,

 

I made changes to 2 triggers and 2 classes. one is the test class and the other class has the method which the triggers call. The method is a @future method

 when I try to deploy through the IDE, in the validate step,

the triggers and the classes passed the validation.

 

But there were 2/3  unrelated classes which came with a  too many rows exception. Is there a way to get by this error?

 

Thanks

 

Message Edited by gv on 07-27-2009 12:27 AM
sforce2009sforce2009

You can infact.

Use a boolean property

set it to true in constructor

at your query point,

 

if(boolVal )

{

 [select fields from table where condn];

}

else

{

  select fields from table where condn limit 10];

}

 

in your test class, before you call the query method set the boolValue to false.

Thants all....

cheers