Hello humans
I have a database table with 14 columns, one of which is auto increment ID key.
I have a dispatch from and a receipt form, and the plan is to create an entry in the table on item dispatch (covering half the fields), then update the table with the other half of the details when the receipt form is completed.
There's a signature pad component on each form.
I'm just trying the dispatch form at the moment, using runPrepUpdate with an INSERT query, and I keep getting the error
caused by Exception: Error executing system.db.runPrepUpdate(INSERT into my_table (CollectionDT=?, dispatchUsername=?,dispatchSampleCount=?, dispatchNotes=?, dispatchSignature=?, Reference=?) VALUES (?,?,?,?,?,?), [dateTime, user, int, notes here, [_at_event_signature_base64, my_reference], my_database_provider, , true, false)
caused by SQLServerException: The value is not set for the parameter number 7.
I've trawled the forums but can't find many references to this error, and none that I can deduce a solution from.
I've tried omitting the signature pad data in case that's the issue, but get the same error (only for "parameter number 6" of what is at that point 5 parameters...)
It seems to be getting the data fine. There don't seem to be any data type or conversion issues.
I am at a loss.
Help please.
Thanks