sfdc-convert-notes-to-chatter-notes icon indicating copy to clipboard operation
sfdc-convert-notes-to-chatter-notes copied to clipboard

Install Failed: Dependent class is invalid and needs recompilation

Open SalesforceBobLightning opened this issue 5 years ago • 2 comments

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?

SalesforceBobLightning avatar May 03 '19 11:05 SalesforceBobLightning

Here is the full error message:

  1. 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

  2. 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

  3. 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

  4. 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

  5. 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

  6. 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

  7. 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

  8. 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

  9. 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

  10. Field is not writeable: ContentVersion.CreatedById ConvertNotesToContentNotesService: Field is not writeable: ContentVersion.CreatedById

  11. Field is not writeable: ContentVersion.CreatedDate ConvertNotesToContentNotesService: Field is not writeable: ContentVersion.CreatedDate

  12. Field is not writeable: ContentVersion.LastModifiedById ConvertNotesToContentNotesService: Field is not writeable: ContentVersion.LastModifiedById

  13. Field is not writeable: ContentVersion.LastModifiedDate ConvertNotesToContentNotesService: Field is not writeable: ContentVersion.LastModifiedDate

  14. Field is not writeable: Note.CreatedById ConvertNotesToContentNotesServiceTest: Field is not writeable: Note.CreatedById

  15. Field is not writeable: Note.CreatedById ConvertNotesToContentNotesServiceTest: Field is not writeable: Note.CreatedById

  16. Field is not writeable: Note.CreatedById ConvertNotesToContentNotesServiceTest: Field is not writeable: Note.CreatedById

  17. Field is not writeable: Note.CreatedById ConvertNotesToContentNotesServiceTest: Field is not writeable: Note.CreatedById

  18. Field is not writeable: Note.CreatedById ConvertNotesToContentNotesServiceTest: Field is not writeable: Note.CreatedById

  19. Field is not writeable: Note.CreatedById ConvertNotesToContentNotesServiceTest: Field is not writeable: Note.CreatedById

  20. Field is not writeable: Note.CreatedById ConvertNotesToContentNotesServiceTest: Field is not writeable: Note.CreatedById

  21. Invalid type: ConvertNotesToContentNotesQueueable ConvertNotesToContentNotesTrigger: Invalid type: ConvertNotesToContentNotesQueueable

  22. Apex class 'dca_cnvrt_note.ConvertNotesRunOnceController' does not exist ConvertNotesFAQPage: Apex class 'dca_cnvrt_note.ConvertNotesRunOnceController' does not exist

  23. Apex class 'dca_cnvrt_note.ConvertNotesRunOnceController' does not exist ConvertNotesRunOncePage: Apex class 'dca_cnvrt_note.ConvertNotesRunOnceController' does not exist

SalesforceBobLightning avatar May 03 '19 11:05 SalesforceBobLightning

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

Rune2h avatar Jan 20 '20 12:01 Rune2h