Issue faced - Null Error exception --System.AggregateException: One or more errors occurred. ---> System.ArgumentNullException: Value cannot be null.
0
Hi, I'm unable to run my Mendix studio pro. As on I'm running without any errors but yet it encounters a popup with error. I’m unable to run, export module package, export app package nor commit my changes to the server copy. Could anyone please help me out with this issue? I’m using Mendix Version: 9.10.1 Error attached below: System.AggregateException: One or more errors occurred. ---> System.ArgumentNullException: Value cannot be null. Parameter name: source at System.Linq.Enumerable.SelectMany[TSource,TResult](IEnumerable`1 source, Func`2 selector) at Mendix.Modeler.WebUI.Util.XPathExpressionExtensions.UsesRuntimeToken(XPathConstraint constraint, String token) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.WebUI\Util\XPathExpressionExtensions.cs:line 0 at Mendix.Modeler.WebUI.Forms.Widgets.EntityWidgets.DataSources.XPath.XPathSourceBase.Check(IProblems problems) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Widgets\EntityWidgets\DataSources\XPath\XPathSourceBase.cs:line 52 at Mendix.Modeler.WebUI.Forms.Widgets.EntityWidgets.DataSources.XPath.ListViewXPathSource.Check(IProblems problems) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Widgets\EntityWidgets\DataSources\XPath\ListViewXPathSource.cs:line 26 at Mendix.Modeler.WebUI.Forms.Widgets.EntityWidgets.ListViews.ListView.Check(IProblems problems) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Widgets\EntityWidgets\ListViews\ListView.cs:line 67 at Mendix.Modeler.WebUI.Forms.Widgets.FormCalls.LayoutCallArgument.Check(IProblems problems) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Widgets\FormCalls\LayoutCallArgument.cs:line 31 at Mendix.Modeler.WebUI.Forms.Documents.Layouts.LayoutCall.Check(IProblems problems) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Documents\Layouts\LayoutCall.cs:line 35 at Mendix.Modeler.WebUI.Forms.Documents.Pages.Page.Check(IProblems problems) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Documents\Pages\Page.cs:line 113 at Mendix.Common.Util.EnumerableUtil.ForEach[T](IEnumerable`1 source, Action`1 action) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Common\Util\EnumerableUtil.cs:line 50 at Mendix.Modeler.Common.ResolveCache.TrackResolves(Action code) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Common\Problems\ResolveCache.cs:line 91 at Mendix.Modeler.Projects.Checks.DocumentCheck.CheckDocument(IDocument document, IUsages usages, CancellationToken cancellationToken) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Projects\Checks\DocumentCheck.cs:line 33 at Mendix.Modeler.Projects.Changes.ChangedDocumentsProcessor`1.<>c__DisplayClass5_0.<ProcessChangedDocuments>g__DoProcess|5(IDocument document) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Projects\Changes\ChangedDocumentsProcessor.cs:line 70 at Mendix.Common.Util.EnumerableUtil.ForEach[T](IEnumerable`1 source, Action`1 action) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Common\Util\EnumerableUtil.cs:line 50 at Mendix.Modeler.Projects.Changes.ChangedDocumentsProcessor`1.ProcessChangedDocuments(IProject project, ProjectChanges projectChanges, Func`2 processDocument) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Projects\Changes\ChangedDocumentsProcessor.cs:line 66 at Mendix.Modeler.Projects.Checks.DocumentCheck.Check(IProject project, ProjectChanges changes, IProblems problems, CancellationToken cancellationToken) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Projects\Checks\DocumentCheck.cs:line 21 at Mendix.Modeler.Projects.Checks.ProjectChecker.<>c__DisplayClass5_1.<Check>b__2(ProjectChanges changes) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Projects\Checks\ProjectChecker.cs:line 69 at Mendix.Modeler.Projects.Changes.ChangedDocumentTracker.TryProcessChangesSync(Action`1 changeProcessor) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Projects\Changes\ChangedDocumentTracker.cs:line 35 at Mendix.Modeler.Projects.Checks.ProjectChecker.<>c__DisplayClass5_0.<Check>b__1() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Projects\Checks\ProjectChecker.cs:line 77 at Mendix.Modeler.Common.ResolveCache.WithCache[T](IProject project, Func`1 action) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Common\Problems\ResolveCache.cs:line 61 at Mendix.Modeler.ProtectedModules.ProtectedModulesUnlocker.ExecuteInContext[T](Boolean unlockImplementation, Func`1 code) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\ProtectedModules\ProtectedModulesUnlocker.cs:line 42 at Mendix.Modeler.Projects.Checks.ProjectChecker.Check(IProject project, CancellationToken cancellationToken) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Projects\Checks\ProjectChecker.cs:line 41 at Mendix.Modeler.Common.BackgroundCheckRunner.Check(IProject project) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core.View\Common\Problems\BackgroundCheckRunner.cs:line 105 at Mendix.Modeler.Common.BackgroundCheckRunner.<>c__DisplayClass5_0.<StartChecking>b__0() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core.View\Common\Problems\BackgroundCheckRunner.cs:line 48 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Mendix.Modeler.Common.BackgroundCheckRunner.<Start>d__4.MoveNext() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core.View\Common\Problems\BackgroundCheckRunner.cs:line 32 --- End of inner exception stack trace --- ---> (Inner Exception #0) System.ArgumentNullException: Value cannot be null. Parameter name: source at System.Linq.Enumerable.SelectMany[TSource,TResult](IEnumerable`1 source, Func`2 selector) at Mendix.Modeler.WebUI.Util.XPathExpressionExtensions.UsesRuntimeToken(XPathConstraint constraint, String token) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.WebUI\Util\XPathExpressionExtensions.cs:line 0 at Mendix.Modeler.WebUI.Forms.Widgets.EntityWidgets.DataSources.XPath.XPathSourceBase.Check(IProblems problems) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Widgets\EntityWidgets\DataSources\XPath\XPathSourceBase.cs:line 52 at Mendix.Modeler.WebUI.Forms.Widgets.EntityWidgets.DataSources.XPath.ListViewXPathSource.Check(IProblems problems) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Widgets\EntityWidgets\DataSources\XPath\ListViewXPathSource.cs:line 26 at Mendix.Modeler.WebUI.Forms.Widgets.EntityWidgets.ListViews.ListView.Check(IProblems problems) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Widgets\EntityWidgets\ListViews\ListView.cs:line 67 at Mendix.Modeler.WebUI.Forms.Widgets.FormCalls.LayoutCallArgument.Check(IProblems problems) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Widgets\FormCalls\LayoutCallArgument.cs:line 31 at Mendix.Modeler.WebUI.Forms.Documents.Layouts.LayoutCall.Check(IProblems problems) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Documents\Layouts\LayoutCall.cs:line 35 at Mendix.Modeler.WebUI.Forms.Documents.Pages.Page.Check(IProblems problems) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.WebUI\Forms\Documents\Pages\Page.cs:line 113 at Mendix.Common.Util.EnumerableUtil.ForEach[T](IEnumerable`1 source, Action`1 action) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Common\Util\EnumerableUtil.cs:line 50 at Mendix.Modeler.Common.ResolveCache.TrackResolves(Action code) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Common\Problems\ResolveCache.cs:line 91 at Mendix.Modeler.Projects.Checks.DocumentCheck.CheckDocument(IDocument document, IUsages usages, CancellationToken cancellationToken) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Projects\Checks\DocumentCheck.cs:line 33 at Mendix.Modeler.Projects.Changes.ChangedDocumentsProcessor`1.<>c__DisplayClass5_0.<ProcessChangedDocuments>g__DoProcess|5(IDocument document) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Projects\Changes\ChangedDocumentsProcessor.cs:line 70 at Mendix.Common.Util.EnumerableUtil.ForEach[T](IEnumerable`1 source, Action`1 action) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Common\Util\EnumerableUtil.cs:line 50 at Mendix.Modeler.Projects.Changes.ChangedDocumentsProcessor`1.ProcessChangedDocuments(IProject project, ProjectChanges projectChanges, Func`2 processDocument) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Projects\Changes\ChangedDocumentsProcessor.cs:line 66 at Mendix.Modeler.Projects.Checks.DocumentCheck.Check(IProject project, ProjectChanges changes, IProblems problems, CancellationToken cancellationToken) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Projects\Checks\DocumentCheck.cs:line 21 at Mendix.Modeler.Projects.Checks.ProjectChecker.<>c__DisplayClass5_1.<Check>b__2(ProjectChanges changes) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Projects\Checks\ProjectChecker.cs:line 69 at Mendix.Modeler.Projects.Changes.ChangedDocumentTracker.TryProcessChangesSync(Action`1 changeProcessor) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Projects\Changes\ChangedDocumentTracker.cs:line 35 at Mendix.Modeler.Projects.Checks.ProjectChecker.<>c__DisplayClass5_0.<Check>b__1() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Projects\Checks\ProjectChecker.cs:line 77 at Mendix.Modeler.Common.ResolveCache.WithCache[T](IProject project, Func`1 action) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Common\Problems\ResolveCache.cs:line 61 at Mendix.Modeler.ProtectedModules.ProtectedModulesUnlocker.ExecuteInContext[T](Boolean unlockImplementation, Func`1 code) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\ProtectedModules\ProtectedModulesUnlocker.cs:line 42 at Mendix.Modeler.Projects.Checks.ProjectChecker.Check(IProject project, CancellationToken cancellationToken) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Projects\Checks\ProjectChecker.cs:line 41 at Mendix.Modeler.Common.BackgroundCheckRunner.Check(IProject project) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core.View\Common\Problems\BackgroundCheckRunner.cs:line 105 at Mendix.Modeler.Common.BackgroundCheckRunner.<>c__DisplayClass5_0.<StartChecking>b__0() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core.View\Common\Problems\BackgroundCheckRunner.cs:line 48 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Mendix.Modeler.Common.BackgroundCheckRunner.<Start>d__4.MoveNext() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core.View\Common\Problems\BackgroundCheckRunner.cs:line 32<---
asked
Pallavi Patil
3 answers
3
I had a very similar error as this and it turned out to be because I had just a singular bracket in the xpath of a datagrid. For some reason the modeler didn’t throw an error and every time it went to check errors, it’d throw the error you are giving. Hope this helps, I have a feeling it could be a similar thing where the modeler should’ve thrown an error earlier, but maybe you were moving fast and now it can’t check? I’d look through your changes tab and go through them from most recent to find an anomaly.
answered
Jordan Boyle
0
Can you try updating your widgets from App->Tools update widgets?
answered
Raghav Balasubramanyam
0
I had a similar error today. Windows had made a bunch of updates and requested that I restart my laptop. The error was gone after the restart. Maybe related.