Skip to main content

Error: 'Cannot insert the value NULL into column source_form_date'

In this article, we review a Mosaic log error caused by a NULL value in 'source_form_date' and explain what it means.

Y
Written by Yusef Abulaynain
Updated over 4 months ago

Error:

'org.springframework.dao.DataIntegrityViolationException:
Error querying database. Cause: java.sql.SQLException: Cannot insert the value NULL into column 'source_form_date', table '@v_prepop_from_workflow_tab'; column does not allow nulls'

This is a bug and is fixed in Mosaic 22.1.0.2 and from Mosaic 22.2.0.0.

When pre-population through workflow is used, an error can be thrown when trying to start a step that is looking to insert NULL into source_form_date.

This can happen in sent early next actions, when the parent step is not finished, and the finished date is NULL but is used in the pre-population stored procedure.

Customers experiencing this error in earlier versions, please raise a raise a new case referencing this article and we will provide an updated version of the mosaic_forms package containing the fix.

Steps to reproduce

These steps produce this error:

  1. Set up template X with a field to pre-populate through Workflow from template Y.

  2. Set up Step A (with template Y) and Step B (with template X) where Step B is send early next action.

  3. Start Step A, complete fields, send early next action (Step B) - Save step A (do not finish).

  4. Start Step B, and the error above is written to the logs.

Did this answer your question?