+ Start a Discussion
Baptiste AUGRAINBaptiste AUGRAIN 

Cloned page with upload get me the FirstPublishLocation permission error

Hello,

I have a working page done by somebody else.
I need to do a visual upgrade of the page so I've cloned the page. It's using the same user and profile as the original page

When testing this new page (without any edit), I'm getting the error:
Error: SF_ERROR: INVALID_ID_FIELD OBJ: ContentVersion - You must specify a FirstPublishLocation where you have publish permission

I've tried to check every where for its permission. I'm not sure which is the right one.
Also, I wonder why the permissions would be different when using the same user and profile.

The ContentVersion's `FirstPublishLocationId` is set in the page's controller (same one for both pages) and have a fixed value.

Can somebody point me to the right permission to check or to anything else that I should check?

Thx
Baptiste
AbhishekAbhishek (Salesforce Developers) 
Error: SF_ERROR: INVALID_ID_FIELD OBJ: ContentVersion - You must specify a FirstPublishLocation where you have publish permission. There are two things to check in Salesforce in order to resolve this. The first is to make sure that your Salesforce user has permission to upload documents to the workspace being used.

Try the suggestions as mentioned in the blog (https://community.boomi.com/s/article/Salesforce-Integration-Guide-Common-Errors#:~:text=Error%3A%20SF_ERROR%3A%20INVALID_ID_FIELD%20OBJ%3A,to%20the%20workspace%20being%20used.).

I hope you find the above information is helpful. If it does, please mark as Best Answer to help others too.

Thanks.
Baptiste AUGRAINBaptiste AUGRAIN
Thanks Abhishek but I've already read that page and spent hours searching for that permission/workspace...

Even if I'm a System Administrator, I can't read the files uploaded by the original page.
I've check the doc https://help.salesforce.com/articleView?err=1&id=content_related_list.htm&type=5 (https://help.salesforce.com/articleView?err=1&id=content_related_list.htm&type=5), I'm a "Salesforce CRM Content User" but I can't find that library. Where should it be?
Baptiste AUGRAINBaptiste AUGRAIN
The issue seems that I don't have access to Salesforce CRM (https://help.salesforce.com/articleView?id=content_initialsetup.htm&type=5 (https://help.salesforce.com/articleView?id=content_initialsetup.htm&type=5))
Baptiste AUGRAINBaptiste AUGRAIN
By deactivating/activating the checkbox "Salesforce CRM Content User", I get access to only "Salesforce Files/Content Permissions".

How can I check if I have full access to the CRM?
AbhishekAbhishek (Salesforce Developers) 
Then you have you raise a case with salesforce support.

Our team will check from the backend and let you know the exact answer.

Regards,
​​​​​​​Salesforce Support.