I have a post install script which schedules a batch apex. After installation of the package the jobs are getting scheduled but scheduled apex fails to execute scheduled jobs. It says dependent class is invalid and needs recompilation.
Here is the stack trace
Apex script unhandled exception by user/organization: 005xxxxxxxxx/00Dxxxxxxxx
Scheduled job 'FeedItem Delete Scheduled Job 40' threw unhandled exception.
caused by: line 3, column 44: Dependent class is invalid and needs recompilation: SPARTADMS.DMSFeedItemDeleteBatch: line 34, column 14: DML operation DELETE not allowed on SPARTADMS__Corporate_Document__Feed
Any help would be appreciated.