Featherstone Bakers13 Automator Purchase Order Automation
  1. Upload
  2. Extract
  3. Review
  4. Write

Automator · Job 8e3e40418cff

Screenshot 2026-08-21 at 11.24.48 AM.png

Advantage write failed: price for A11655S must be between 0 and 25.00

Failed

Invoice header

Account, customer, Bakers item #, quantity, unit, and price are required to write into Bakers. Everything else stays hidden until you ask for it.

Line items

Only the Bakers item # is shown or written — the purchaser's own PO item numbers live in their database, not ours.

Description Bakers item # Qty Unit Price Cost Match
description
manual_review

Writes always post to B13-Test's TEST ACCOUNT 99999, regardless of the matched customer above.

Back to jobs
Debug log

Every extract step, parsed inventory row, write attempt, and the raw vision/Advantage responses stay here.

price for A11655S must be between 0 and 25.00

  1. 2026-08-21T13:01:28 · received Screenshot 2026-08-21 at 11.24.48 AM.png
  2. 2026-08-21T13:01:28 · extract.start Screenshot 2026-08-21 at 11.24.48 AM.png (1642024 bytes)
  3. 2026-08-21T13:01:29 · image 1 webp frame(s), 91948 bytes (from 1642024)
  4. 2026-08-21T13:01:34 · vision.response { "sender_name": "David", "sender_company": "Mandarin Oriental New York", "sender_email": "", "sender_phone": "212-805-8841", "account_number": "A10065027", "ship_to": "Shipping & Receiving, Mandarin Oriental New York, 80 Columbus Circle @ 60th Street, New York NY 10023", "requested_date": "2026-05-23", "custpo": "150823", "note": "", "line_items": [ { "raw_description": "Canape Brioche Sliced", "item": "106399", "quantity": 6.0, "unit": "EACH", "price": "14.20" }, { "raw_description": "Canape Whole Wheat Sliced", "item": "106398", "quantity": 6.0, "unit": "EACH", "price": "6.82" } ] }
  5. 2026-08-21T13:01:34 · parse 2 inventory row(s) from claude-sonnet-5
  6. 2026-08-21T13:01:34 · parse.line 1. qty=6.0 EA item=106399 | Canape Brioche Sliced @ 14.2
  7. 2026-08-21T13:01:34 · parse.line 2. qty=6.0 EA item=106398 | Canape Whole Wheat Sliced @ 6.82
  8. 2026-08-21T13:01:34 · extract 2 line(s), account A10065027
  9. 2026-08-21T13:01:39 · directory A1006502 via directory_name (MANDARIN ORIENTAL HOTEL)
  10. 2026-08-21T13:01:40 · item 1. A11655S AP CANAPE BRIO SL qty=6.0 via description score=0.829
  11. 2026-08-21T13:01:40 · item 2. unmatched Canape Whole Wheat Sliced (item_unresolved); candidates A10719S 0.847, AS01114S 0.846, SS2002 0.792
  12. 2026-08-21T13:01:40 · draft 2 line(s); filled account, customer_name, ship_name, address0, city, state, zip, phone
  13. 2026-08-21T13:01:40 · directory A1006502 via directory_name (MANDARIN ORIENTAL HOTEL)
  14. 2026-08-21T13:01:53 · draft.save 2 line(s)
  15. 2026-08-21T13:01:53 · approve 1 line(s), account 99999
  16. 2026-08-21T13:01:54 · write test order total must be between 0 and 50.00
  17. 2026-08-21T13:02:06 · draft.save 2 line(s)
  18. 2026-08-21T13:02:06 · approve 1 line(s), account 99999
  19. 2026-08-21T13:02:07 · write quantity for A11655S must be between 0 and 24
  20. 2026-08-21T13:02:17 · draft.save 2 line(s)
  21. 2026-08-21T13:02:17 · approve 1 line(s), account 99999
  22. 2026-08-21T13:02:18 · write test order total must be between 0 and 50.00
  23. 2026-08-21T13:03:10 · draft.save 2 line(s)
  24. 2026-08-21T13:03:10 · approve 2 line(s), account 99999
  25. 2026-08-21T13:03:10 · write price for A11655S must be between 0 and 25.00
  26. 2026-08-21T13:10:49 · approve 1 line(s), account 99999
  27. 2026-08-21T13:10:49 · write.attempt Sending to Advantage (TEST ACCOUNT 99999): 1 line(s), total $425.00: A11655S qty=5 @ $85.00 = $425.00
  28. 2026-08-21T13:10:49 · write Advantage write failed: price for A11655S must be between 0 and 25.00 | attempted: 1 line(s), total $425.00: A11655S qty=5 @ $85.00 = $425.00
Traceback (most recent call last):
  File "/home/dragon/ar-write-sandbox/webapp/intake.py", line 1362, in write_job
    result = create_test_order(
        items,
    ...<3 lines>...
        exec_fn=exec_fn,
    )
  File "/home/dragon/ar-write-sandbox/webapp/orders.py", line 317, in create_test_order
    clean = _normalize_lines(lines)
  File "/home/dragon/ar-write-sandbox/webapp/orders.py", line 145, in _normalize_lines
    raise ValueError(f"price for {item} must be between 0 and {MAX_LINE:.2f}")
ValueError: price for A11655S must be between 0 and 25.00

Last write attempt

1 line(s), total $425.00: A11655S qty=5 @ $85.00 = $425.00