Object reference not set to an instance of an object. error after changing Int to Dec

Object reference not set to an instance of an object. error after changing Int to Dec

  

Hi, I am getting this error, Object reference not set to an instance of an object.  after changing and entity attribute from Integer to Decimal.

Here's the error in log:

Object reference not set to an instance of an object.
   at OutSystems.Plugin.Widgets.EditableTable.OnLoad()
   at OutSystems.HubEdition.WebWidgets.CustomWidget.#NYb(WidgetBehavior b)
   at OutSystems.RuntimeCommon.CollectionsExtensions.Apply[Type](IEnumerable`1 collection, Action`1 action)
   at OutSystems.HubEdition.WebWidgets.CustomWidget.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Hi Edwin,

Did you refresh and republish all consumers of the Entity?

Yes, I did. I even cleared previous data.

Is this issue resolved? If so how did you fix it?

Not sure if you're still having this issue, but we figured out the problem (at least for our scenario). 

The object reference error occurs when an Editable Table control does not contain any rows. Check your UI and make sure that your table has at least one row (even if it's disabled or hidden).

Solution

It is correct that the Editable Table is causing the error. I removed it and replaced with another table.

Solution