sfdc-convert-notes-to-chatter-notes
sfdc-convert-notes-to-chatter-notes copied to clipboard
Install Failed: Dependent class is invalid and needs recompilation
When I try and install the app into a sandbox environment I get this error:
Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesBatchable : Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesService : Field is not writeable: ContentVersion.CreatedById
Any ideas what I can do to fix it?
Here is the full error message:
-
Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesBatchable : Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesService : Field is not writeable: ContentVersion.CreatedById ConvertNotesRunOnceController: Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesBatchable : Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesService : Field is not writeable: ContentVersion.CreatedById
-
Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesRunOnceController : Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesBatchable : Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesService : Field is not writeable: ContentVersion.CreatedById ConvertNotesRunOnceControllerTest: Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesRunOnceController : Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesBatchable : Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesService : Field is not writeable: ContentVersion.CreatedById
-
Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesService : Field is not writeable: ContentVersion.CreatedById ConvertNotesToContentNotesBatchable: Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesService : Field is not writeable: ContentVersion.CreatedById
-
Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesBatchable : Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesService : Field is not writeable: ContentVersion.CreatedById ConvertNotesToContentNotesBatchableTest: Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesBatchable : Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesService : Field is not writeable: ContentVersion.CreatedById
-
Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesService : Field is not writeable: ContentVersion.CreatedById ConvertNotesToContentNotesLogger: Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesService : Field is not writeable: ContentVersion.CreatedById
-
Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesLogger : Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesService : Field is not writeable: ContentVersion.CreatedById ConvertNotesToContentNotesQueueable: Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesLogger : Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesService : Field is not writeable: ContentVersion.CreatedById
-
Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesQueueable : Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesLogger : Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesService : Field is not writeable: ContentVersion.CreatedById ConvertNotesToContentNotesQueueableTest: Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesQueueable : Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesLogger : Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesService : Field is not writeable: ContentVersion.CreatedById
-
Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesBatchable : Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesService : Field is not writeable: ContentVersion.CreatedById ConvertNotesToContentNotesSchedulable: Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesBatchable : Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesService : Field is not writeable: ContentVersion.CreatedById
-
Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesSchedulable : Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesBatchable : Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesService : Field is not writeable: ContentVersion.CreatedById ConvertNotesToContentNotesScheduleTest: Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesSchedulable : Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesBatchable : Dependent class is invalid and needs recompilation: Class dca_cnvrt_note.ConvertNotesToContentNotesService : Field is not writeable: ContentVersion.CreatedById
-
Field is not writeable: ContentVersion.CreatedById ConvertNotesToContentNotesService: Field is not writeable: ContentVersion.CreatedById
-
Field is not writeable: ContentVersion.CreatedDate ConvertNotesToContentNotesService: Field is not writeable: ContentVersion.CreatedDate
-
Field is not writeable: ContentVersion.LastModifiedById ConvertNotesToContentNotesService: Field is not writeable: ContentVersion.LastModifiedById
-
Field is not writeable: ContentVersion.LastModifiedDate ConvertNotesToContentNotesService: Field is not writeable: ContentVersion.LastModifiedDate
-
Field is not writeable: Note.CreatedById ConvertNotesToContentNotesServiceTest: Field is not writeable: Note.CreatedById
-
Field is not writeable: Note.CreatedById ConvertNotesToContentNotesServiceTest: Field is not writeable: Note.CreatedById
-
Field is not writeable: Note.CreatedById ConvertNotesToContentNotesServiceTest: Field is not writeable: Note.CreatedById
-
Field is not writeable: Note.CreatedById ConvertNotesToContentNotesServiceTest: Field is not writeable: Note.CreatedById
-
Field is not writeable: Note.CreatedById ConvertNotesToContentNotesServiceTest: Field is not writeable: Note.CreatedById
-
Field is not writeable: Note.CreatedById ConvertNotesToContentNotesServiceTest: Field is not writeable: Note.CreatedById
-
Field is not writeable: Note.CreatedById ConvertNotesToContentNotesServiceTest: Field is not writeable: Note.CreatedById
-
Invalid type: ConvertNotesToContentNotesQueueable ConvertNotesToContentNotesTrigger: Invalid type: ConvertNotesToContentNotesQueueable
-
Apex class 'dca_cnvrt_note.ConvertNotesRunOnceController' does not exist ConvertNotesFAQPage: Apex class 'dca_cnvrt_note.ConvertNotesRunOnceController' does not exist
-
Apex class 'dca_cnvrt_note.ConvertNotesRunOnceController' does not exist ConvertNotesRunOncePage: Apex class 'dca_cnvrt_note.ConvertNotesRunOnceController' does not exist
Ran into the same error, however this contains a clue"Class dca_cnvrt_note.ConvertNotesToContentNotesService : Field is not writeable: ContentVersion.CreatedById"
You need to enable audit field editing, see: https://help.salesforce.com/articleView?id=000334139&language=en_US&type=1&mode=1