Umbraco.Commerce.Issues
Umbraco.Commerce.Issues copied to clipboard
Exception thrown when saving Shipping Method without a SKU
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:
- Go to 'Settings > Vendr > Stores > Store > Shipping Methods'
- Create a new Shipping Method. Leave SKU blank. Click save
- See error
Expected behavior
If sku column does not allow nulls then it should be flagged as mandatory and validated on Save.
Screenshots

Vendr version: Vendr v2.3.4 Umbraco version 10.0.1