Azure File Sync issues and errors - files/folders not syncing

%3CLINGO-SUB%20id%3D%22lingo-sub-137499%22%20slang%3D%22en-US%22%3EAzure%20File%20Sync%20issues%20and%20errors%20-%20files%2Ffolders%20not%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-137499%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20are%20testing%20Azure%20Files%20and%20in%20particular%20Azure%20File%20Sync%20currently.%26nbsp%3B%20Admittedly%2C%20we%20are%20throwing%20a%20lot%20of%20files%20and%20shares%20up%20as%20a%20test.%26nbsp%3B%20I%20have%20some%20shares%20that%20that%20show%20its%20'health'%20with%20a%20green%20checkmark%2C%20but%20upon%20reviewing%20the%20Diagnostic%20Event%20Log%20in%20the%20Event%20Viewer%2C%20it%20appears%20that%20there%20are%20large%20numbers%20of%20files%20and%20directories%20that%20are%20not%20syncing%20(in%20other%20words%20they%20were%20never%20uploaded).%26nbsp%3B%20I%20am%20glad%20I%20found%20the%20Event%20Logs%20otherwise%20I%20probably%20would%20have%20assumed%20everything%20was%20uploaded.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20We%20are%20in%20a%20mixed%20Windows%2FMac%20environment%2C%20and%20unfortunately%20over%20the%20years%20many%20Mac%20users%20were%20in%20the%20habit%20of%20naming%20files%20with%20a%20dot%20in%20the%20name.%20This%20is%20not%20a%20period%2C%20but%20a%20horizontally%20centered%20bold%20dot.%20I%20am%20trying%20to%20determine%20a%20way%20to%20rename%20these%20to%20an%20underscore%20in%20batch%2C%20but%20this%20is%20problematic%20as%20Windows%20will%20not%20search%20for%20that%20character.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E2.%20Other%20characters%20are%20also%20giving%20issues.%20I%20believe%20these%20issues%20also%20occur%20with%20OneDrive%20and%20I%20understand%20the%20complexity%20and%20I'm%20not%20complaining.%20Just%20making%20notes%20for%20any%20users%20going%20through%20the%20same%20thing.%20In%20particular%20the%20%25%20sign%2C%20and%20folder%20names%20that%20have%20a%20period%20in%20the%20name.%26nbsp%3B%20So%20for%20instance%2C%20we%20have%20had%20users%20that%20have%20named%20a%20folder%20'12.%20Job%20Notes'.%26nbsp%3B%20The%2012%20represents%20the%20month%20December%2C%20and%20its%20just%20the%20convention%20they%20have%20used%20over%20the%20years.%20While%20the%20folder%20creates%20on%20the%20Azure%20side%2C%20the%20files%20do%20not%20upload.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E3.%20Some%20files%20will%20not%20sync%2C%20and%20I%20cannot%20determine%20a%20rhyme%20or%20reason.%26nbsp%3B%20The%20file%20does%20not%20appear%20to%20be%20in%20use%20or%20locked%20in%20any%20way.%20It%20does%20not%20have%20an%20invalid%20character%20(that%20I%20can%20tell)%20and%20the%20file%20path%20doesn't%20appear%20to%20be%20too%20long.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELog%20Name%3A%20Microsoft-FileSync-Agent%2FDiagnostic%3CBR%20%2F%3ESource%3A%20Microsoft-FileSync-Agent%3CBR%20%2F%3EDate%3A%2012%2F14%2F2017%202%3A43%3A35%20PM%3CBR%20%2F%3EEvent%20ID%3A%201101%3CBR%20%2F%3ETask%20Category%3A%20None%3CBR%20%2F%3ELevel%3A%20Warning%3CBR%20%2F%3EKeywords%3A%20%3CBR%20%2F%3EUser%3A%20SYSTEM%3CBR%20%2F%3EComputer%3A%20SERVER.ourdomain.local%3CBR%20%2F%3EDescription%3A%3CBR%20%2F%3EThe%20File%20Synchronization%20service%20failed%20to%20upload%20a%20file.%20File%20name%3A%5C%5C%3F%5CE%3A%5CShares%5CMarketing%5CPublic%20Relations%5CNew%20Business%20-%20non-automotive%5CCarrey%20Della%5CCarrey-Della%20Pinterest.docx%3B%20Sync%20ID%3A%20%7Beedf85bb-61ad-4fc9-af5f-e14439f3fd00%7D%3B%20Error%3A%200x80c80065%20-%20The%20file%20has%20been%20identified%20to%20produce%20persistent%20errors%20during%20sync.%20Hence%2C%20it%20is%20blocked%20from%20transfering%20data%20until%20the%20retry%20interval%20is%20reached.%3C%2FP%3E%0A%3CP%3EEvent%20Xml%3A%3CBR%20%2F%3E%3CEVENT%20xmlns%3D%22%26quot%3B%26lt%3BA%22%20href%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fwin%2F2004%2F08%2Fevents%2Fevent%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CA%20href%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fwin%2F2004%2F08%2Fevents%2Fevent%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttp%3A%2F%2Fschemas.microsoft.com%2Fwin%2F2004%2F08%2Fevents%2Fevent%3C%2FA%3E%22%26gt%3B%3CBR%20%2F%3E%20%3CSYSTEM%3E%3CBR%20%2F%3E%20%3CPROVIDER%20name%3D%22%26quot%3BMicrosoft-FileSync-Agent%26quot%3B%22%20guid%3D%22%26quot%3B%7B4E816BB7-D169-59A8-A02D-3892859A3B96%7D%26quot%3B%22%3E%3C%2FPROVIDER%3E%3CBR%20%2F%3E%20%3CEVENTID%3E1101%3C%2FEVENTID%3E%3CBR%20%2F%3E%20%3CVERSION%3E0%3C%2FVERSION%3E%3CBR%20%2F%3E%20%3CLEVEL%3E3%3C%2FLEVEL%3E%3CBR%20%2F%3E%20%3CTASK%3E0%3C%2FTASK%3E%3CBR%20%2F%3E%20%3COPCODE%3E0%3C%2FOPCODE%3E%3CBR%20%2F%3E%20%3CKEYWORDS%3E0x4000000000000000%3C%2FKEYWORDS%3E%3CBR%20%2F%3E%20%3CTIMECREATED%20systemtime%3D%22%26quot%3B2017-12-14T20%3A43%3A35.247538400Z%26quot%3B%22%3E%3C%2FTIMECREATED%3E%3CBR%20%2F%3E%20%3CEVENTRECORDID%3E5219603%3C%2FEVENTRECORDID%3E%3CBR%20%2F%3E%20%3CCORRELATION%3E%3C%2FCORRELATION%3E%3CBR%20%2F%3E%20%3CEXECUTION%20processid%3D%22%26quot%3B273892%26quot%3B%22%20threadid%3D%22%26quot%3B130004%26quot%3B%22%3E%3C%2FEXECUTION%3E%3CBR%20%2F%3E%20%3CCHANNEL%3EMicrosoft-FileSync-Agent%2FDiagnostic%3C%2FCHANNEL%3E%3CBR%20%2F%3E%20%3CCOMPUTER%3ESERVER.ourdomain.local%3C%2FCOMPUTER%3E%3CBR%20%2F%3E%20%3CSECURITY%20userid%3D%22%26quot%3BS-1-5-18%26quot%3B%22%3E%3C%2FSECURITY%3E%3CBR%20%2F%3E%20%3C%2FSYSTEM%3E%3CBR%20%2F%3E%20%3CEVENTDATA%3E%3CBR%20%2F%3E%20%3CDATA%20name%3D%22%26quot%3BFileName%26quot%3B%22%3E%5C%5C%3F%5CG%3A%5CShares%5CGarage%5CPublic%20Relations%5CNew%20Business%20-%20non-automotive%5CCarrey%20Della%5CCarrey-Della%20Pinterest.docx%3C%2FDATA%3E%3CBR%20%2F%3E%20%3CDATA%20name%3D%22%26quot%3BSyncId%26quot%3B%22%3E%7BEEDF85BB-61AD-4FC9-AF5F-E14439F3FD00%7D%3C%2FDATA%3E%3CBR%20%2F%3E%20%3CDATA%20name%3D%22%26quot%3BHResultStr%26quot%3B%22%3E0x80c80065%20-%20The%20file%20has%20been%20identified%20to%20produce%20persistent%20errors%20during%20sync.%20Hence%2C%20it%20is%20blocked%20from%20transfering%20data%20until%20the%20retry%20interval%20is%20reached.%3CBR%20%2F%3E%3C%2FDATA%3E%3CBR%20%2F%3E%20%3CDATA%20name%3D%22%26quot%3BHResult%26quot%3B%22%3E-2134376347%3C%2FDATA%3E%3CBR%20%2F%3E%20%3C%2FEVENTDATA%3E%3CBR%20%2F%3E%3C%2FEVENT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E4.%26nbsp%3B%20Lastly%2C%202%20of%20the%20larger%20shares%2C%20they%20do%20not%20have%20a%20healthy%20status%20but%20instead%20have%20a%20red%20exclamation%20point.%26nbsp%3B%20If%20you%20look%20at%20the%20error%20you%20see%3A%26nbsp%3B%3CSTRONG%3EThe%20Azure%20sync%20database%20write%20lease%20has%20been%20lost%20due%20to%20another%20database%20writer.%20The%20current%20operation%20will%20be%20aborted.%26nbsp%3B%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EInterestingly%2C%20one%20of%20the%20shares%20does%20in%20fact%20seem%20to%20sync%20if%20you%20create%20a%20new%20file%2C%20but%20the%20other%20one%20does%20not%20seem%20to%20sync%20at%20all%20anymore%20(beyond%20the%20initial%20sync).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20would%20like%20to%20add%20that%20everything%20has%20been%20amazingly%20easy%20to%20set%20up%2C%20and%20I%20am%20really%20excited%20about%20this%20product.%20It%20appears%20that%20it%20will%20require%20a%20culture%20change%20(with%20the%20Mac%20users)%2C%20and%20at%20least%20currently%20a%20lot%20of%20effort%20to%20get%20what%20could%20be%20thousands%20of%20files%20or%20folders%20renamed%20to%20something%20proper.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-137499%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EData%20%26amp%3B%20Storage%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EStorage%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-145274%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20File%20Sync%20issues%20and%20errors%20-%20files%2Ffolders%20not%20syncing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-145274%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20has%20been%20awhile%20since%20I%20posted%20this%2C%20but%20I%20noticed%20that%20I%20never%20posted%20our%20resolution.%26nbsp%3B%20Basically%2C%20the%20special%20characters%20were%20the%20entire%20root%20of%20the%20problem.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200px%200px%2010.5px%3B%20padding%3A%200px%3B%20color%3A%20%23333333%3B%20font-family%3A%20'Open%20Sans'%2C%20Arial%2C%20sans-serif%3B%20font-size%3A%2016px%3B%20line-height%3A%2026px%3B%20font-weight%3A%20500%3B%20word-wrap%3A%20break-word%3B%20font-style%3A%20normal%3B%20font-variant-ligatures%3A%20normal%3B%20font-variant-caps%3A%20normal%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20start%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20white-space%3A%20normal%3B%20widows%3A%202%3B%20word-spacing%3A%200px%3B%20-webkit-text-stroke-width%3A%200px%3B%20background-color%3A%20%23ffffff%3B%20text-decoration-style%3A%20initial%3B%20text-decoration-color%3A%20initial%3B%22%3EI%20had%20found%20an%20incredible%20PowerShell%20script%20that%20helped%20me%20find%20and%20rename%20the%20files.%26nbsp%3B%20There%20are%20actually%20two%20that%20I%20used.%20One%20just%20files%20the%20files%20and%20folders%20with%20the%20special%20characters%2C%20the%20other%20one%20will%20actually%20rename%20the%20file%20changing%20the%20special%20character%20to%20its%20closest%20latin%20equivalent.%26nbsp%3B%20However%2C%20sometimes%20it%20even%20runs%20into%20characters%20it%20cannot%20change%2C%20so%20I%20use%20the%20first%20script%20to%20find%20and%20manually%20fix%20(luckily%20only%20a%20handful%20so%20far).%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200px%200px%2010.5px%3B%20padding%3A%200px%3B%20color%3A%20%23333333%3B%20font-family%3A%20'Open%20Sans'%2C%20Arial%2C%20sans-serif%3B%20font-size%3A%2016px%3B%20line-height%3A%2026px%3B%20font-weight%3A%20500%3B%20word-wrap%3A%20break-word%3B%20font-style%3A%20normal%3B%20font-variant-ligatures%3A%20normal%3B%20font-variant-caps%3A%20normal%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20start%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20white-space%3A%20normal%3B%20widows%3A%202%3B%20word-spacing%3A%200px%3B%20-webkit-text-stroke-width%3A%200px%3B%20background-color%3A%20%23ffffff%3B%20text-decoration-style%3A%20initial%3B%20text-decoration-color%3A%20initial%3B%22%3ETo%20find%20the%20files%20with%20the%20special%20characters%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200px%200px%2010.5px%3B%20padding%3A%200px%3B%20color%3A%20%23333333%3B%20font-family%3A%20'Open%20Sans'%2C%20Arial%2C%20sans-serif%3B%20font-size%3A%2016px%3B%20line-height%3A%2026px%3B%20font-weight%3A%20500%3B%20word-wrap%3A%20break-word%3B%20font-style%3A%20normal%3B%20font-variant-ligatures%3A%20normal%3B%20font-variant-caps%3A%20normal%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20start%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20white-space%3A%20normal%3B%20widows%3A%202%3B%20word-spacing%3A%200px%3B%20-webkit-text-stroke-width%3A%200px%3B%20background-color%3A%20%23ffffff%3B%20text-decoration-style%3A%20initial%3B%20text-decoration-color%3A%20initial%3B%22%3Egci%20-recurse%20.%20%7C%20where%20%7B%24_.Name%20-match%20%22%5B%5E%5Cu0000-%5Cu007F%5D%22%7D%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200px%200px%2010.5px%3B%20padding%3A%200px%3B%20color%3A%20%23333333%3B%20font-family%3A%20'Open%20Sans'%2C%20Arial%2C%20sans-serif%3B%20font-size%3A%2016px%3B%20line-height%3A%2026px%3B%20font-weight%3A%20500%3B%20word-wrap%3A%20break-word%3B%20font-style%3A%20normal%3B%20font-variant-ligatures%3A%20normal%3B%20font-variant-caps%3A%20normal%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20start%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20white-space%3A%20normal%3B%20widows%3A%202%3B%20word-spacing%3A%200px%3B%20-webkit-text-stroke-width%3A%200px%3B%20background-color%3A%20%23ffffff%3B%20text-decoration-style%3A%20initial%3B%20text-decoration-color%3A%20initial%3B%22%3EThe%20following%20searches%20for%20the%20special%20characters%20and%20renames%20using%20a%20valid%20character%3A%20So%20far%20this%20has%20worked%20beautifully.%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200px%200px%2010.5px%3B%20padding%3A%200px%3B%20color%3A%20%23333333%3B%20font-family%3A%20'Open%20Sans'%2C%20Arial%2C%20sans-serif%3B%20font-size%3A%2016px%3B%20line-height%3A%2026px%3B%20font-weight%3A%20500%3B%20word-wrap%3A%20break-word%3B%20font-style%3A%20normal%3B%20font-variant-ligatures%3A%20normal%3B%20font-variant-caps%3A%20normal%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20start%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20white-space%3A%20normal%3B%20widows%3A%202%3B%20word-spacing%3A%200px%3B%20-webkit-text-stroke-width%3A%200px%3B%20background-color%3A%20%23ffffff%3B%20text-decoration-style%3A%20initial%3B%20text-decoration-color%3A%20initial%3B%22%3Efunction%20Convert-ToLatinCharacters%20%7B%3CBR%20%2F%3Eparam(%5Bstring%5D%24inputString)%3CBR%20%2F%3E%26nbsp%3B%20%5BText.Encoding%5D%3A%3AASCII.GetString(%5BText.Encoding%5D%3A%3AGetEncoding(%22Cyrillic%22).GetBytes(%24inputString))%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%3CBR%20%2F%3E%24files%20%3D%20gci%20-recurse%20%7C%20where%20%7B%24_.Name%20-match%20%22%5B%5E%5Cu0020-%5Cu007F%5D%22%7D%3CBR%20%2F%3E%24files%20%7C%20ForEach-Object%20%7B%3CBR%20%2F%3E%26nbsp%3B%20%24newname%20%3D%20Convert-ToLatinCharacters%20%24_.Name%3CBR%20%2F%3E%26nbsp%3B%20%24newname%20%3D%20%24newname.replace('%3F'%2C'_')%3CBR%20%2F%3E%26nbsp%3B%20if%20(%24_.Name%20-ne%20%24newname)%20%7B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%24num%3D1%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%24nextname%20%3D%20%24_.Fullname.replace(%24_.Name%2C%24newname)%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20while(Test-Path%20-Path%20%24nextname)%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%7B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%24next%20%3D%20(%5Bio.fileinfo%5D%24newname).basename%20%2B%20%22%20(%24num)%22%20%2B%20(%5Bio.fileinfo%5D%24newname).Extension%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%24nextname%20%3D%20%24_.Fullname.replace(%24_.Name%2C%24next)%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%24num%2B%3D1%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%7D%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20echo%20%24nextname%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20ren%20%24_.Fullname%20%24nextname%3CBR%20%2F%3E%26nbsp%3B%20%7D%3CBR%20%2F%3E%7D%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200px%200px%2010.5px%3B%20padding%3A%200px%3B%20color%3A%20%23333333%3B%20font-family%3A%20'Open%20Sans'%2C%20Arial%2C%20sans-serif%3B%20font-size%3A%2016px%3B%20line-height%3A%2026px%3B%20font-weight%3A%20500%3B%20word-wrap%3A%20break-word%3B%20font-style%3A%20normal%3B%20font-variant-ligatures%3A%20normal%3B%20font-variant-caps%3A%20normal%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20start%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20white-space%3A%20normal%3B%20widows%3A%202%3B%20word-spacing%3A%200px%3B%20-webkit-text-stroke-width%3A%200px%3B%20background-color%3A%20%23ffffff%3B%20text-decoration-style%3A%20initial%3B%20text-decoration-color%3A%20initial%3B%22%3EThis%20was%20found%20here%3A%26nbsp%3B%3CA%20style%3D%22outline%3A%20-webkit-focus-ring-color%20auto%205px%3B%20color%3A%20%232186ca%3B%20text-decoration%3A%20underline%3B%20font-weight%3A%20inherit%3B%22%20href%3D%22https%3A%2F%2Fsuperuser.com%2Fquestions%2F636247%2Fhow-do-i-remove-non-ascii-characters-from-filenames%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsuperuser.com%2Fquestions%2F636247%2Fhow-do-i-remove-non-ascii-characters-from-filenames%3C%2FA%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200px%200px%2010.5px%3B%20padding%3A%200px%3B%20color%3A%20%23333333%3B%20font-family%3A%20'Open%20Sans'%2C%20Arial%2C%20sans-serif%3B%20font-size%3A%2016px%3B%20line-height%3A%2026px%3B%20font-weight%3A%20500%3B%20word-wrap%3A%20break-word%3B%20font-style%3A%20normal%3B%20font-variant-ligatures%3A%20normal%3B%20font-variant-caps%3A%20normal%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20start%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20white-space%3A%20normal%3B%20widows%3A%202%3B%20word-spacing%3A%200px%3B%20-webkit-text-stroke-width%3A%200px%3B%20background-color%3A%20%23ffffff%3B%20text-decoration-style%3A%20initial%3B%20text-decoration-color%3A%20initial%3B%22%3EIt%20took%20a%20few%20days%2C%20and%20things%20didn't%20show%20as%20correct%20immediately%2C%20or%20even%20in%20several%20days.%20But%20needless%20to%20say%20after%20a%20long%20weekend%20I%20looked%20at%20everything%20on%20a%20Tuesday%20I%20believe%20and%20everything%20was%20synced%20properly.%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200px%200px%2010.5px%3B%20padding%3A%200px%3B%20color%3A%20%23333333%3B%20font-family%3A%20'Open%20Sans'%2C%20Arial%2C%20sans-serif%3B%20font-size%3A%2016px%3B%20line-height%3A%2026px%3B%20font-weight%3A%20500%3B%20word-wrap%3A%20break-word%3B%20font-style%3A%20normal%3B%20font-variant-ligatures%3A%20normal%3B%20font-variant-caps%3A%20normal%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20start%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20white-space%3A%20normal%3B%20widows%3A%202%3B%20word-spacing%3A%200px%3B%20-webkit-text-stroke-width%3A%200px%3B%20background-color%3A%20%23ffffff%3B%20text-decoration-style%3A%20initial%3B%20text-decoration-color%3A%20initial%3B%22%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

