System.InvalidOperationException: The stock decision 0 is invalid

Within this guide you are going to learn how you can handle the "The stock decision 0 is invalid" error.

Context

  • A user ordered a software article
  • The Provisioning - RootITUp Booking Processing workflow crashed with the exception "System.InvalidOperationException: The stock decision 0 is invalid"image.png

Fix

The stock decision is made using the stock decision ticket. It prompts the assignee of the ticket during the closing for a stock decision. There are (currently) two valid options :

  1. faulty (=2)
    triggers a purchase during provisioning
  2. successful (=3)
    software is reserved and no purchase is to be made

To resolve the issue the following steps are to be performed.

  1. Ensure the correct stock decision to be saved by closing the stock decision ticket again.image.png
  2. After the workflow ran successfully search the journal for the following entry.image.png
  3. Reanimate the crashed Provisioning - RootITUp Booking Processing workflow.