SearchOrders is throwing an error #607
Replies: 1 comment 4 replies
-
Can you please provide a full stack trace |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We've upgrade our V8.18.14 site to V13.5.2, and upgraded Vendr 2.4.1 > V13.1.14. In the process, our existing call to SearchOrders is now failing. This was the original code:
var commerceOrders = _orderService.SearchOrders((where) => where .FromStore(store.Id) .And(where.IsFinalized()) .And(where.HasProperty(Constants.Commerce.Properties.Customer.CsiAccountId, csiAccount.CsiAccountId))) .Items.ToList();
this is now failing with an error: "Value cannot be null. (Parameter 'type')"
I've then tried a really basic search and this is also failing:
var commerceOrders = _orderService.SearchOrders( (where) => where .FromStore(store.Id)).Items.ToList();
is there something wrong with our database? where can we start looking?
Forgot to add the stacktrace:
at Umbraco.Commerce.Infrastructure.Resiliency.PollyExecutionStrategyBase.Execute[TResult](Func
1 operation, Func
1 verifySucceeded)at Umbraco.Commerce.Core.UmbracoCommerceUnitOfWorkProvider.Execute[T](IUnitOfWorkOptions options, Func
2 action) at Umbraco.Commerce.Core.UmbracoCommerceUnitOfWorkProvider.Execute[T](Boolean autoComplete, Func
2 action)at Umbraco.Commerce.Core.Services.OrderService.SearchOrders(IQuerySpecification
1 query, ISortSpecification
1 sort, Int64 currentPage, Int64 itemsPerPage)at Umbraco.Commerce.Core.Services.OrderService.SearchOrders(IQuerySpecification
1 query, Int64 currentPage, Int64 itemsPerPage) at Umbraco.Commerce.Core.Services.OrderService.SearchOrders(Func
2 query, Int64 currentPage, Int64 itemsPerPage)at Web.Global.Core.Controllers.Api.OrdersController.GetPagedOrders(String culture, String filterType, Int32 pageNumber, Int32 pageSize, String pageSort, String searchTerm)
Beta Was this translation helpful? Give feedback.
All reactions