We are testing Azure Files and in particular Azure File Sync currently.  Admittedly, we are throwing a lot of files and shares up as a test.  I have some shares that that show its 'health' with a green checkmark, but upon reviewing the Diagnostic Event Log in the Event Viewer, it appears that there are large numbers of files and directories that are not syncing (in other words they were never uploaded).  I am glad I found the Event Logs otherwise I probably would have assumed everything was uploaded. 

 

1. We are in a mixed Windows/Mac environment, and unfortunately over the years many Mac users were in the habit of naming files with a dot in the name. This is not a period, but a horizontally centered bold dot. I am trying to determine a way to rename these to an underscore in batch, but this is problematic as Windows will not search for that character. 

 

2. Other characters are also giving issues. I believe these issues also occur with OneDrive and I understand the complexity and I'm not complaining. Just making notes for any users going through the same thing. In particular the % sign, and folder names that have a period in the name.  So for instance, we have had users that have named a folder '12. Job Notes'.  The 12 represents the month December, and its just the convention they have used over the years. While the folder creates on the Azure side, the files do not upload. 

 

3. Some files will not sync, and I cannot determine a rhyme or reason.  The file does not appear to be in use or locked in any way. It does not have an invalid character (that I can tell) and the file path doesn't appear to be too long. 

 

