MigrationPermanentException error when migrating Google Mail (Gmail) to Office 365

This error (MigrationPermanentException: We had trouble signing in to this account. Please confirm that you‎’re using the correct user name and password.) can give you a real headache because the guide from Microsoft is easy to follow and things should’nt go wrong (normally). We’ve got this error for only 1 user while migrating a couple of users from Gmail to Office 365. I have read a lot of blogs saying the same thing and this is as follows:

  • Verify your .CSV file is correct with the three standard columns
  • Verify your app password

We’ve resetted the password a few times and created a new password after setting up two way auth again but this didn’t solve the problem. My issue was related to a Gmail setting that the specific user had disabled.


1. Go to the Gmail site using the users credentials

2. Go to settings

3. Click on the POP/IMAP tab

4. Enable IMAP for this mailbox
4a. it can take 1 hour before this setting is active

Lync presence with summary links web part issue in SharePoint 2013

We migrated SharePoint 2010 to SharePoint 2013 and noticed that the image link for Lync presence was missing for the summary links web part. We verified Lync was working correctly by seeing that the presence was shown in lists and document libraries. We noticed the below behavior.

When the user was not logged on to Lync the following is shown:

Summary Links Web Part issue1

and the following when the user was logged on

Summary Links Web Part issue2

The images links are broken because they are being redirected to the 14 hive in SharePoint 2013. Unfortunately it is not as simple as copying the image to this location but you will have to use the below workaround to get the summary links web part to function again.


  • Navigate to the following directory on each SharePoint 2013 server in the farm:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES\PublishingResources

  • Copy the “SummaryLinkMain.xsl” file to another location
  • Edit “SummaryLinkMain.xsl” in this directory.
  • Find the below section

<span class=”presence-status-icon”>
<img src=”/_layouts/images/imnhdr.gif” onload=”{concat($prefix, @SipAddress, $suffix)}” ShowOfflinePawn=”1″ id=”{concat(‘MWP_pawn_’,$slw_clientid,’_’,$id,’,type=sip’)}”/>

  • Change this section completely to the following:

<span class=’ms-imnSpan’>
  <a href=’#’ onclick=’IMNImageOnClick(event);return false;’ class=’ms-imnlink’>
    <span class=’ms-spimn-presenceWrapper ms-imnImg ms-spimn-imgSize-10×10′>
      <img src=”/_layouts/15/images/spimn.png” class=’ms-spimn-img ms-spimn-presence-disconnected-10x10x32′ onload=”{concat($prefix, @SipAddress, $suffix)}” ShowOfflinePawn=”1″ id=”{concat(‘MWP_pawn_’,$slw_clientid,’_’,$id,’,type=sip’)}”/>

  • Save the file on the same location
  • Perform an IISReset
  • Verify if the presence is now working in the Summary Links Web Part.

Summary Links Web Part issue3


Get SharePoint 2010 Managed paths with PowerShell

You created an environment with a couple of web applications that each have their own unique managed paths. With this PowerShell code you can view which managed paths you have used for each web application. You dont have to click trough SharePoint 2010 anymore.

This oneliner gets all managed paths per web application:

get-spwebapplication | %{$url = $_.url; write-host “`nWeb app: $($_.url)”; get-spmanagedpath -webapplication $_ | %{write-host ”     Type: $($_.type) – url: $($url)$($_.name)”}}


It first gets all web applications and displays the url, then it will get all managed paths per web application and displays the type and url.