douglascayers / sfdc-convert-notes-to-chatter-notes

📓 Easily migrate your Notes to Enhanced Notes.
https://douglascayers.com/2017/05/08/convert-notes-to-enhanced-notes/
BSD 3-Clause "New" or "Revised" License
26 stars 11 forks source link

Install Failed: Dependent class is invalid and needs recompilation #36

Open SalesforceBobLightning opened 5 years ago

SalesforceBobLightning commented 5 years ago

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 commented 5 years ago

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

Rune2h commented 4 years ago

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