Log Name: Microsoft-FileSync-Agent/Diagnostic
Source: Microsoft-FileSync-Agent
Date: 12/14/2017 2:43:35 PM
Event ID: 1101
Task Category: None
Level: Warning
Keywords:
User: SYSTEM
Computer: SERVER.ourdomain.local
Description:
The File Synchronization service failed to upload a file. File name:\\?\E:\Shares\Marketing\Public Relations\New Business - non-automotive\Carrey Della\Carrey-Della Pinterest.docx; Sync ID: {eedf85bb-61ad-4fc9-af5f-e14439f3fd00}; Error: 0x80c80065 - The file has been identified to produce persistent errors during sync. Hence, it is blocked from transfering data until the retry interval is reached.

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-FileSync-Agent" Guid="{4E816BB7-D169-59A8-A02D-3892859A3B96}" />
<EventID>1101</EventID>
<Version>0</Version>
<Level>3</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x4000000000000000</Keywords>
<TimeCreated SystemTime="2017-12-14T20:43:35.247538400Z" />
<EventRecordID>5219603</EventRecordID>
<Correlation />
<Execution ProcessID="273892" ThreadID="130004" />
<Channel>Microsoft-FileSync-Agent/Diagnostic</Channel>
<Computer>SERVER.ourdomain.local</Computer>
<Security UserID="S-1-5-18" />
</System>
<EventData>
<Data Name="FileName">\\?\G:\Shares\Garage\Public Relations\New Business - non-automotive\Carrey Della\Carrey-Della Pinterest.docx</Data>
<Data Name="SyncId">{EEDF85BB-61AD-4FC9-AF5F-E14439F3FD00}</Data>
<Data Name="HResultStr">0x80c80065 - The file has been identified to produce persistent errors during sync. Hence, it is blocked from transfering data until the retry interval is reached.
</Data>
<Data Name="HResult">-2134376347</Data>
</EventData>
</Event>

 

