log4cxx Errors

When running the following script, I receive an error after some time. There is no associated PW error that shows up in the powershell output, just these three lines then the script hangs. Any ideas what this is caused by and any way to tell if something upstream in the script process is throwing the error? I'd assume, by looking at a previous post by Kevin van Buren who had the same issue, that this is thrown when a PW error occurs. It only just started recently, in the last 36hrs or so. We've been using this same script for months now.

param (

    [string]$targetFolder

)

# Open the file for reading

$file = Get-Content "D:\_idcWork\pwTreeExport\PWExport2Vault\exportList.txt"

foreach ($line in $file){

    echo "$line"
    Reset-PWFolderSecurity -AllSecurity -InputFolder "$line"
    Update-PWFolderSecurity "$line" -MemberType "ul" -MemberName "TEALL" -MemberAccess "r", "fr" -FolderSecurity -DocumentSecurity -Verbose
    Copy-PWFolder -FolderPath "$targetFolder" -FolderToCopy $line -IncludeDocuments -IncludeSubFolders -SkipFolderWorkflowSecurityReplication -ErrorAction Continue

}

The output...

log4cxx: Could not open file [C:\Windows\System32\WindowsPowerShell\v1.0\powershell.log.xml].
log4cxx: No appender could be found for logger (pwise.filehandler.dgn).
log4cxx: Please initialize the log4cxx system properly.

Parents
  • I've re-ran the script from a fresh admin-elevated PS window, different folder though. I received the following error this time:

    PS D:\_idcWork\pwTreeExport\PWExport2Vault> .\CopyLockStations.ps1 -targetFolder "Admin\Export2Vault\_old"
    Station Engineering\1. AEP Companies\Kentucky\Bonnyman 033085
    VERBOSE: 1 input folder(s).
    VERBOSE: MemberType: ul
    VERBOSE: Starting Access Control Update Process 5/16/2023 3:42:52 PM.
    VERBOSE: MemberName: TEALL : MemberID: 17
    VERBOSE: Successfully added access control settings for 'Station Engineering\1. AEP Companies\Kentucky\Bonnyman 033085'.
    VERBOSE:  - Added 'TEALL' to Work Area/Folder security.
    VERBOSE: Successfully added access control settings for 'Station Engineering\1. AEP Companies\Kentucky\Bonnyman 033085'.
    VERBOSE:  - Added 'TEALL' to Document security.
    VERBOSE: Ending Access Control Update Process 5/16/2023 3:42:52 PM.
    True
    Copy-PWFolder : An error occurred when attempting to copy folder 'Station Engineering\1. AEP Companies\Kentucky\Bonnyman 033085' to 'Admin\Export2Vault\_old'.
    At D:\_idcWork\pwTreeExport\PWExport2Vault\CopyLockStations.ps1:16 char:5
    +     Copy-PWFolder -FolderPath "$targetFolder" -FolderToCopy $line -In ...
    +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (Station Enginee...Bonnyman 033085:String) [Copy-PWFolder], Exception
        + FullyQualifiedErrorId : Failed to create satellite document.,PWPS_DAB.CopyPWFolder

    I couldn't locate anything regarding this one either. I was able to manually copy the folder though using ProjectWise Explorer's GUI, no errors.

  • Might help if you provided the code in the 'CopyLockStations.ps1' file and the content of the 'exportlist.txt'.

Reply Children
No Data