You might experience this error while developing a custom batch type and have made changes to one of the forms on the batch type. When the Infinity platform loads a custom batch type it creates stored procedures that setup the interface and call the ones in forms. This problem occurs in the case that you add a field from the forms and load the form but don't reload the batch type.
Adminstration -> Applicaiton -> Catalog Browser
Select Type: Batch Type
Select Source: your custom assembly
Locate your custom batch type
Click Load Item
Steps to Duplicate
1. Create a Custom Batch Type
do NOT include the @CURRENTAPPUSERID field on the commit form stored procedure.
CURRENTAPPUSERID is not defined on the form definition just the stored procedure
2. Load the custom batch type 3. Create a batch template from the batch type 4. Create a batch from the batch template. 5. Add test data to the batch. 6. Save and close the batch. 7. Modify the Add Commit form and Add the field CURRENTAPPUSERID. 8. Load just the Add Commit form. 9. Open the test batch. 10. Validate the Batch