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.
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
- Go to the connectors page of your Port app.
- Select the connector you want to troubleshoot.
- Open the Sync status tab.
- In the Sync by kind section, find a
kindwhose Fetch data, Map data, or Ingest to Port stage shows a Failed count greater than0. - 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 maporView <count> failed entities for ingest.
- Fetch data:
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.
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 exampleFailed Entities (12)orFetch 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 stage | Each row is | Row name |
|---|---|---|
| Fetch data | A fetch error from the connector's event log | The kind that failed to fetch. |
| Map data | An object that failed to map | The 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 Port | An entity that Port rejected | The identifier of the entity. |
A row that has no identifier is named Batch failure.
The details pane shows these sections, when they have content:
| Section | Shown for | Content |
|---|---|---|
| Logs | All stages | The error and logs of the failure. |
| Raw data | Map data | The object as fetched from the source. |
| Entity JSON | Ingest to Port | The entity sent to Port. |
| Entity Mapping | Map data | The 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
| Message | Meaning |
|---|---|
No failed entities | The list has no failures for this stage. |
No fetch failures in the event log | The event log has no fetch errors for this sync. |
Fetch failed; upgrade the integration to see the error | The 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 example20 mapping issues (350 entities failed),5 ingest issues (240 entities failed), or3 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.