Community Forums
Results 1 to 4 of 4

Thread: Office 365 Online Service Connection error

  1. #1
    Join Date
    Dec 2013

    Office 365 Online Service Connection error

    Has anyone successfully set up a connection to their Office 365 Online Service? We have attempted without success. We get the following error: System.Exception: Authentication Error: Bad username or password. But the User Name and Password works fine in Office 365. We followed the instructions to set it up, and even reluctantly gave the ID the global admin role. But we get this error during the first part of the import. See attached log file.
    Attached Files Attached Files

  2. #2
    Join Date
    May 2010
    Melbourne, Australia
    The log is suggesting that some error ("(500) Internal Server Error") is occurring on the Office 365 server when logging in. I wouldn't assume that this is really a bad username or password.

    You could try running the following commands in PowerShell to troubleshoot further--if this doesn't work, maybe contact Microsoft for help.

    $c = Get-Credential
    Connect-MsolService -Credential $c
    $users = Get-MsolUser -All
    NB. If you do this in a PowerShell window on the FlexNet beacon then the prerequisite Office 365 PowerShell modules for running this should be installed.

  3. #3
    Join Date
    Nov 2014
    We've had a lot of trouble with the O365 connector. Once the rights and the firewalls are sorted out, the connection itself is flakey.
    For one customer maybe two times every week it fails.
    This means that the reconcile process (using the default scheduled task) also fails.
    The solution there is to separate each data source into a separate scheduled task, so for example the O365 scheduled task is as follows:
    "D:\Program Files (x86)\Flexera Software\FlexNet Manager Platform\DotNet\bin\BatchProcessTask.exe" run InventoryImportReaders ---s """Office 365"""

    The final scheduled task has the chainwriters parameter, which kicks off the reconcile.
    "D:\Program Files (x86)\Flexera Software\FlexNet Manager Platform\DotNet\bin\BatchProcessTask.exe"run InventoryImportReaders -p "ChainWritersMessage=true" ---s """FlexNet Manager Suite"""

    This means that each data source could fail independently, but the reconcile would still run.


  4. #4
    Join Date
    Nov 2017


    Hi, I have done a few, need to make sure that MFA is not enabled on our account that is connecting with O365

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts