#556 — [Bug]: Facade all merchants documents update fails on wrong PE state
Repo: Twill-AI/facade State: closed | Status: done Assignee: meliascosta, sparsh-twillpayments
Created: 2025-09-04 · Updated: 2025-09-10
Description
Steps to reproduce
Caused by prod alert https://twill-network.slack.com/archives/C082X0FL6G1/p1756939219442079
- Create in PE document without a type (type=null) - unclear how, probably direct API request.
- Call “Force update merchants” API.
Expected behavior
Wrong document is discarded from “upsert” batch, there is an error log about this particular document.
Actual behavior
The whole batch for documents failed to be updated, see https://twill-network.slack.com/archives/C082X0FL6G1/p1756939219442079 and relevant issues in staging (like https://twill-network.slack.com/archives/C07TPN6FCBX/p1756964725952889)
Notes
Add implementation notes, blockers, and context here
Related
Add wikilinks to related people, meetings, or other tickets