sync-sfitem logging and/or troubleshooting

  • 2
  • Problem
  • Updated 5 months ago
I'm working on a script to replace Enterprise Sync that Citrix is discontinuing. On one of the folders I'm syncronizing I am getting an exception some time after it starts and seems to synchronize some data...

sync-sfitem : Conflict Item:A folder with this name already exists. Try again.
At D:\!sf-script\t9_to_sharefile.ps1:8 char:1
+ sync-sfitem -sharefilePath sf:/T9Project -LocalPath "D:\T9Project\Management" -Upload -Synchronize -Recursive -Strict
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Sync-SfItem], ODataException
    + FullyQualifiedErrorId : ShareFile.Api.Client.Exceptions.ODataException,ShareFile.Api.Powershell.SyncSfItem

The problem is: since there is no logging for the recursive sync process that shows what exactly is copied / skipped / etc. I am not sure where to look for the source of the problem. 

Also, for the recursive sync it would be extremely helpful to have an exclusion list: eg *.tmp, thumbs.db, etc... 

if the problem  is the powershell wrapper implementation, we wold consider writing our own code that uses API as long as it is better supported or at least documented. I am not certain that that's the case though... 
Photo of Serge Mikhailov

Serge Mikhailov

  • 1 Post
  • 0 Reply Likes

Posted 5 months ago

  • 2

Be the first to post a reply!