You need to sign in to do that
Don't have an account?
Error uploading Enhanced Notes - Invalid ShareType
I have migrated Notes to Enhanced Notes (ContentNote) using SF data loader. Most of the records are migrated successfully, only in few of the records I am receiving following error:
Invalid sharing type "I"
I tried changing the ShareType to 'C' (Collaborator) but same error. Does it have something to do with security settings of the Parent (LinkedEntityId) record?
P.S. All the error records have ParentIds in Quote ('0Q0') or Email Template ('00X') objects.
Invalid sharing type "I"
I tried changing the ShareType to 'C' (Collaborator) but same error. Does it have something to do with security settings of the Parent (LinkedEntityId) record?
P.S. All the error records have ParentIds in Quote ('0Q0') or Email Template ('00X') objects.
I create the Docket record and a ContentVersion record which generates a ContentDocument record. I grab that ContentDocument record and tie it to the Docket record through the ContentDocumentLink record that I create. It only works if I set ShareType to 'V', but I want the ShareType of the file to be inferred based on access to the parent of the file, the Docket record.
"Insert failed. First exception on row 0; first error: INSUFFICIENT_ACCESS_OR_READONLY, Invalid sharing type I: [ShareType]"
ContentNote cNote = new ContentNote();
cNote.title='Untitled Note';insert cNote;
System.Debug('Content Note : ' + cNote);
ContentDocumentLink cdLink = new ContentDocumentLink();
cdLink.ContentDocumentId = cNote.id;
System.Debug('Content Document Link : ' + cNote.id);
cdLink.LinkedEntityId = agreement.id; //CustomObject record retreived via Controller on page (If i hardcode this on Developer console it works but not when invoked via Apex Page method.)
cdLink.Visibility = 'AllUsers';
cdLink.ShareType = 'I';
insert cdLink;
System.Debug('Content Document Link : ' + cdLink);
system.debug('Successfully Created Empty Note : ' + cNote.id);
System.DmlException: Insert failed. First exception on row 0; first error: INSUFFICIENT_ACCESS_OR_READONLY, Invalid sharing type I: [ShareType]
It appears when a unit test is run, but only SOMETIMES. Maddening.