Skip to main content

Outlook connector limitations

Beta

This feature is in Beta.

This page lists limitations and considerations for ingesting data from Microsoft Outlook using Databricks Lakeflow Connect.

General SaaS connector limitations​

The limitations in this section apply to all SaaS connectors in Lakeflow Connect.

  • When you run a scheduled pipeline, alerts don't trigger immediately. Instead, they trigger when the next update runs.
  • When a source table is deleted, the destination table is not automatically deleted. You must delete the destination table manually. This behavior is not consistent with Spark Declarative Pipelines on Lakeflow behavior.
  • During source maintenance periods, Databricks might not be able to access your data.
  • If a source table name conflicts with an existing destination table name, the pipeline update fails.
  • Multi-destination pipeline support is API-only.
  • You can optionally rename a table that you ingest. If you rename a table in your pipeline, it becomes an API-only pipeline, and you can no longer edit the pipeline in the UI.
  • If you select a column after a pipeline has already started, the connector does not automatically backfill data for the new column. To ingest historical data, manually run a full refresh on the table.
  • Databricks can't ingest two or more tables with the same name in the same pipeline, even if they come from different source schemas.
  • The source system assumes that the cursor columns are monotonically increasing.
  • The connector ingests raw data without transformations. Use downstream Spark Declarative Pipelines on Lakeflow pipelines for transformations.

Connector-specific limitations​

The limitations in this section are specific to the Outlook connector.

  • The connector supports a single table, email_messages, under the default schema. For the destination schema, see Destination schema.
  • The connector matches each include_folders entry by folder path at the start of every pipeline update. A path is a list of folder display names from the mailbox root, matched case-insensitively. If an entry doesn't match a folder in a mailbox, the connector skips that entry for that mailbox and the update still succeeds. This happens when the folder is misspelled, renamed, moved to a different parent folder, or deleted. It also happens when any segment of a nested path doesn't match. No new email is ingested from a skipped folder. If no entry matches in any mailbox, the update succeeds without ingesting any email.
  • After you rename a folder in Outlook, update include_folders to the folder's new path. The connector resumes the folder from its saved sync progress when the entry matches again. If an update ran while the entry didn't match, that progress can be discarded, and the connector then reads the folder again from start_date. Email that was already ingested isn't duplicated, because rows are merged on the primary key (mailbox, outlook_message_id).
  • After you move a folder to a different parent folder in Outlook, update include_folders to the folder's new path. Microsoft Graph can assign new IDs to the folder and its email, so the connector might read the folder again from start_date, and the destination table can contain more than one row for an email. See Duplicate rows for emails moved between folders.
  • Nested subfolder paths in include_folders use / as the segment separator (for example, Inbox/Projects). If a folder display name itself contains a /, escape it as \/ (and a literal backslash as \\) so it is not interpreted as a path separator. For example, a top-level folder literally named Q1/Q2 is specified as Q1\/Q2.
  • When include_folders isn't set, every folder is ingested, including Deleted Items and Junk Email. To exclude them, list the folders to ingest in include_folders.
  • If a mailbox listed in include_mailboxes can't be read, the connector skips it. For example, a mailbox can't be read when it has no Exchange Online mailbox, or when an Application Access Policy or role-based access control (RBAC) for Applications scope in Exchange Online excludes it from the app registration. Skipped mailboxes behave as follows:
    • If at least one other listed mailbox can be read, the update succeeds.
    • The connector doesn't keep a skipped mailbox's saved sync progress. When the mailbox can be read again, the connector reads it again from start_date. Email that was already ingested isn't duplicated.
    • If none of the listed mailboxes can be read, the update fails. The error is OUTLOOK_NO_MAILBOXES_FOUND if none of them has an Exchange Online mailbox. Otherwise, it's OUTLOOK_MAILBOX_RESOLUTION_FAILED. See OUTLOOK_MAILBOX_RESOLUTION_FAILED error.
  • The connector applies include_subjects after it reads each email from Microsoft Graph, so it doesn't reduce the number of emails the connector reads. The connector sends include_senders to Microsoft Graph as a filter, so it does reduce the number of emails read. To reduce the amount of email that's read, use include_mailboxes, include_folders, include_senders, or start_date.
  • You can't exclude the mailbox, outlook_message_id, or received_at columns with column selection. The update fails with CANNOT_FILTER_OUT_REQUIRED_COLUMN.
  • The email_messages table does not support history tracking (SCD type 2).
  • The generic row filter option is not supported for this connector. To filter email messages, use the outlook_options parameters (include_mailboxes, include_folders, include_senders, include_subjects). See Connector options.

Change tracking​

The connector reads each folder in the order email was received, and it doesn't update or remove a row after it ingests the email. This behavior has the following effects:

  • Changes to an email after it's ingested, such as read state, flags, categories, or edits, aren't captured.
  • An email that's moved into an ingested folder isn't ingested if it was received before the folder's saved sync progress, which is the received time of the newest email already ingested from that folder. For example, if Inbox was last synced today, a two-week-old email that a user moves into Inbox isn't ingested. Restored or imported email with an old received time behaves the same way.
  • The connector doesn't track emails that move between folders. The folder column holds the folder an email was in when it was ingested. If an ingested email is later moved to another ingested folder, its existing row isn't updated or removed. Microsoft Graph assigns the moved email a new outlook_message_id, so the connector ingests it again from its new folder if it was received after that folder's saved sync progress. For example, an email that's moved shortly after it arrives, before newer email in the new folder is ingested, gets a second row. See Duplicate rows for emails moved between folders.
  • Deleted, purged (for example, by Microsoft Purview), or recalled email isn't removed from the destination table. Rows from a mailbox or folder that you remove from scope also remain.
  • The mailbox column is the user principal name (UPN). If a user's UPN changes, their mailbox is ingested again under the new UPN, and rows under the old UPN remain. To match a user's rows across a UPN change, use the mailbox_user_id column.
  • Changing attachment_mode or body_format, or including a column that you previously excluded, applies only to email ingested after the change. Existing rows keep their old values, and a re-included column is NULL for existing rows. To skip attachments, set attachment_mode to NONE instead of excluding the attachments column, because excluding the column doesn't stop the connector from fetching attachments.

To pick up these changes for email that's already been ingested, run a full refresh of the email_messages table.

Changing connector options on an existing pipeline​

The connector tracks its sync progress separately for each mailbox and folder. Changes to include_mailboxes, include_folders, include_senders, include_subjects, or start_date on an existing pipeline apply only to email that the connector reads after the change, with the following effects:

  • A mailbox or folder that you add is ingested from start_date, or from its complete history if start_date isn't set.
  • A mailbox or folder that you remove and add back, or whose include_folders entry stops matching and then matches again, resumes from its saved sync progress if no update ran while it was out of scope. If an update ran, that progress can be discarded, and the connector reads the mailbox or folder again from start_date.
  • For mailboxes and folders that are already being ingested, widening include_senders or include_subjects, or setting start_date to an earlier date, doesn't backfill email that the folder's saved sync progress has already passed. That progress is the received time of the newest email ingested from the folder.
  • Narrowing a filter, removing a mailbox or folder, or setting start_date to a later date doesn't remove rows that are already in the destination table.

To apply an option change to all existing email, run a full refresh of the email_messages table. A full refresh re-reads every mailbox and folder in scope from start_date, which can take a long time for large mailboxes. It also removes rows for email that was deleted from the mailboxes or that no longer matches the pipeline's options. To keep those rows, copy the table before the full refresh.