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

An error occured whilst fetching the exchange rate for order

Open MichaelNielsenDK opened this issue 9 months ago • 15 comments

I get these errors in the log

An error occured whilst fetching the exchange rate for order "3b7bcff7-5582-4fdf-ab62-018f3359192d"

System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.Extensions.Caching.Memory.CacheExtensions.TryGetValue[TItem](IMemoryCache cache, Object key, TItem& value)
   at Umbraco.Commerce.Infrastructure.Services.CurrencyExchangeRateServiceBase.GetExchangeRate(String fromCurrencyIsoCode, String toCurrencyIsoCode, DateTime date)
   at Umbraco.Commerce.Core.Events.Domain.Handlers.Order.SetOrderBaseCurrencyExchangeRate.Handle(OrderFinalized evt)

When completing orders with a currency that is different that the Base Currency.

Umbraco 13.1.1 Umbraco Commerce 13.1.3

MichaelNielsenDK avatar May 01 '24 08:05 MichaelNielsenDK