15
Views
5
Comments
Solved
Service Center error detail

Hello,

Is there a way to find which expression throw an error using error details in Service Center?

I came across these logs but they aren't helpful if I don't know which expression is expression129():

index 2 is out of range
at OutSystems.HubEdition.RuntimePlatform.Db.OSList`1.get_Item(Int32 index)
at sscosthop.Flows.FlowMainFlow.ScrnCostHop.expression129()
at ASP.costhop_aspx.__DataBind__control178(Object sender, EventArgs e)
at System.Web.UI.Control.OnDataBinding(EventArgs e)
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at OutSystems.HubEdition.WebWidgets.PlaceHolder.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at OutSystems.HubEdition.WebWidgets.PlaceHolder.DataBind()
at OutSystems.HubEdition.WebWidgets.TableCell.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at OutSystems.HubEdition.WebWidgets.TableCell.DataBind()
at OutSystems.HubEdition.WebWidgets.Tr.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at OutSystems.HubEdition.WebWidgets.Tr.DataBind()
at OutSystems.HubEdition.WebWidgets.Table.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at OutSystems.HubEdition.WebWidgets.Table.DataBind()
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at OutSystems.HubEdition.WebWidgets.Container.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at OutSystems.HubEdition.WebWidgets.Container.DataBind()
at OutSystems.HubEdition.WebWidgets.Container.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at OutSystems.HubEdition.WebWidgets.Container.DataBind()
at OutSystems.HubEdition.WebWidgets.Container.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at OutSystems.HubEdition.WebWidgets.Container.DataBind()
at OutSystems.HubEdition.WebWidgets.Container.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at OutSystems.HubEdition.WebWidgets.Container.DataBind()
at OutSystems.HubEdition.WebWidgets.Container.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at OutSystems.HubEdition.WebWidgets.Container.DataBind()
at OutSystems.HubEdition.WebWidgets.If.DataBind()
at OutSystems.HubEdition.WebWidgets.PlaceHolder.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at OutSystems.HubEdition.WebWidgets.PlaceHolder.DataBind()
at OutSystems.HubEdition.WebWidgets.Container.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at OutSystems.HubEdition.WebWidgets.Container.DataBind()
at OutSystems.HubEdition.WebWidgets.Container.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at OutSystems.HubEdition.WebWidgets.Container.DataBind()
at OutSystems.HubEdition.WebWidgets.OSUserControl.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at OutSystems.HubEdition.WebWidgets.OSUserControl.DataBind()
at OutSystems.HubEdition.WebWidgets.Form.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at OutSystems.HubEdition.WebWidgets.Body.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at OutSystems.HubEdition.WebWidgets.OSPage.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at OutSystems.HubEdition.WebWidgets.OSPage.DataBind()
at sscosthop.Flows.FlowMainFlow.ScrnCostHop.DataBind()
at sscosthop.Flows.FlowMainFlow.ScrnCostHop.doRefreshScreen(HeContext heContext)
at sscosthop.Flows.FlowMainFlow.ScrnCostHop.wtbtnSearch7_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at OutSystems.HubEdition.WebWidgets.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Regards,

Roxane

Rank: #70
Solution

Hi Roxane,


Unfortunately I don't think there is, although you can search for expression129  (mentioned in the log) - or searching for [2] using CTRL + F - and see if you find something. If you don't find something with expression129  you will need to check for them yourself.


Regards,
João

Rank: #70

Hi Roxane,


Analyzing the error log you shared, I would search for the ScrnCostHop screen in MainFlow flow and check if you have an expression which is accessing explicitly a position 2 (third position, since list indexes are zero-based) of the list.

If the list has less than 3 elements, and you are trying to access the 3rd element, you would be getting this error. This is an example of an expression accessing explicitly the 3rd position of a list which might help you know what you will be looking for:


Hope it helps.


Regards,
João

Hi Roxane,

As per log exception is coming from screen ScrnCostHop .

Please check are you trying to access record of particular index of any list.


Regards

Shashikant Shukla

Hello João, Shashikant,

Thank you for your quick response.

If I understand correctly, there isn't a way of finding the expression that throws the error without checking individually every single expression in my screen? So if I had 300 expressions, I would have to check all 300?

Regards,

Roxane


Rank: #70
Solution

Hi Roxane,


Unfortunately I don't think there is, although you can search for expression129  (mentioned in the log) - or searching for [2] using CTRL + F - and see if you find something. If you don't find something with expression129  you will need to check for them yourself.


Regards,
João

Hi João,

This was what I wanted to know, thank you for your time!

Have a nice day.

Regards,

Roxane