umbraco / Umbraco.Commerce.Issues

18 stars 2 forks source link

Deleting country throws error #477

Open bjarnef opened 7 months ago

bjarnef commented 7 months ago

Describe the bug I noticed when deleting default "United Kingsom" country from listview bulk action or country page it throws an error.

Expected behavior No error or better error handling. The store has Denmark set as default country.

Screenshots image

image

Umbraco Commerce version: 13.1.1

bjarnef commented 7 months ago

I tried to reset defaults on country.

image

And disabled selecting on payment method.

image

However when I disabled selection on shipping method it throws an error.

https://github.com/umbraco/Umbraco.Commerce.Issues/assets/2919859/acb29ca1-c86a-49b4-a8a5-c18b9e30223c

bjarnef commented 7 months ago

@mattbrailsford are there any references to custom pricing, shipping provider or location which may cause these errors? 🤔

bjarnef commented 7 months ago

Workaround for now was to delete the default "Pickup" shipping method. After that I could delete United Kingdom. I guess there are some references, which fails to be deleted?