+ Start a Discussion
Presence Product GroupPresence Product Group 

Required Featured Missing Exception: Field 'ProfilePhotoId' on object 'User' is not supported

We are running into the following exception after updating a record in our org that fires a workflow: 
We can't save this record because the “Account: IAL Email Changes” process failed. Give your Salesforce admin these details. This error occurred when the flow tried to update records: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY: ContactTrigger: execution of AfterUpdate caused by: System.RequiredFeatureMissingException: Field 'ProfilePhotoId' on object 'User' is not supported. One or more features must be enabled to access this field. () . You can look up ExceptionCode values in the SOAP API Developer Guide. Error ID: 1216016854-20514 (-1794866724)

We are unable to find any documentation about this ProfilePhotoId field or how to enable it. We are also unsure why this is even happening because we can't find anything in the org that is referencing this field.

Has anyone else encountered this?
Rishab TyagiRishab Tyagi
Hello,

It seems like there might be a trigger in your org with the name of ContactTrigger. You can find it under the Setup|Develop|Apex Triggers. You will see that it must be using this field 'ProfilePhotoId' somewhere in its code. Since this is not an actual field in User Object, the code is giving you an exception. You'll need to deactivate this trigger or update the code in order to get rid of this exception so that the trigger no longer interferes with your work.

 Hope that answers your question.
RyanSchierholzRyanSchierholz
I am having a similar issue with this mystery field. I have a flow that's been working for months and recently now is broken because of a field like this that's not accessible.
 
Error element User (FlowRecordLookup).
This error occurred when the flow tried to look up records: UserPreferencesExcludeMailAppAttachments, ProfilePhotoId, UserPreferencesHideCSNGetChatterMobileTask ^ ERROR at Row:1:Column:497 No such column 'ProfilePhotoId' on entity 'User'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name.

Did you find a solution?
Hugo Rosario 8Hugo Rosario 8
Hello Ryan,
We have got the same issue and now we have a solution, also confirmed by Salesforce Support.

The issue:
In the flow, element Lookup for "User" object has the option "How to Store Record Data", as "Automatically store all fields".
These will bring all fields along on the query and this "
ProfilePhotoId" is part of it, but neither us (or you) have access to it. 

The Solution:
Go to the flow element Lookup for "User" object, on the option "How to Store Record Data", change it to "Choose fields and let Salesforce do the rest".
Then, select only the fields you want to retrieve and the issue is no longer present. 

I hope it helps. 

Cheers
Hugo