Skip to content

Outlook troubleshooting #699

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions docs/extensions/outlook-integration/setting-up.md
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
* [Integration](#integration)
* [Access control](#access-control)
* [Sync scheduling](#sync-scheduling)
* [Troubleshooting](#troubleshooting)
* [Troubleshooting](troubleshooting.md)
Copy link
Contributor

@yurikuzn yurikuzn Apr 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The link should be removed from there. Since it's not the item of the article.


## Integration

@@ -76,10 +76,4 @@ Permissions that need to be enabled:

## Sync scheduling

Sync is run by the scheduled job *Outlook Calendar Sync*. By default, it is executed every 10 minutes. You can change scheduling at Administration > Scheduled Jobs > Outlook Calendar Sync.

## Troubleshooting

Check whether the scheduled job is running Administration > Scheduled Jobs > Outlook Calendar Sync > Log.

Check EspoCRM log at `data/logs` directory. You can also set the [log mode](../../administration/troubleshooting.md#enabling-debug-mode-for-a-logger) to `DEBUG` level to obtain more info from the log.
Sync is run by the scheduled job *Outlook Calendar Sync*. By default, it is executed every 10 minutes. You can change scheduling at Administration > Scheduled Jobs > Outlook Calendar Sync.
57 changes: 57 additions & 0 deletions docs/extensions/outlook-integration/troubleshooting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Outlook troubleshooting

In this article:

* [Check scheduled jobs](#check-scheduled-jobs)
* [Check logs](#check-logs)
* [Server side error 500: Could not get access token for Outlook](#server-side-error-500-could-not-get-access-token-for-outlook)
* [Application is not configured as a multi-tenant application](#error-application-is-not-configured-as-a-multi-tenant-application)
* [Regular user's issues](#regular-users-issues)
* [Max number of operations](#max-number-of-operations)

## Check Scheduled Jobs

Check whether the scheduled job is running in Administration -> Scheduled Jobs -> Outlook Calendar Sync -> Log
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • > instead of ->
  • period . in the end of the sentence.
  • at instead of in.


## Check logs

Check EspoCRM log at `<ESPOCRM_DIRECTORY>/data/logs/*.log`. You can also set the [log mode](../../administration/troubleshooting.md#enabling-debug-mode-for-a-logger) to `DEBUG` level to obtain more info from the log.

## Server side error 500: Could not get access token for Outlook

Possible causes:

* Redirect URI doesn't set or it is invalid.
* Client Secret is not propper or it is corrupted (sometimes your clien secret key may be corrupted or deprecated due to Outlook changes. Even if it is expiry date in the far future, create a new one and change it).

## Error: Application is not configured as a multi-tenant application

In the Azure Active Directory admin center from the app's Overview page, select the Authentication section and change the value selected under Supported account types.

## Regular user's issues

#### A user doesn't have the 'External Accounts' button

Set the next permission in a role:
```
External Accounts -> Access 'enabled'
```
#### No Outlook services are available

Set the next permissions in a role:
```
Outlook Calendar -> Access 'enabled'
Outlook Contacts -> Access 'enabled'
```

## Max number of operations

Outlook max number of operations in a batch request = 20. So if you will set in the config.php file:
```
'outlookCalendarSyncMaxPortionSize' = 50,
'outlookCalendarPushMaxPortionSize' = 50,
```
many records won't be synced. In EspoCRM log this error description looks like:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

many word is not needed here.

```
Espo.ERROR: Outlook Calendar sync: Oauth: Error after requesting POST https://outlook.office.com/api/v2.0/me/$batch; Reason: The maximum number of operations in a batch request is 20.. [][]
```
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -91,6 +91,7 @@
* [Calendar](extensions/outlook-integration/calendar.md)
* [Contacts](extensions/outlook-integration/contacts.md)
* [Email](extensions/outlook-integration/email.md)
* [Troubleshooting](extensions/outlook-integration/troubleshooting.md)
* VoIP integration
* [Asterisk server](extensions/voip-integration/asterisk-integration-setup.md)
* [Binotel service](extensions/voip-integration/binotel-integration-setup.md)