Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum Remove-PWFolderSecurity 50000 Error on Successful execution
    • Sign In

    • State Not Answered
    • Replies 0 replies
    • Subscribers 66 subscribers
    • Views 186 views
    • Users 0 members are here

    Remove-PWFolderSecurity 50000 Error on Successful execution

    Robert Biggar
    Offline Robert Biggar over 1 year ago

    I ran this question through another thread and K Van Haaren was able to reproduce it...

    We are seeing it in the PWPS DAB Version  2. 1. 8. 0

    Anybody have any experience with this? know how to suppress it? How to avoid it?

    Thanks!

    ==================================================================================================

    $PWfolder = get-pwfolders -FolderID $TfolderID -JustOne -slow

    $return = Remove-PWFolderSecurity -InputFolder $PWfolder -MemberType u -MemberName 'Spongebob' -FolderSecurity -Verbose
    VERBOSE: Starting Access Control Removal Process 7/20/2022 9:01:42 AM.
    VERBOSE: 1 input folders.
    VERBOSE: MemberType 1; MemberID 430
    VERBOSE: Preparing to remove access control settings for project: doc_Area_1.
    VERBOSE: MemberType: u; MemberID 430; MemberName: Spongebob
    VERBOSE: Removing Folder Security.


    Remove-PWFolderSecurity : Failed to remove folder security for 'Lansing Support\biggarr\Set_Test\doc_Area_1'
    At line:1 char:11
    + $return = Remove-PWFolderSecurity -InputFolder $PWfolder -MemberType ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (Not found.:String) [Remove-PWFolderSecurity], Exception
    + FullyQualifiedErrorId : PWErrorID: 50000,PWPS_DAB.RemovePWFolderSecurity

    VERBOSE: Ending Access Control Update Process 7/20/2022 9:01:43 AM.

    ================================================================================================

    The Odd thing is that it does remove what I asked it to...It just seems to be throwing a false error..."50000 Not specified"

    • 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