New strange error being logged: "Object reference not set to an instance of an object."

Add this to the list of Appsheet issues our organization has begun to experience over the past couple of months.  I'm seeing this error more and more frequently, and I do not know what it means. It almost reads like there's a coding problem with Appsheet itself on the server: 

Operation: App sync

Message: Object reference not set to an instance of an object. System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object.) ---> System.NullReferenceException: Object reference not set to an instance of an object. at System.Collections.Generic.HashSet`1.FindItemIndex(T item) at RequestContextFramework.TableDataCacheEntry.ContainsAllColumnPositions(ReadOnlySpan`1 columnPositions) in C:\tmpfs\appsheet\RequestContext\RequestContextFramework\TableDataCacheEntry.cs:line 22 at AppContext.AppDataContext.AddColumnsIfNecessary(TableDataCacheEntry tableDataCacheEntry, String tableName, ItemSchema thisSchema, ReadOnlySpan`1 columnPositions, Boolean& addedColumns) in C:\tmpfs\appsheet\Data\AppContext\AppDataContext.cs:line 670 at AppContext.AppDataContext.GetRootTableDataFromCache(String tableName, ReadOnlySpan`1 columnPositions, Boolean& addedColumns) in C:\tmpfs\appsheet\Data\AppContext\AppDataContext.cs:line 720 at AppContext.AppDataContext.GetTableIndexFromCache(String tableName, ItemSchema tableSchema, ReadOnlySpan`1 keyColumnPositions, ReadOnlySpan`1 requiredVirtualColumns) in C:\tmpfs\appsheet\Data\AppContext\AppDataContext.cs:line 952 at AppContext.AppDataContext.ColumnValues(Int32 depth, String tableName, Nullable`1 rowListAttrIndex, Int32 columnPosition, AppEvaluatable rowFilter, Nullable`1 maxResults, Int32 rowListContextLevel) in C:\tmpfs\appsheet\Data\AppContext\AppDataContext.cs:line 224 at Jeenee.DataTypes.ColumnSetExpression.Evaluatable.RunAndFilter(Int32 depth, ListMetaData listTypeQualifier, IDataContext dataContext, String tableName, Nullable`1 rowListAttrIndex, Int32 colIndex, AppEvaluatable columnFilter, Boolean makeDistinct, Int32 rowListContextLevel, Nullable`1 maxResults) at Jeenee.DataTypes.SelectFunction.Run(Int32 depth, Evaluatable funcExpressionEvaluatable, IDataContext dataContext, ImmutableArray`1 children, List`1 argumentValues) in C:\tmpfs\appsheet\DataTypes\Expressions\Functions\OtherFunctions.cs:line 861 at Jeenee.DataTypes.BuiltinFunction.RunBatch(Int32 depth, Evaluatable funcExpressionEvaluatable, BatchDataContext batchDataContext, ImmutableArray`1 children, BatchArguments batchArguments) in C:\tmpfs\appsheet\DataTypes\Expressions\Functions\FunctionRegistry.cs:line 79 at Jeenee.DataTypes.BuiltinFunctionExpression.Evaluatable.RunBatch(Int32 depth, BatchDataContext batchDataContext, BatchArguments batchArguments) in C:\tmpfs\appsheet\DataTypes\Expressions\FunctionExpression.cs:line 158 at Jeenee.DataTypes.AppEvaluatable.RunBatch(Int32 depth, BatchDataContext batchDataContext, BatchTrace batchTrace) in C:\tmpfs\appsheet\DataTypes\Expressions\AppEvaluatable.cs:line 373 at LegacyDataLayer.LegacyVirtualColumnsDataLayer.GetComputedFieldValuesBatch(Context context, IDataContext dataContext, TableData tableData, SchemaField attr, Int32 col) in C:\tmpfs\appsheet\Data\LegacyDataLayer\LegacyVirtualColumnsDataLayer.cs:line 365 at LegacyDataLayer.LegacyVirtualColumnsDataLayer.GetComputedFieldValues(Context context, IDataContext dataContext, TableData tableData, ItemSchema tableSchema, SchemaField attr) in C:\tmpfs\appsheet\Data\LegacyDataLayer\LegacyVirtualColumnsDataLayer.cs:line 324 at LegacyDataLayer.LegacyVirtualColumnsDataLayer.AugmentData(Context context, AppTemplate appTemplate, String tableName, TableData tableData, ItemSchema itemSchema, Boolean keysOnly, AppErrors appErrors) in C:\tmpfs\appsheet\Data\LegacyDataLayer\LegacyVirtualColumnsDataLayer.cs:line 902 at LegacyDataLayer.LegacyDataAccessDataLayer.GetTableData(Context context, AppTemplate appTemplate, String tableDataIdentifier, Int32 userId, AppTable appTable, ItemSchema tableSchema, UseCacheOption useCache, Boolean augmentData, AppEvaluatable filter, Nullable`1 ifModifiedSinceDate, Boolean& notModified, AppErrors appErrors, Boolean ignoreSecurityFilters) in C:\tmpfs\appsheet\Data\LegacyDataLayer\LegacyDataAccessDataLayer.cs:line 3006 at LegacyDataLayer.LegacyAppTemplateDataLayer.GetTableData(Context context, AppTemplate appTemplate, AppTable appTable, Int32 userId, Boolean augmentData, AppEvaluatable filter, Nullable`1 ifModifiedSince, Boolean& notModified, AppErrors appErrors) in C:\tmpfs\appsheet\Data\LegacyDataLayer\LegacyAppTemplateDataLayer.cs:line 386 at AppApiHandler.SyncRequestHandler.ParallelReadTable(Context perTableContext, Int32 thisUserId, String appTemplateName, AppTemplate appTemplate, AppTable appTable, String tableTimestampsFromClient, TableParams tableParamsFromClient, AppErrors perTableAppErrors, DataFormat desiredFormat, ConcurrentDictionary`2 tableDataSideChannel) in C:\tmpfs\appsheet\ControllerHandler\AppApiHandler\SyncRequestHandler.cs:line 894 at AppApiHandler.SyncRequestHandler.<>c__DisplayClass22_0.<ParallelReadTables>b__1(AppTable appTable) in C:\tmpfs\appsheet\ControllerHandler\AppApiHandler\SyncRequestHandler.cs:line 658 at System.Threading.Tasks.Parallel.<>c__DisplayClass44_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.<>c__DisplayClass44_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) at System.Threading.Tasks.TaskReplicator.Replica.Execute() --- End of inner exception stack trace --- at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction`1 action, ParallelOptions options, Boolean stopOnFirstFailure) at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 simpleBody, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally) --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.ThrowSingleCancellationExceptionOrOtherException(ICollection exceptions, CancellationToken cancelToken, Exception otherException) at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 simpleBody, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally) at AppApiHandler.SyncRequestHandler.ParallelReadTables(IPerfCollector perfCollector, Context context, String appTemplateName, AppTemplate appTemplate, AppTemplate smallClone, String tableTimestampsFromClient, Dictionary`2 perTableParamsFromclient, DataFormat desiredFormat, Boolean warnClientUpdate) in C:\tmpfs\appsheet\ControllerHandler\AppApiHandler\SyncRequestHandler.cs:line 789 at AppApiHandler.SyncRequestHandler.ExecuteSyncRequest(IPerfCollector perfCollector, Context context, AppSyncRequest request, Boolean userIsAuthenticated, Boolean cookiesHasStartWithToken, String requestUrl, Uri referrer, String returnUrlParameter, String webViewParameter, String androidParameter, String isCompliantParameter, StartAppToken startAppToken, String appver) in C:\tmpfs\appsheet\ControllerHandler\AppApiHandler\SyncRequestHandler.cs:line 514

0 2 257
2 REPLIES 2

Normally it means there is something wrong with the code. So.. please file a support ticket so devs could check the reason.

Just thought I would post an update here.  Still getting this error a few times a day.  Support ticket filed months ago, have followed up on it, no reply/action as yet.

Top Labels in this Space