You need to sign in to do that
Don't have an account?
![Somasundaram Subramanian Somasundaram Subramanian](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
uninstall package
The package is already suspended and when i tried to unstall the package it throw below error and it says more than 300 classes referred like below
The Apex class "InflAPIHandler" is in use by a queued or in progress Apex Batch or Sharing Recalculation and cannot be deleted.
when i query the below one and I couldnt find any of the above class id is in batch , how to fix this
SELECT ApexClassId,CompletedDate,CreatedById,CreatedDate,ExtendedStatus,Id,JobItemsProcessed,JobType,LastProcessed,LastProcessedOffset,MethodName,NumberOfErrors,ParentJobId,Status,TotalJobItems FROM AsyncApexJob
thanks
The Apex class "InflAPIHandler" is in use by a queued or in progress Apex Batch or Sharing Recalculation and cannot be deleted.
when i query the below one and I couldnt find any of the above class id is in batch , how to fix this
SELECT ApexClassId,CompletedDate,CreatedById,CreatedDate,ExtendedStatus,Id,JobItemsProcessed,JobType,LastProcessed,LastProcessedOffset,MethodName,NumberOfErrors,ParentJobId,Status,TotalJobItems FROM AsyncApexJob
thanks
What does the below query return?
SELECT Id, CreatedDate FROM AsyncApexJob WHERE JobType='ApexToken' AND Status = 'Queued'
Thanks
Hi Somasundaram,
Please try the below query
SELECT Id, Status, ApexClass.Name, ExtendedStatus FROM AsyncApexJob WHERE ApexClass.Name = 'InflAPIHandler'
There may be other asynchronous processes referencing the class, such as scheduled jobs or triggers. You need to investigate and resolve those dependencies before uninstalling the package.
To check where the class is being referenced use below
SELECT Id, Name, Body FROM ApexClass WHERE Body LIKE '%InflAPIHandler%'
Mark this as best answer if this helps.
Thanks