SQL Error Message

Terry1
New Member

We have a few users that are getting an errors (message shown below). I have tried to reproduce the error on my phone but the app works perfectly.

Basically, the app is used by drivers that deliver newspapers to racks. They scan a barcode on the rack to capture location and the newspaper edition being delivered. They then input the amount of paper they are delivering. Their GPS coordinates is captured, and they take a photo of the rack. Pretty simple. The data is captured to a Microsoft Azure SQL server. The data that stores the rack information when they scan the barcode is an Excel table.

The error Iโ€™m getting states the โ€œEditionโ€ column canโ€™t be null. Iโ€™ve double-check this and every row in the Edition column has data. So Iโ€™m confused. Here is the error message:

โ€œUnable to add/edit/delete row in table โ€˜dbo.delivery_dropsโ€™. โ†’ One or more SQL errors has been encountered: One or more SQL Server errors has been encountered:\nA column in your SQL Server table cannot be null. Please make sure that you provide a value for this column.\nOriginal error message from the database: Cannot insert the value NULL into column โ€˜EDITIONโ€™, table โ€˜ezdelivery.dbo.delivery_dropsโ€™; column does not allow nulls. INSERT fails.\r\nThe statement has been terminated.โ€

0 4 739
4 REPLIES 4

A debugging step I do for that error is to first change the column setting in my SQL db to allow nulls for that column - That allows me to force the sync through and examine the data that got passed in.

Do you have an initial value set for the Edition column? Iโ€™d check that as well.

There are approximately 20 different newspaper editions, so I havenโ€™t set an initial value on the Edition column. Once the driver scans the barcode it pulls in the data from the reference table that stores all the rack info. The drivers made deliveries last night and this error didnโ€™t come up, so it seems to be an intermittent issue. Per your suggestion, I will set the SQL data to allow nulls and see if that makes a difference.

I appreciate your input. Thank you.

@Terry that seems like a really cool use case. If you have any more issues with it, give me a mention and Iโ€™d be happy to offer any insights I have.

Helo stefanโ€ฆ

Iโ€™am using dbMysql, column setting in my sql is null (defaul),when regenerate structure all expression formula in appsheet (initial value ) change to NULL
can you help me

Top Labels in this Space