V10, error 500, optimisticConcurrency

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Russ
    Senior Member
    • Feb 2022
    • 523

    #1

    V10, error 500, optimisticConcurrency


    Hey guys, I might be wrong, but there is an issue.

    It was a hard bounce on order creation, Claude Code returned this as a root cause:

    Title: EspoCRM upgrade broke Advanced Pack + tightened Formula validation → all record creates return HTTP 500

    Environment: EspoCRM upgraded overnight, Advanced Pack installed, PHP 8, integrations posting via API.

    Symptoms

    All API POSTs (Opportunity, DeliveryOrder, workflow-triggered updates on Account/User/CCity) started returning HTTP 500 with a null body. Client-side you just see:
    EspoCRM API request failed: | Endpoint: Opportunity | Method: POST | Response: null
    Nothing useful in the API response — you have to check data/logs/espo-YYYY-MM-DD.log on the server.

    Root cause 1 — Advanced Pack UpdateEntity

    *******

    Return type is declared bool, but metadata->get() returns null when the setting isn't defined on the entity → TypeError under PHP 8 → any workflow that touches an entity
    without optimisticConcurrencyControl blows up.

    Log signature:
    ERROR: (0) Process ...: Espo\Modules\Advanced\Core\Workflow\Actions\Update Entity::hasVersionNumber(): Return value must be of type bool, null returned
    BPM: triggerError

    *****
    Clear cache after (php command.php clear-cache).
    Last edited by yuri; Today, 05:18 PM.
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9929

    #2
    Hi,

    Fixed in the new Advanced Pack release.

    Comment

    • Russ
      Senior Member
      • Feb 2022
      • 523

      #3
      Originally posted by yuri
      Hi,

      Fixed in the new Advanced Pack release.
      Thanks, yuri

      Comment

      Working...