Will the "Import-PWDocuments" switch "-ExcludeSourceDirectoryFromTargetPath" be enabled so we can use the higher than 1.6.x versions?
Been waiting to update machines from 1.4.x due to the "Powershell Users" group requirement, and now that I do, I cannot use the same command line or the new command line...
The suggested fix of putting the file into one folder and moving them to another does not help if the goal is to sync externally generated files into a static folders set, only updating the needed files.
That fix would generate 100% upload every time, defeating the purpose of only updating changes...
Need some help or ideas here please.
Any update on this? Looking into the functionality and UNC path still being copied into PW path and causing failure
I confirm the UNC path issue still exists in 22.214.171.124. I am using PW 03.140 client and server side.
I just tested Import-PWDocuments with a UNC path and it appears to work correctly. Please provide code snippet(s) with the specified UNC path(s) and output (errors, verbose, etc.)
$DiskFolder = "\\servername\folder"
$PWFolder = "_Administration\DAC"
$Storage = "Storage"
New-PWLogin -DatasourceName $datasource
Import-PWDocuments -InputFolder $DiskFolder -ProjectWiseFolder $PWFolder -DefaultStorage $Storage -ExcludeSourceDirectoryFromTargetPath
When I navigate to the DAC folder in PW I see
--------------- (files are placed here)
Expecting the files to be uploaded to the DAC folder. It will do this if I use a C: drive location.
I've updated the Import-PWDocuments to work with source (-InputFolder) UNC paths. Should be available in the next release of the PWPS_DAB module.
This is now fixed in 126.96.36.199