Unable to map onedrive of users with an apostrophe in their username
Version tested: 5.11 Error code: error 224 (even though all prerequisites are met) Resolution:
New line of code to replace the %27 that results from an apostrophe in a username
Before: $userURL = global:edgeDriver.Url.Substring(start,end-start) $mapURL = $mapURLpersonal + $userURL + "" + $libraryName After: $userURL = global:edgeDriver.Url.Substring(start,end-start) $userURL = $userURL.Replace("%27","'") $mapURL = $mapURLpersonal + $userURL + "" + $libraryName
I also edited a line to do the same but for the mapping path
Before: desiredMappings[count].webDavPath = desiredMappings[count].webDavPath.Replace("https://","\").Replace("/_layouts/15/start.aspx#","").Replace("sharepoint.com","sharepoint.com@SSL\DavWWWRoot").Replace("/Forms/AllItems.aspx","")
After: desiredMappings[count].webDavPath = desiredMappings[count].webDavPath.Replace("https://","\").Replace("/_layouts/15/start.aspx#","").Replace("sharepoint.com","sharepoint.com@SSL\DavWWWRoot").Replace("/Forms/AllItems.aspx","").Replace("%27","'")