Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum Having trouble getting versions to export
    • Sign In

    • State Not Answered
    • Replies 13 replies
    • Subscribers 66 subscribers
    • Views 496 views
    • Users 0 members are here
    • pwps_dab
    • version
    • Export-PWDocuments
    • Get-PWDocumentsBySearch

    Having trouble getting versions to export

    Brian Glaser
    Offline Brian Glaser 8 months ago

    My Get-PWDocumentsBySearch is returning 48 documents, this includes the versions.

    The Export-PWDocuments is only exporting 32 documents and nothing has .verxxxx before the extension. Can anyone explain why?

    PWPS_DAB Version 2.2.0.0.

    Work portion of my script:

    $FilesToExport = Get-PWDocumentsBySearch -FolderPath 'Standards\Test Projects\Test 1\CAD\3D Design Files\Survey' -GetVersionsToo -Verbose
    $Exported = Export-PWDocuments -InputDocuments $FilesToExport -OutputFolder $OutputFolder -ExportVersions -UseDMSFolders

    • Sign in to reply
    • Cancel

    Top Replies

    • MWBSI
      MWBSI Thu, Jan 12 2023 11:02 AM +1
      Using the -verbose switch- with Export-PWDocuments would provide you with more information. Thanks, Mark Weisman | Bentley Systems
    • Kevin van Haaren
      Offline Kevin van Haaren Thu, Jan 12 2023 2:12 PM in reply to Brian Glaser +1
      Instead of a suffix is it creating a verXXXX folder under the DMS folder and putting the file, without suffix, in that subfolder? That's how the versions work with DMS folders on the servers?
    • MWBSI
      MWBSI Mon, Feb 13 2023 3:00 PM in reply to Brian Glaser +1
      This will most likely be fixed next release. In the meantime, please investigate using the -ProjectWiseFolder parameter to specify the folder to export documents from rather than using the -InputDocuments…

    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies