DataImporter module creating errors in app. Build keeps failing when publishing.

0
Hi, these two errors bellow pops when opening studio pro with installed DataImporter module. The app can be run in local, everything works fine as expected. Module is usable. The problem comes when i try to build it in mendix environments with build error which is basically the same as the errors bellow. Do you know the solution to this problem? I tried different versions of DataImporter but the errors are same.  I use mendix 10.7.0 Thanks for responses. Best regards, Vaclav   System.NullReferenceException: Object reference not set to an instance of an object.   at Mendix.DataImporter.Implementations.CustomActivity.Validations.MxCustomActivityConsistencyErrorChecker.Check(IImportExcelDataAction importExcelDataAction, IModel model)+MoveNext() in /builds/platformcore/datahub-connectors/dataimporter/DataImporterAdvance/Implementations/CustomActivity/Validations/MxCustomActivityConsistencyErrorChecker.cs:line 55   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()   at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()   at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)   at Mendix.Modeler.ExtensionLoader.ConsistencyCheck.ExtensionDocumentCheck.<>c__DisplayClass6_3.<Check>b__7() in Mendix.Modeler.ExtensionLoader\ConsistencyCheck\ExtensionDocumentCheck.cs:line 77   at Mendix.Modeler.ExtensionLoader.ExtensionUtil.CatchErrors(Action action, Object extension, ConcurrentDictionary`2 errors, Action executeWhenCaught) in Mendix.Modeler.ExtensionLoader\IExtensionUtils.cs:line 49     System.NullReferenceException: Object reference not set to an instance of an object.   at Mendix.DataImporter.Implementations.CustomActivity.Validations.MxCustomActivityConsistencyErrorChecker.Check(IImportExcelDataAction importExcelDataAction, IModel model)+MoveNext() in /builds/platformcore/datahub-connectors/dataimporter/DataImporterAdvance/Implementations/CustomActivity/Validations/MxCustomActivityConsistencyErrorChecker.cs:line 55   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()   at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()   at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)   at Mendix.Modeler.ExtensionLoader.ExtensionUtil.CatchErrors(Action action, Object extension, ConcurrentDictionary`2 errors, Action executeWhenCaught) in Mendix.Modeler.ExtensionLoader\IExtensionUtils.cs:line 62  
asked
1 answers
0

Hello Václav Řezáč,

 

Can it be that you need to set some values for this module in order for it to work, it looks like it needs a value that it cannot find, hence, NullreferenceException, so it can be that locally it finds this value(in the database) but in the cloud it cannot find this value. 

 

Try to look if this is the case and why it needs it directly at deployment(maybe an after startup that you use it in?).  

What also can help is to download the database from your environment and try to run your app locally with that database and see if you can reproduce the error.

 

If these things dont help, can you maybe provide some screenshot of the action it tries to execute

 

Hope this helps

*

Good luck!

 

answered