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
mamidi maheshmamidi mahesh 

Error: Compile Error: Type arguments must be supplied for parameterized type : Iterable<t> at line 3 column 8

    global class SampleIterableBatch implements Database.batchable<sObject>{

global Iterable start(Database.BatchableContext info){ 
    date todaydate=Date.today();
       todaydate=todaydate+1;
       String query='select id,Status__c from position__c where Status__c!=\'Closed\' and createddate<=:todaydate';
       return query;      
      }     
   global void execute(Database.BatchableContext info, List<position__c> scope){
       for(position__c posRec: scope){ 
         posRec.Status__c='Closed'; 
       } 
       database.update(scope,false); 
   }     
   global void finish(Database.BatchableContext info){     
   } 
}
Error: Compile Error: Type arguments must be supplied for parameterized type : Iterable<t> at line 3 column 8
I want to use return type as Iterable of start method, after writing select query how to return it, please helpe any one. I dont want to use querylocator instead of Iterable. by writing iterable as return type only i want to execute this code. 
Vishnu VaishnavVishnu Vaishnav
Hi Mamidi,

Your answer is here : 
1. https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_iterable.htm
2. https://developer.salesforce.com/forums/ForumsMain?id=906F00000008yXCIAY
3. http://salesforce.stackexchange.com/questions/4864/problem-creating-iterable-batch-class
4. http://sfdcintegration.blogspot.in/2013/05/this-blog-this-blog-showing-posts-with.html

:::======================================================================:::
Qusetion Solved ? then mark as best answer to make helpful to others .....
For more discussion you can reach out here:
vishnukumarramawat@gmail.com