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
JosepvnJosepvn 

Problem while uploading file from Chatter

Hello,

 

I have an issue when I try to upload a file from chatter feed. Consider this simple VF page:

<apex:page showHeader="false" sidebar="false">
    <chatter:feed entityId="{!$User.Id}" />
</apex:page>

 If I try to upload a file from Salesforce, I receive the following error:

 

An error occurred while processing your request. The salesforce.com support team has been notified of the problem. If you have additional information that may helpful for reproducing or correcting the error, please contact Salesforce Support at support@salesforce.com. Please indicate the URL of the page you requested, any error ID shown below, and any related information. We apologize for the inconvenience. Thank you again for your patience and assistance. And thanks for using salesforce.com!

Error ID: 452196970-17062 (-925515707)

 

If I try to upload a file from my computer, I receive the following error:

 

There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "no fields were accessible for displaying validation error: U#224.8ff (ShareType)".

 

I also tried to create the feed by code:

 

Blob blobAux = Blob.valueOf('your_blob_here');
FeedItem post = new FeedItem(Body = 'Test Body',
			     ContentFileName = 'filename.jpeg',
			     ContentDescription = 'Test Content Description',
			     ContentData = blobAux,
			     ParentId = UserInfo.getUserId());

insert post;

 

And I receive the following error:

 

'Execute-Anonymous' has encountered a problem.

An internal error occurred during:
"Execute-Anonymous".

An internal error occurred during: "Execute-Anonymous".
java.lang.NullPointerException

 

Besides, the execute anonymous is not returning the debug log, it keeps showing the message "Executing code...". An alert is shown with the mentioned error message.

 

It is an Enterprise edition org (Sandbox) and the user has the System Administrator Profile. We also don't have triggers neither on FeedItem nor on ContentDocument.

 

Any ideas?

 

 

Thanks in advance,

 

Josep

sandyinmumbai_1sandyinmumbai_1

I am also facing a problem during upload of a normal 3kb file to chatter. Error displayed is:

There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "no fields were accessible for displaying validation error: U#224.8ff (ShareType)"


Did you get any resolution for this


Chirag MehtaChirag Mehta

We too are facing similar error.  Any solutions?