Troubleshooting OWA for iPhone and iPad

If you’re attempting to try out the OWA for iPhone and iPad apps, then there is likely to come a point that you’ll need to perform a little troubleshooting. In this article, I’m going to show you how get hold of, and make use of, the logs that are stored on the iDevice itself.

First of all, let’s have a look at our hypothetical situation. We’ve got a Hybrid organization, with AD FS being used to provide login to OWA. At first glance all appears fine. I can access Outlook Web App from a local machine without issue, and know my password is correct:


So with everything looking good, I attempt to install and login to the OWA for iPhone app:


However all is not well in the world. Upon entering the correct username and password, I get an error, indicating my username and password might be wrong – or even worse, I might not have an Office 365 account! As we can see when logging into OWA via a web browser, I do know my password and I’m using Office 365.


If we choose try again or advanced, we won’t get any more useful troubleshooting information. It’s time to get the diagnostic logs of the device and see where it’s failing.

To get the logs, plug in the iDevice into your computer and launch iTunes. Within the iDevice section, find the Apps tab and scroll down until you OWA in the list. Select OWA, and you’ll then see the mowa.log file:


Select the mowa.log file and download it. You can now open this in your favourite text editor (top tip – it’s not formatted with DOS line breaks, so you’ll need to open in Wordpad first rather than Notepad). As you can see below, we get a rather detailed log file showing the actions performed under the app’s hood:


Because we’re interested in where it failed, we’ll look towards the bottom of the file. Reading through the file we see that it failed during the final stage of AutoDiscover, when it contacts This is the stage where it’s attempting to authenticate against AD FS, after successfully using on-premises AutoDiscover to redirect to the cloud:

2013-08-12 20:32:14.236 4333:907 W :ExchangeURLConnection.m:406:-[ExchangeURLConnection connection:didFailWithError:] , "Connection failed", "Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn’t be completed. (NSURLErrorDomain error -1012.)" UserInfo=0x20d4d470 {NSErrorFailingURLKey=, NSErrorFailingURLStringKey=}"
2013-08-12 20:32:14.237 4333:907 W :NetworkDispatcher.m:684:-[NetworkDispatcher exchangeURLConnectionFailed:withError:] , "Request failed", "Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn’t be completed. (NSURLErrorDomain error -1012.)" UserInfo=0x20d4d470 {NSErrorFailingURLKey=, NSErrorFailingURLStringKey=}"
2013-08-12 20:32:14.246 4333:907 I :ExchangeURLConnection.m:236:-[ExchangeURLConnection startRequestInternal] , "Starting request"
2013-08-12 20:32:14.256 4333:a023 E :JS.m:16:+[JS e:] 20:32:14.241 [PAL] PalRequestManager.OnError(): NSURLErrorDomain-1012: The operation couldn’t be completed. (NSURLErrorDomain error -1012.)

The error might not be particularly intuitive, but it’s enough to give us a starting point. We can then use the Remote Connectivity Analyser to perform an AutoDiscover test. The Exchange ActiveSync test will do fine. As we expected, it’s failed:


We’ll expand and confirm that when attempting to authenticate against an AD FS-backed endpoint it’s seeing incorrect username and password:


We do know that when I logged in against AD FS on the LAN, it worked, so what could be wrong? When I jump over to the TMG sever that’s publishing it, I see that someone (me!) has disabled the AD FS rule. Doh!


After re-enabling the rule, funnily enough it works:


Although the error I’ve shown was a little forced – it represents the kind of problems you might encounter and most importantly where to find the information you’ll need to troubleshoot the underlying issue; and as always we see that the Remote Connectivity Analyser really is useful when it comes to diagnosing issues!

6 thoughts on “Troubleshooting OWA for iPhone and iPad

  1. “When I jump over to the TMG sever that’s publishing it” – how, please?! I’m stuck! I think it’s probably because I’m working on a Mac and is therefore just a basic compatibility issue, but it’s driving me nuts.

  2. Pingback: C7 Solutions | Continuing Adventures in AD FS Claims Rules

  3. I have a weird version of this. I can log into Office 365 fine using:

    Outlook itself (WIn 8)
    Firefox (Win 8)
    Safari (iPhone running iOS 7.0.4 using – fails on using
    Safari (iPad running iOS 7.0.4)
    OWA app (iPad)

    When I try to connect using the iPhone OWA app, it can’t connect, saying that it found the setting, but an external server wasn’t specified by Autodiscover.

    How does the iPad OWA app work, if that is correct?

    • How did you get on looking at the troubleshooting logs? This *should* point you in the right direction for the error. Are you Federated using ADFS, using MS Online Services IDs? Using Hybrid?

  4. Pingback: Troubleshooting OWA for iPhone and iPad - Office 365 MVPs

  5. Pingback: NeWay Technologies – Weekly Newsletter #57 – August 22, 2013 | NeWay

Comments are closed.