Skip to main content
Solved

Universal Reporter needs fixed for redirected documents

  • 7 October 2019
  • 5 replies
  • 196 views

Universal reporter doesn't currently work with redirected document folders without modifications. I had to update the CommonFunctionsModule.psm1 to trim the trailing slash only in the file path.



I recommend this be updated to work with UNC paths for document folders, as folder redirection is common in the workplace.
Good find! Will add a story on this!



Thank you

Just to elaborate here, if you are encountering this issue you can try the following:

  1. Close the tool
  2. Go to: C:\Users\\username]\AppData\Local\Webroot Reporting\Templates\Common\Scripts\Modules 
  3. Find: CommonFunctionsModule.psm1 
  4. Copy the file as a backup, just in case your cat jumps on your keyboard 
  5. Open CommonFunctionsModule.psm1  with a text editor
  6. Search for text ‘trim’, there be 2 lines (beta release)
  7. Remove both .trim("\") 
  8. Save file

This will be fixed in the GA version.

 

Please let us know how you get on.


I did something similar to fix mine, I just changed .trim to .trimend so it would only take off the trailing slash.  Works great though!


Please note that this is now fixed in the ‘release version’. Thank you for your beta feedback!


Reply