System.ArgumentException: The purchase order with order number '' could not be found. at UCommerce.Transactions.TransactionLibraryInternal.GetPurchaseOrder(String orderNumber, Boolean validateForCurrentMember) at Castle.Proxies.TransactionLibraryInternalProxy.GetPurchaseOrder_callback(String orderNumber, Boolean validateForCurrentMember) at Castle.Proxies.Invocations.TransactionLibraryInternal_GetPurchaseOrder.InvokeMethodOnTarget() at Castle.DynamicProxy.AbstractInvocation.Proceed() at UCommerce.Infrastructure.Interceptor.ExceptionLoggingInterceptor.Intercept(IInvocation invocation) at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.Proxies.TransactionLibraryInternalProxy.GetPurchaseOrder(String orderNumber, Boolean validateForCurrentMember) at UCommerce.Xslt.LibraryImpl.GetPurchaseOrder(String orderNumber) at UCommerce.Xslt.Library.GetPurchaseOrder(String orderNumber)
Is all the code you're trying to add displayed in the above example?
And have you tried editing the file outside of Umbraco? Or simply tried to ignore the error check by clicking "skip errors"? There might be an extension in there that expects a value but it's probably a value it will not get untill runtime, which happens on the website not in the built in XSLT editor.
It's probably throwing up the error because Umbraco will try and execute the macro without the proper context. As Jan suggests you can tick the "Skip errors" to get it to save adn try it out with a real order as context.
Cannot get orderconfirmation email to work
I seem to be having a problem with
When I try to add this to my xslt file I get this
System.ArgumentException: The purchase order with order number '' could not be found.
at UCommerce.Transactions.TransactionLibraryInternal.GetPurchaseOrder(String orderNumber, Boolean validateForCurrentMember)
at Castle.Proxies.TransactionLibraryInternalProxy.GetPurchaseOrder_callback(String orderNumber, Boolean validateForCurrentMember)
at Castle.Proxies.Invocations.TransactionLibraryInternal_GetPurchaseOrder.InvokeMethodOnTarget()
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at UCommerce.Infrastructure.Interceptor.ExceptionLoggingInterceptor.Intercept(IInvocation invocation)
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at Castle.Proxies.TransactionLibraryInternalProxy.GetPurchaseOrder(String orderNumber, Boolean validateForCurrentMember)
at UCommerce.Xslt.LibraryImpl.GetPurchaseOrder(String orderNumber)
at UCommerce.Xslt.Library.GetPurchaseOrder(String orderNumber)
]>
method="xml" omit-xml-declaration="yes"/>
name="orderGuid" select="umbraco.library:RequestQueryString('orderGuid')"/>
name="cart" select="CommerceLibrary:GetPurchaseOrder($orderGuid)"/>
name="currentPage"/>
match="/">
select="$orderGuid"/>
If I leave it out I can get the orderGuid in an email. What am I doing wrong?
Hi Roger
Is all the code you're trying to add displayed in the above example?
And have you tried editing the file outside of Umbraco? Or simply tried to ignore the error check by clicking "skip errors"? There might be an extension in there that expects a value but it's probably a value it will not get untill runtime, which happens on the website not in the built in XSLT editor.
Hope this makes sense.
/Jan
Hi Roger,
It's probably throwing up the error because Umbraco will try and execute the macro without the proper context. As Jan suggests you can tick the "Skip errors" to get it to save adn try it out with a real order as context.
Hope this helps.
is working on a reply...