"Form Submissions Cleanup" Job getting errors

Fixed in

EPiServer.Forms 4.21.0

Created

Nov 06 2018

Updated

Dec 12 2018

State

Closed, Fixed and tested


Description

Steps to reproduce

1. Open an Alloy Site (latest version) in Visual Studio.
2. Run the site.
3. Log into edit mode.
4. Create a form.
5. Add a text field and a submit button to the form.
6. Un-check the "Store form submissions" field and save the form.
7. Run the "Form Submissions Cleanup" job.

Expected:
The Job runs without errors

Actual:
Getting an error:
"ERROR EPiServer.Forms.EditView.Internal.CleanupService: Error when trying to remove partial submissions data of form Test Form
System.NullReferenceException: Object reference not set to an instance of an object...