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
muneeswar umuneeswar u 

Issue in Updating latest version of ContentVersion record.

Hi All,

I have created a Lightning Component to update Content file Tags dynamically.
Here using this component I am able to update all Content files with Single version.
 But I am unable to update Content files with Multiple versions.

Below is the error which I got.

Error: You cannot update a version that is not the latest version of a document. Please use the latest version of document Error File

Any help is appreciated.
Thank you
Muneeswar
AnudeepAnudeep (Salesforce Developers) 
As per the documentation, You can only update a version if it is the latest version and if it is published.

This error is expected when you would edit a previous version of the article, but not the latest version. Try removing any attached files and edit the article again
muneeswar umuneeswar u
Hi Anudeep,
Even that's what I need . I want to update the latest version of Content records.

Any Help!