It seems there are two separate errors in play from the logs thay you posted. First one is related to CreateShipment, which is called before checkout and the second one occurs during the checkout pipeline.
1) CreateShipment What this does is try and find an address with the name specified in the call. It seems to not find the address in questions, so I would first make sure that an address with a name of whatever is passed to CreateShipment is present, e.g. "Shipping" or something similar.
2) CreateCustomerTask This one looks for a customer with an e-mail found on the billing address of the basket in question. It looks like there's no billing address set in this case as the nullreference exception related to the query looking up the customer like so Customer.SingleOrDefault(x => x.EmailAddress == billingAddress.EmailAddress).
If you can verify that this is in order it would be helpful to try a repro as the error logs don't give me much to go on.
Error Creating shipping address
Hello and thanks in advice
one of our customer submitting an order is getting an error, the error is relative to the cration of shipping address
after some investigations, we can't identify the root cause of the error, member profile looks exactly as others
i paste the error detail from umbracolog table.
Fabio
Value cannot be null.
Parameter name: shippingAddress UCommerce.Entities.Shipment CreateShipment(UCommerce.Entities.ShippingMethod, UCommerce.Entities.OrderAddress, Boolean)
at UCommerce.Entities.PurchaseOrder.CreateShipment(ShippingMethod shippingMethod, OrderAddress shippingAddress, Boolean overwriteExisting)
at UCommerce.Xslt.TransactionLibrary.CreateShipment(Int32 shippingMethodId, String addressName, Boolean overwriteExisting)
at UCommerce.Xslt.Library.<>c__DisplayClass5e.<CreateShipment>b__5d()
at UCommerce.Xslt.Library.HandledCall[T](Func`1 method)
Exception occoured while processing pipeline 'UCommerce.Pipelines.Checkout.CheckoutPipeline'. See inner exception for details.
Object reference not set to an instance of an object. System.Object lambda_method(System.Runtime.CompilerServices.ExecutionScope)
at lambda_method(ExecutionScope )
at SubSonic.Linq.Structure.PartialEvaluator.SubtreeEvaluator.Evaluate(Expression e)
at SubSonic.Linq.Structure.PartialEvaluator.SubtreeEvaluator.Visit(Expression exp)
at SubSonic.Linq.Structure.ExpressionVisitor.VisitBinary(BinaryExpression b)
at SubSonic.Linq.Structure.ExpressionVisitor.Visit(Expression exp)
at SubSonic.Linq.Structure.PartialEvaluator.SubtreeEvaluator.Visit(Expression exp)
at SubSonic.Linq.Structure.ExpressionVisitor.VisitLambda(LambdaExpression lambda)
at SubSonic.Linq.Structure.ExpressionVisitor.Visit(Expression exp)
at SubSonic.Linq.Structure.PartialEvaluator.SubtreeEvaluator.Visit(Expression exp)
at SubSonic.Linq.Structure.ExpressionVisitor.VisitUnary(UnaryExpression u)
at SubSonic.Linq.Structure.ExpressionVisitor.Visit(Expression exp)
at SubSonic.Linq.Structure.PartialEvaluator.SubtreeEvaluator.Visit(Expression exp)
at SubSonic.Linq.Structure.ExpressionVisitor.VisitExpressionList(ReadOnlyCollection`1 original)
at SubSonic.Linq.Structure.ExpressionVisitor.VisitMethodCall(MethodCallExpression m)
at SubSonic.Linq.Structure.ExpressionVisitor.Visit(Expression exp)
at SubSonic.Linq.Structure.PartialEvaluator.SubtreeEvaluator.Visit(Expression exp)
at SubSonic.Linq.Structure.ExpressionVisitor.VisitExpressionList(ReadOnlyCollection`1 original)
at SubSonic.Linq.Structure.ExpressionVisitor.VisitMethodCall(MethodCallExpression m)
at SubSonic.Linq.Structure.ExpressionVisitor.Visit(Expression exp)
at SubSonic.Linq.Structure.PartialEvaluator.SubtreeEvaluator.Visit(Expression exp)
at SubSonic.Linq.Structure.DbQueryProvider.Translate(Expression expression)
at SubSonic.Linq.Structure.DbQueryProvider.GetExecutionPlan(Expression expression)
at SubSonic.Linq.Structure.DbQueryProvider.Execute(Expression expression)
at SubSonic.Linq.Structure.QueryProvider.System.Linq.IQueryProvider.Execute[S](Expression expression)
at System.Linq.Queryable.Count[TSource](IQueryable`1 source)
at UCommerce.Entities.Customer.SingleOrDefault(Expression`1 expression)
at UCommerce.Pipelines.Checkout.CreateCustomerTask.Execute(PurchaseOrder purchaseOrder)
at UCommerce.Pipelines.Pipeline`1.Execute(T subject)
Exception occoured while processing pipeline 'UCommerce.Pipelines.Checkout.CheckoutPipeline'. See inner exception for details.
UCommerce.Pipelines.PipelineExecutionResult Execute(T)
at UCommerce.Pipelines.Pipeline`1.Execute(T subject)
at UCommerce.Transactions.CheckoutService.Checkout(Basket basket)
at UCommerce.Xslt.TransactionLibrary.Checkout()
at UCommerce.Xslt.Library.<Checkout>b__3e()
at UCommerce.Xslt.Library.HandledCall[T](Func`1 method)
Object reference not set to an instance of an object.
System.Object lambda_method(System.Runtime.CompilerServices.ExecutionScope)
at lambda_method(ExecutionScope )
at SubSonic.Linq.Structure.PartialEvaluator.SubtreeEvaluator.Evaluate(Expression e)
at SubSonic.Linq.Structure.PartialEvaluator.SubtreeEvaluator.Visit(Expression exp)
at SubSonic.Linq.Structure.ExpressionVisitor.VisitBinary(BinaryExpression b)
at SubSonic.Linq.Structure.ExpressionVisitor.Visit(Expression exp)
at SubSonic.Linq.Structure.PartialEvaluator.SubtreeEvaluator.Visit(Expression exp)
at SubSonic.Linq.Structure.ExpressionVisitor.VisitLambda(LambdaExpression lambda)
at SubSonic.Linq.Structure.ExpressionVisitor.Visit(Expression exp)
at SubSonic.Linq.Structure.PartialEvaluator.SubtreeEvaluator.Visit(Expression exp)
at SubSonic.Linq.Structure.ExpressionVisitor.VisitUnary(UnaryExpression u)
at SubSonic.Linq.Structure.ExpressionVisitor.Visit(Expression exp)
at SubSonic.Linq.Structure.PartialEvaluator.SubtreeEvaluator.Visit(Expression exp)
at SubSonic.Linq.Structure.ExpressionVisitor.VisitExpressionList(ReadOnlyCollection`1 original)
at SubSonic.Linq.Structure.ExpressionVisitor.VisitMethodCall(MethodCallExpression m)
at SubSonic.Linq.Structure.ExpressionVisitor.Visit(Expression exp)
at SubSonic.Linq.Structure.PartialEvaluator.SubtreeEvaluator.Visit(Expression exp)
at SubSonic.Linq.Structure.ExpressionVisitor.VisitExpressionList(ReadOnlyCollection`1 original)
at SubSonic.Linq.Structure.ExpressionVisitor.VisitMethodCall(MethodCallExpression m)
at SubSonic.Linq.Structure.ExpressionVisitor.Visit(Expression exp)
at SubSonic.Linq.Structure.PartialEvaluator.SubtreeEvaluator.Visit(Expression exp)
at SubSonic.Linq.Structure.DbQueryProvider.Translate(Expression expression)
at SubSonic.Linq.Structure.DbQueryProvider.GetExecutionPlan(Expression expression)
at SubSonic.Linq.Structure.DbQueryProvider.Execute(Expression expression)
at SubSonic.Linq.Structure.QueryProvider.System.Linq.IQueryProvider.Execute[S](Expression expression)
at System.Linq.Queryable.Count[TSource](IQueryable`1 source)
at UCommerce.Entities.Customer.SingleOrDefault(Expression`1 expression)
at UCommerce.Pipelines.Checkout.CreateCustomerTask.Execute(PurchaseOrder purchaseOrder)
at UCommerce.Pipelines.Pipeline`1.Execute(T subject)
Hi Fabio,
I forget which version you are running. Can you help me out? Thanks.
sorry soren i forgot to post the versions:
umbraco 4.0.4.2
ucommerce 1.1.1.0
fabio
hi
sorry to bother
any idea about the source of the error?
fabio
Hi Fabio,
I'm looking into it. Sorry for the wait.
Hi Fabio,
It seems there are two separate errors in play from the logs thay you posted. First one is related to CreateShipment, which is called before checkout and the second one occurs during the checkout pipeline.
1) CreateShipment
What this does is try and find an address with the name specified in the call. It seems to not find the address in questions, so I would first make sure that an address with a name of whatever is passed to CreateShipment is present, e.g. "Shipping" or something similar.
2) CreateCustomerTask
This one looks for a customer with an e-mail found on the billing address of the basket in question. It looks like there's no billing address set in this case as the nullreference exception related to the query looking up the customer like so Customer.SingleOrDefault(x => x.EmailAddress == billingAddress.EmailAddress).
If you can verify that this is in order it would be helpful to try a repro as the error logs don't give me much to go on.
thanks soren
I'll check.
fabio
is working on a reply...