Umbraco.Commerce.Issues icon indicating copy to clipboard operation
Umbraco.Commerce.Issues copied to clipboard

Exception thrown when saving Shipping Method without a SKU

Open Wiggee11 opened this issue 3 years ago • 0 comments

Describe the bug An error is thrown when trying to save a Shipping Method without an SKU. Don't know what this is/would be so left blank. No mandatory indicator or validation.

Microsoft.Data.SqlClient.SqlException (0x80131904): Cannot insert the value NULL into column 'sku', table 'MartinAndCo_Vendr.dbo.vendrShippingMethod'; column does not allow nulls. INSERT fails.
The statement has been terminated.

Steps To Reproduce Steps to reproduce the behavior:

  1. Go to 'Settings > Vendr > Stores > Store > Shipping Methods'
  2. Create a new Shipping Method. Leave SKU blank. Click save
  3. See error

Expected behavior If sku column does not allow nulls then it should be flagged as mandatory and validated on Save.

Screenshots ship meth 1 ship meth 2

Vendr version: Vendr v2.3.4 Umbraco version 10.0.1

Wiggee11 avatar Aug 26 '22 14:08 Wiggee11