<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Update version Sequence</title><link>https://communities.bentley.com/products/projectwise/f/projectwise-powershell-extensions-forum/246960/update-version-sequence</link><description>Is there a way to update the sequence of versions when they are scrambled? The large set of data I have has this problem so a batch fix through PowerShell I would think would be a better solution versus deleting and reimporting the documents in the correct</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Update version Sequence</title><link>https://communities.bentley.com/thread/771022?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2023 15:12:54 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a0d9548d-cc5b-4787-b30f-d4255826d8af</guid><dc:creator>MWBSI</dc:creator><description>&lt;p&gt;Looking at the help for Update-PWDocumentProperties, I see that only the version string, not the version sequence is available to be changed.&amp;nbsp; We consider the capability of changing the version sequence too much of a risk for data corruption.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;That said,Export-PWDocumentsToArchive will export the version sequence to an SQLite database.&amp;nbsp; You could modify VersionSequence column of the General_Documents_Table as appropriate, then re-import the documents using Import-PWDocumentsFromArchive.&amp;nbsp; You can Google SQLite to&amp;nbsp;find the link to download SQLite Studio.&amp;nbsp; This will allow you to edit the exported archive database.&lt;/p&gt;
&lt;p&gt;If you choose the above approach, please use caution, testing it out first on sample documents.&amp;nbsp; You would be doing it at your own risk.&amp;nbsp; Look at the help for&amp;nbsp;the import / export to archive cmdlets&amp;nbsp;first.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Mark Weisman | Bentley Systems&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>