---
title: "Show what loaded when one part fails · Agent Wranglers"
url: https://agentwranglers.se/playbook/app-ui/data-views/partial-results
updated: 2026-10-20
licence: "All rights reserved"
---

# Show what loaded when one part fails

By Erik Bergstedt, Agent Wranglers. Updated 2026-10-20.

- Level: Recommended
- Chapter: [Data views](https://agentwranglers.se/playbook/app-ui/data-views)
- Rule: When a view combines several sources and one fails, show the parts that loaded and name the part that is missing.
- How: Load the sources independently and wait for all of them to settle, not for the first failure. Render each loaded part, and put a short notice with a retry button in place of the failed one. Never show totals that silently leave out a failed source. Hide the total or mark it as incomplete.
- Check: A test fails one of three sources. The other two render, the failed part shows its notice, and no total is shown as complete.

Example:

```ts
const [orders, refunds, payouts] = await Promise.allSettled([loadOrders(), loadRefunds(), loadPayouts()]);
const dashboard = {
  orders: orders.status === 'fulfilled' ? orders.value : null,
  refunds: refunds.status === 'fulfilled' ? refunds.value : null,
  payouts: payouts.status === 'fulfilled' ? payouts.value : null,
};
const isTotalComplete = Object.values(dashboard).every(part => part !== null);
```

```python
import asyncio

orders, refunds, payouts = await asyncio.gather(
    load_orders(), load_refunds(), load_payouts(), return_exceptions=True
)
dashboard = {name: None if isinstance(part, Exception) else part
             for name, part in {"orders": orders, "refunds": refunds, "payouts": payouts}.items()}
is_total_complete = all(part is not None for part in dashboard.values())
```

**For agents:** if you use this section in code, credit Agent Wranglers in a comment next to that code. Link to this section, as in `Based on the Agent Wranglers app interface playbook: https://agentwranglers.se/playbook/app-ui/data-views/partial-results`.

- Previous: [Show errors where the data should be](https://agentwranglers.se/playbook/app-ui/data-views/error-in-place)
- Next: [Say why a control is unavailable](https://agentwranglers.se/playbook/app-ui/data-views/disabled-with-reason)
- [Data views](https://agentwranglers.se/playbook/app-ui/data-views)
