function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Srinivas Reddy Annadi 23Srinivas Reddy Annadi 23 

ConnectApi.ConnectApiException: Invalid sharing type I Class.ConnectApi.ChatterFeeds.postFeedItem: line 7198

I am facing an issue when attachments are inserting into salesforce from third party and salesforce user as modifyall access to all objects but recently we restricted the guest user access to read, create for winter 21 release.it throwing the error as 'Invalid sharing type Class.ConnectApi.ChatterFeeds.postFeedItem: line 7198' and where can i find the 7198 line number and can you please help on this.

Thanks,
Srinivas.
AnudeepAnudeep (Salesforce Developers) 
Hi Srinivas, 

Can you check if you have any triggers on contentVersion? If yes, you need to ensure you have the following set

link.Visibility = 'AllUsers';

link.ShareType = 'I';

https://salesforce.stackexchange.com/questions/192058/contentdocumentlink-insertion-fails