Post Closed
1272
Views
7
Comments
Solved
Object reference not set to an instance of an object. error after changing Int to Dec
Question

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)

2018-06-27 00-09-40
Edwin Siruma
Solution

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

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Edwin,

Did you refresh and republish all consumers of the Entity?

2018-06-27 00-09-40
Edwin Siruma

Yes, I did. I even cleared previous data.

UserImage.jpg
Max Larson

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

UserImage.jpg
Max Larson

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).

2018-06-27 00-09-40
Edwin Siruma
Solution

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

UserImage.jpg
Emanuele Mattei

Hi,

I'm not sure it is exactly related to editable table.

I got same error while moving pages and code from an application module to another one.

No editable table in. Just a tablerecords. removed it and still same error.

I did Undo everything, did the copy work again, step by step this time (first time I copied all the stuff in one shot), and it worked.

mumble...

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Emanuele,

This has really nothing to do with this topic. Please create a new one.