> For the complete documentation index, see llms.txt.
Skip to main content

Check out Port for yourself ➜ 

Failed entities

When a connector sync fails to fetch, map, or ingest data, the failed entities view lists the failures of that sync stage in one place. You can go through them one by one, see the logs and data behind each failure, and ask Port AI to explain what went wrong and how to fix it, without digging through the full sync log.

User journey: a sync stage reports failed entities, you open the failed entities view from the Sync status tab, select a failure to see its logs and data, then click Explain Logs or Fix with AI

Prerequisites​

  • An admin role in your Port organization is required. Other users don't see the failed entities view.
  • The connector must be an Ocean connector, since only Ocean connectors show the Sync status tab. See monitoring and sync status.

Open the failed entities view​

  1. Go to the connectors page of your Port app.
  2. Select the connector you want to troubleshoot.
  3. Open the Sync status tab.
  4. In the Sync by kind section, find a kind whose Fetch data, Map data, or Ingest to Port stage shows a Failed count greater than 0.
  5. Click the icon button next to the Failed count. Hover over it to see what it opens:
    • Fetch data: View fetch failures in the event log (<count>).
    • Map data and Ingest to Port: View <count> failed entities for map or View <count> failed entities for ingest.

The failed entities view opens for that kind and sync stage. Its title is Fetch failures for the Fetch data stage and Failed Entities for the other stages, with the stage name below it.

Button disabled

For Map data and Ingest to Port, the button is disabled while Port checks for stored failure details. If Port has no details stored for this sync, the button stays disabled and its tooltip shows Failed entities would be displayed on next sync.

What you see​

The view has two panes:

  • The list (left): the failures of the stage, with a Search box that filters by identifier, kind, or failure reason. The label above the list shows the number of failures, for example Failed Entities (12) or Fetch failures (1).
  • The details (right): the details of the selected failure. When the view opens, Port selects the first failure.

Each row in the list is named after what failed:

Sync stageEach row isRow name
Fetch dataA fetch error from the connector's event logThe kind that failed to fetch.
Map dataAn object that failed to mapThe mapped identifier of the entity. If the identifier failed to resolve, the raw object's id, key, name, or full_name field, or unidentified-item-<number>.
Ingest to PortAn entity that Port rejectedThe identifier of the entity.

A row that has no identifier is named Batch failure.

The details pane shows these sections, when they have content:

SectionShown forContent
LogsAll stagesThe error and logs of the failure.
Raw dataMap dataThe object as fetched from the source.
Entity JSONIngest to PortThe entity sent to Port.
Entity MappingMap dataThe resource's mapping, with the failed fields highlighted.

Click Done to close the view.

Mapping error highlighting​

For Map data failures, the Entity Mapping section marks every field that failed to resolve on its exact line. Hover over a marked line to see which property failed and which jq expression caused it, for example:

"identifier" could not be resolved from jq expression .id

To fix it, update the connector's mapping configuration and run Apply mapping to rerun the mapping without fetching the data again.

Empty and error states​

MessageMeaning
No failed entitiesThe list has no failures for this stage.
No fetch failures in the event logThe event log has no fetch errors for this sync.
Fetch failed; upgrade the integration to see the errorThe fetch failed, but the connector didn't report the error to the event log. Upgrade the connector to its latest version.
Failure details aren't available for this sync.The stage reported failures, but Port has no details stored for them.
Failed to load failed entities. or Failed to load fetch failures from the event log.Port couldn't load the list. Click Retry.

Troubleshoot with Port AI​

If you have access to Port AI, the details pane shows an Ask Port callout below the Logs section, with two buttons:

  • Explain Logs: Port AI reads the failure's logs, data, and mapping, and explains in the callout what went wrong and how to fix it. For Map data and Ingest to Port failures, Port saves the explanation on the failed entity, so anyone who opens it later sees it without a new AI call. Fetch data explanations aren't saved. If Port AI can't generate an explanation, the callout shows Could not generate an explanation. Please try again.
  • Fix with AI: opens the Port AI chat with the failed entity's full context and sends it, so you can go from the explanation straight to a fix.

Limitations​

  • The list shows up to 100 failures per sync stage and kind. When more objects failed, the label shows both numbers, for example 20 mapping issues (350 entities failed), 5 ingest issues (240 entities failed), or 3 fetch issues (4 failed).
  • For Map data failures, Port stores a sample of the failed objects rather than every one, since a broken mapping usually repeats the same error.
  • Port keeps Map data and Ingest to Port failure details for 4 days.