true should probably a "true" (pun intended :-) XSLT boolean, so the processor can convert it - right now the processor will send the <true/> element in (which doesn't exist)...
Sekvensen indeholder mere end ét element Sekvensen indeholder mere end ét element ved NHibernate.Linq.NhQueryProvider.ExecuteQuery(NhLinqExpression nhLinqExpression, IQuery query, NhLinqExpression nhQuery) ved NHibernate.Linq.NhQueryProvider.Execute[TResult](Expression expression) ved System.Linq.Queryable.SingleOrDefault[TSource](IQueryable`1 source, Expression`1 predicate) ved UCommerce.EntitiesV2.ProductCatalog.SingleOrDefault(Expression`1 expression) ved UCommerce.Runtime.OrderContext.CreateBasket() ved UCommerce.Runtime.OrderContext.GetBasket(Boolean create) ved UCommerce.Xslt.ClientContext.GetBasket(Boolean create) ved UCommerce.Xslt.TransactionLibrary.GetBasket(Boolean create) ved UCommerce.Xslt.Library.HandledCall[T](Func`1 method)
My .NET guy says it looks like a application flaud... Any thoughts???
Chriztian, wish it was just an XSLT error :-( the true value added in desperation :-)
A variable or param can get a "Result Tree Fragment" (a set of nodes, not necessarily with a wrapping element) - but value-of can not accept that - it requires a single element. Then the errormessage actually makes sense (it's danish, but means "The sequence contains more than one element").
No basket exist for the current user.
I Really have problems getting rid of following error...
Situation is:
I call my page [url]/shop?catalog=[catalogName]
This page call only one xslt containing following code:
<xsl:template match="/"> <xsl:value-of select="CommerceLibrary:GetBasket(true)"></xsl:value-of> </xsl:template>
As you can see, nothing fancy!
Is it just me, or should this extension method create that basket instance?
Hi Mads,
true should probably a "true" (pun intended :-) XSLT boolean, so the processor can convert it - right now the processor will send the <true/> element in (which doesn't exist)...
So:
/Chriztian
yeah, but then the extension fails :-S
Sad to say, but this sucks :-(
Error msgs:
My .NET guy says it looks like a application flaud... Any thoughts???
Chriztian, wish it was just an XSLT error :-( the true value added in desperation :-)
Hi Mads
What I usually do when creating a basket in uCommerce, is to create a basket variable containing all of the basket XML like this:
After this it's of course just plain XSLT to render whatever content from the basket that you need from the XML.
/Kim A
Aaaah - Kim, that makes sense!
A variable or param can get a "Result Tree Fragment" (a set of nodes, not necessarily with a wrapping element) - but value-of can not accept that - it requires a single element. Then the errormessage actually makes sense (it's danish, but means "The sequence contains more than one element").
/Chriztian
Hey guys,
true thing about the Result Tree Fragment...
My issue sees the daylight whenever i put the boolean true argument into the GetBasket function.
So, it's a .NET error og database error basically :-S
Same code on a different installation works a charm... Corrupt database i'm affraid :( How that happened i dunno!
Mads,
how did you figure out the database was corrupt and how did you fix it? I'm having a similar issue.
Thanks
Tom
Hi there Tom,
Actually the DB thing is an assumption. My fix, i'm affraid was a fresh install :-(
What I really think you should do, is send the guys from uCommerce a dump of your DB, and a step-wise description of what you have done, lately.
Sorry to say, no easy fix!
This is fixed in uCommerce 2.6.1.0.
Sorry for the inconvenience.
is working on a reply...