Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum Clear-PWWorkflowByFolderPath not functioning as expected
    • Sign In

    • State Suggested Answer
    • Replies 1 reply
    • Answers 1 answer
    • Subscribers 65 subscribers
    • Views 524 views
    • Users 0 members are here
    • powershell
    • PWPS
    • PWPowerShell
    • ProjectWise
    • pwps_dab
    • ProjectWise PowerShell Modules

    Clear-PWWorkflowByFolderPath not functioning as expected

    Philip Las Gourgues
    Offline Philip Las Gourgues over 4 years ago

    I'm running ProjectWise 10.00.03.140 and PWPS_DAB 1.12.3.0.

    When I run the below to attempt to clear the workflow from a nested folder structure it returns "WARNING: Folder 'XXXX' not found" for every folder ID in the path.

    $folders=Get-PWFolders -FolderPath 'MET502\CAD'
    foreach ($folder in $folders) {Clear-PWWorkflowByFolderPath $folder.ProjectID}

    If I manually enter the command as below for a single folder it works as expected even though the test folder is exactly the same ID as one not found above.

    Clear-PWWorkflowByFolderPath -FolderID XXXX

    Any suggestions would be greatly appreciated.

    • Sign in to reply
    • Cancel

    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