Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum Import-PWDocuments error codes and shortened path
    • Sign In

    • State Suggested Answer
    • Replies 7 replies
    • Answers 1 answer
    • Subscribers 67 subscribers
    • Views 2863 views
    • Users 0 members are here
    • Import-PWDocuments
    • powershell
    • ProjectWise

    Import-PWDocuments error codes and shortened path

    Ludovick
    Offline Ludovick over 4 years ago

    Hello

    I recently use Import-PWDocuments to import huge folders (275000 files, about 700 Gb)

    It worked quite well but i had 3 different issues,

    • The script send me different warning of some files (12 files)  who were not imported , do you have these 3 error code explanations ?

    WARNING: Error 56049 creating 'xxx.pdf' in \x\x\

    WARNING: Error 50000 creating

    WARNING: Error 58258 creating

    • when i compare the directory tree, i note that some path were shorten in Projectwise in comparition of windows folder

    I have lot of folder in windows with path > 255 car but Import-PWDocuments seems to deal with this correctly

    • I decide to compare pjw statistics for number of files , per main subfoilders

    About 120 files where missing pretty much everywhere , and different king of files (jpg, pdf, ..)  without any errors messages

    perhaps -verbose helped me to have more informations but with more than 275000 files it will be unreadable

    • Sign in to reply
    • Cancel
    • Dave Cole
      0 Offline Dave Cole Fri, Jan 4 2019 1:46 PM in reply to Mick Inkster

      63 is the max for folder names.  Those values are stored in dms_proj.o_projectname which is nvarchar(63).

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Dan Williams
      0 Offline Dan Williams Fri, Jan 4 2019 4:19 PM in reply to Dave Cole

      Dave, 63 max is correct.

      FWIW, some folks use the description field for longer folder "names" (127 characters) and then use a shorter (real) name.  Keep in mind that folder names (o_projectname) must be unique in the context of a parent folder while folder descriptions do not need to be unique.  But if you are using the folder descriptions as the folder "name", then you need to be careful not to create "duplicates".  This really isn't much of a problem since you still need to specify a unique (real) folder name.

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • 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