4.  Lastly, 2 of the larger shares, they do not have a healthy status but instead have a red exclamation point.  If you look at the error you see: The Azure sync database write lease has been lost due to another database writer. The current operation will be aborted.  

 

Interestingly, one of the shares does in fact seem to sync if you create a new file, but the other one does not seem to sync at all anymore (beyond the initial sync).

 

I would like to add that everything has been amazingly easy to set up, and I am really excited about this product. It appears that it will require a culture change (with the Mac users), and at least currently a lot of effort to get what could be thousands of files or folders renamed to something proper. 

1 Reply

It has been awhile since I posted this, but I noticed that I never posted our resolution.  Basically, the special characters were the entire root of the problem.

 

I had found an incredible PowerShell script that helped me find and rename the files.  There are actually two that I used. One just files the files and folders with the special characters, the other one will actually rename the file changing the special character to its closest latin equivalent.  However, sometimes it even runs into characters it cannot change, so I use the first script to find and manually fix (luckily only a handful so far).

To find the files with the special characters

gci -recurse . | where {$_.Name -match "[^\u0000-\u007F]"}

The following searches for the special characters and renames using a valid character: So far this has worked beautifully. 

function Convert-ToLatinCharacters {
param([string]$inputString)
  [Text.Encoding]::ASCII.GetString([Text.Encoding]::GetEncoding("Cyrillic").GetBytes($inputString))
}

$files = gci -recurse | where {$_.Name -match "[^\u0020-\u007F]"}
$files | ForEach-Object {
  $newname = Convert-ToLatinCharacters $_.Name
  $newname = $newname.replace('?','_')
  if ($_.Name -ne $newname) {
    $num=1
    $nextname = $_.Fullname.replace($_.Name,$newname)
    while(Test-Path -Path $nextname)
    {
      $next = ([io.fileinfo]$newname).basename + " ($num)" + ([io.fileinfo]$newname).Extension
      $nextname = $_.Fullname.replace($_.Name,$next)
      $num+=1
    }
    echo $nextname
    ren $_.Fullname $nextname
  }
}

This was found here: https://superuser.com/questions/636247/how-do-i-remove-non-ascii-characters-from-filenames

It took a few days, and things didn't show as correct immediately, or even in several days. But needless to say after a long weekend I looked at everything on a Tuesday I believe and everything was synced properly.