Archive for the ‘Office 2016’ Category


Scenario

I had quite a few Windows 10 client machines running Office 2016 and also using Office 365 online.  Email was fine and synchronized readily, but as soon as I connected either a SharePoint calendar or contact list, Outlook reported send and receive errors, gave an error window that said server authentication protocol not supported, or both.  Outlook might disconnect from Exchange Server or just not sync.

You might see the following:

outlook1

outlool

This was a frustrating error and reported quite often, but none of the proposed solutions actually worked for my bevvy of machines.  I owe a debt of gratitude to one of the IT staff members at Bellevue School District who snooped around and came up with a fix that does work.

Updates at Fault

A lot of online postings suggest, correctly, that one or more updates has produced this error, and removing them solves the problem.  However, a subsequent and replacement error just returns the error.  And Windows 10 just wants to install those updates for you.

The Fix

Delete the connected contact and/or calendar from Outlook.  Then close Outlook.

Run regedit.  Navigate to the following area and add this key as a 32-bit double word with a value of 0:

HKCU\SOFTWARE\Microsoft\Office\16.0\Common\Identity\EnableADAL

 

Once that is done, open Outlook and see if the same error occurs.  If not, go to Office 365/SharePoint/<calendar>or<contact> and re-connect to Outlook.

If the error persists, you will need to create a new Outlook profile.  If the existing profile has other connections and/or data files, be sure and keep that profile so you can add them properly to the new profile.  Once the new profile has been loaded and is syncing properly, you can go back and remove the original profile.

To make this even easier for you, create a text file but rename it to <something<.reg on your desktop or other convenient location.  Right click on it and choose edit, then paste in the following lines.  Save it, then click to open and it will add the key to your registry.

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Common\Identity]
“Version”=dword:00000001
“EnableADAL”=dword:00000000

 


OneDrive for Business and/or SharePoint Libraries Synced

If you had your OneDrive for Business library and/or other SharePoint libraries synced and then you upgraded from Office 2010/2013 to Office 2016, there is an excellent chance that syncing will stop.  It may be coincidence that this showed up along with an upgrade to Windows 10, but the primary issues seem to be with Office 2013.

Try This First

Open task manager and see if OneDrive for Business is running, or look in systray for the blue clooud icon indicating it is trying to sync.  If it is not running, go to the start menu (Windows 7 or 10) or look in Applications (Windows 8/8.1) and open OneDrive for Business.  You won’t see anything unless you look in systray again.

If it is running, either because you started it or it was already running, right-click on the systray icon and see if it brings up the context menu.  Hopefully it will, and you should choose repair. Let it run to see if that fixes your problem by then seeing if things start to sync.

I was not so lucky.  I got no context menu when I right-clicked.  More than that, I should 13,000+ files syncing (size of all my synced libraries) and it never changed.

What Worked for Me

I tried several things, none of which actually did any good towards fixing the sync problem, but for your information, and in hopes maybe they would work for you, here they are:\

  • Started OneDrive for Business, restarted the computer and tried again.  Nope.
  • Ran quick repair on Office (installed from Office 365 BTW).  Nope
  • Ran full repair on Office.  Nope.
  • Opened Office 365 and went to each library and tried sync icon.  Nope.

If you too got none of those to work what you should do next is uninstall Office 2016.  Don’t panic about settings like Outlook profiles, signatures, etc.  They won’t disappear on you.

For the next step, rename the synced folders on my local drive.  In my case, the local copies were all on Drive C:, so navigated toC:\Users\<myprofile>.  If you synced ShareSharePoint  libraries you will see a folder Named SharePoint.  DO NOT DELETE THESE FOLDERS OR FILES!!  Rename it to have an extension of .old (you can do anything you want to get rid of the original name, but I would just add some sort of extension and will explain why later).  Doing this AFTER removing Office 2016 doesn’t give you an error that the files are in use.

Now rename the OneDrive for Business folder.  It, too, in in your user profile, with a file name of One Drive – <domain> where domain is your Office 365 user domain.  Add .old to it as well, for example.

Now re-install Office 2016.  If your source is Office 365, open the portal, click on the gear wheel, and choose Office 365 Settings, then either Software (if your site has not been recently upgraded) or Installs (if it has).  Click to download and install Office 2016.  If you didn’t change your computer name, then it already knows you are authenticated on that computer.

When the install is finished, start OneDrive for Business.  You may get error messages that it can’t find the libraries to sync.  If you do, then right click on the systray icon and choose Stop Syncing a Folder, then select the folder(s) and stop synching all of them.

Now, start with the SharePoint libraries you want to sync.  Open the Office 365 portal, navigate to the sites, then to each library and choose sync.  When all have finished, you can now turn your attention to OneDrive.

Here is what I had to do to avoid getting an error on sync that the file could not be opened.

  1. Stop OneDrive for Business.  You can do this in task manager, or right-click on the icon in systray and choose Exit.
  2. Open the Office 365 portal and navigate to your OneDrive for Business.
  3. Click on the sync icon, then allow it to sync.

It took a bit for my files to come across as I had a large amount in OneDrive for Business, but it finally caught up.

But Then…

I started seeing that horrible red circle with the white X appear on the folder and file names in the local folder.  I thought that very strange since all the files were synced before and there should have been no errors.  So I looked at sync errors – right-click on the icon in systray and choose that option – and saw that file after file was asking for credentials.

This is what Microsoft support describes as a known issue.  There is an update to fix it, and if you open an Office 2016 product, click on File then select Account, you will see an update button.  Click to apply the update, then reboot your computer.

While you are there, however, make sure that your Office 2016 is connected to

  • Office 365 SharePoint
  • Office 365 OneDrive for Business
  • OneDrive if you have a personal account that you also use.

I also had to do a bit of tweaking to finally get sync going again for OneDrive for Business.  I stopped the sync, did a repair, then started it again.  It did not seem to get things moving.  So I removed OneDrive for Business from the sync sites, went back to Office 365 and synced it again.  Finally, when it started reporting “need credentials,” I went off to do something else.  When I came back several hours later everything had synced and no errors were reported.

Go figure.

Files Updated Locally but Never Synced to Office 365

You may have a  situation similar to mine in that I had opened and updated files locally as well as created new ones, but they never got synced to the cloud.  So the final step is to “sync locally” with those changes.  That is why it was important to keep the old local copies because those copies hold the updated files and folders.

To “sync” them, I used xcopy.exe from a command prompt.  Add the parameters “/e /s /i /d” to copy only newer files (/d with no additional parameters) and add any missing files and folders.  Assuming that your files are synced on Drive C:, the default location, try these steps:

  1.   Open cmd prompt window.
  2.   Navigate to C:\users\<profilename>.
  3.   Look for the folder SharePoint and the one you renamed to SharePoint.old.
  4.   Enter the command xcopy sharepoint sharepoint.old /e /s /d /i
  5.   This should copy the files that are newer to the local syced folders and then in turn up to Office 365.
  6.   Repeat the command for OneDrive for Business new folder and the old, renamed one.  Be sure and use ” around the directory name, as in xcopy “onedrive for business.old” “onedrive for business” /e /s /d /i.  Replace the directory names in this example with the actual directory names on your drive.

When everything has synced to Office 365 and you are comfortable with the files that are local and in the cloud, you can safely delete the old, renamed folders from your drive.