Posted on 15/09/2021 13:40:38
Hi guys,
I have a solution running on DW 9.10.13.
I have noticed very often an error (the one from the title) on specific queries without any expressions defined.
But now, all of a sudden, I get this error regardless of the Query I am trying to open. And it seems to be a User-specific error.
I have 2 issues here:
1. Why is this error happening even for correct queries?
2. Can we get a friendlier message for this type of error avoiding breaking the access to all other queries?
This is the complete stack trace:
Group expressions with no expressions are not supported.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NotSupportedException: Group expressions with no expressions are not supported.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
[NotSupportedException: Group expressions with no expressions are not supported.]
Dynamicweb.Indexing.Querying.Expressions.ExpressionHelper.ThrowNoChildExpressionNotSupportedException() +62
Dynamicweb.Indexing.Querying.Expressions.ExpressionHelper.DeserializeFromXml(XElement element) +2402
Dynamicweb.Indexing.Querying.Expressions.ExpressionHelper.DeserializeFromXml(XElement element) +396
Dynamicweb.Indexing.Querying.Expressions.ExpressionHelper.DeserializeFromXml(XElement element) +2376
Dynamicweb.Indexing.Querying.QueryHelper.FillQueryWithExpressions(XElement root, IQuery query) +65
Dynamicweb.Indexing.Querying.QueryHelper.ConvertToQuery(XElement obj) +277
Dynamicweb.Indexing.Querying.QueryHelper.CopyQuery(IQuery query) +28
Dynamicweb.Indexing.Querying.QueryService.Query(IQuery query, QuerySettings settings) +22
Dynamicweb.Admin.eComBackend.PimMaster.GetQueryProductIds(IQuery query, ValidateIndexInstanceDelegate validateIndexInstance, ListViewSettings listViewSettings, IEnumerable`1 idsFilter) +959
Dynamicweb.Admin.eComBackend.PimMaster.GetProductIdsFromQuery(IEnumerable`1 idsFilter) +135
Dynamicweb.Admin.eComBackend.PimMaster.GetProductIds() +304
Dynamicweb.Admin.eComBackend.PimMaster.get_ProductIdCollection() +27
Dynamicweb.Admin.eComBackend.PimMaster.GetProductsFromDatabase() +19
Dynamicweb.Admin.eComBackend.PimMaster.GetCardSubtitle() +791
Dynamicweb.Admin.eComBackend.PimMaster.Page_PreRender(Object sender, EventArgs e) +136
System.Web.UI.Control.OnPreRender(EventArgs e) +11905036
System.Web.UI.Control.PreRenderRecursiveInternal() +162
System.Web.UI.Control.PreRenderRecursiveInternal() +256
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6875
|
Thank you,
Adrian