HodorNV / ALOps

ALOps
59 stars 24 forks source link

Unexpected CLR exception thrown.: System.NullReferenceException: Object reference not set to an instance of an object #696

Closed lorenzfleerackers closed 10 months ago

lorenzfleerackers commented 10 months ago

When I run my tests in my local docker container they all succeed but in de pipeline some fail with following issue:

[warning]VRA Tree View:AddAssemblyItemToJobSalesQuoteFirstView: Unexpected CLR exception thrown.: System.NullReferenceException: Object reference not set to an instance of an object.\ at Microsoft.Dynamics.Nav.Runtime.NCLMetaEnum.LoadMetadata()\ at Microsoft.Dynamics.Nav.Runtime.NCLMetaApplicationObject.Populate()\ at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.GetMetaApplicationObjectInternal(ApplicationObjectId appObjectId, Boolean requireCompiled, Int32 appGroupId)\ at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.GetMetaApplicationObject(ApplicationObjectId appObjectId, Boolean requireCompiled, Int32 appGroupId)\ at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.TryGetMetaApplicationObject(ApplicationObjectId appObjectId, NCLMetaApplicationObject& metaApplicationObject, Boolean requireCompiled, Int32 appGroupId)\ at Microsoft.Dynamics.Nav.XmlMetadata.MetadataProvider.GetEnumMetadata(Int32 id)\ at Microsoft.Dynamics.Nav.Runtime.NCLFieldEnumMetadata.GetEnumMetadataFromMetadataProvider()\ at Microsoft.Dynamics.Nav.Runtime.NCLFieldEnumBaseMetadata.GetAppGroupAwareEnumMetadata()\ at Microsoft.Dynamics.Nav.Runtime.NCLFieldEnumBaseMetadata.get_OptionString()\ at Microsoft.Dynamics.Nav.Runtime.FieldDataProvider.GetOptionString(NCLMetaField field)\ at Microsoft.Dynamics.Nav.Runtime.FieldDataProvider.GetFieldRecordBuffer(NavInteger tableNo, NavText tableName, NCLMetaField field, ValueTuple2 ids)\ at Microsoft.Dynamics.Nav.Runtime.FieldDataProvider.GetFieldsOnTable(NavInteger tableNo, NavText tableName, Range range, SortOrder sortOrder, FilterFieldDictionary nonPrimaryKeyFilters)+MoveNext()\ at System.Linq.Enumerable.SelectManyIterator[TSource,TCollection,TResult](IEnumerable1 source, Func2 collectionSelector, Func3 resultSelector)+MoveNext()\ at System.Linq.Enumerable.SelectManyIterator[TSource,TCollection,TResult](IEnumerable1 source, Func2 collectionSelector, Func3 resultSelector)+MoveNext()\ at Microsoft.Dynamics.Nav.Runtime.ResultSet.TryGetAtIndexWithoutBuffer(Int32 index, ReadOnlyRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.ResultSet.TryGetAtIndex(Int32 index, ReadOnlyRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.ResultSetEnumerator.TryGetRecordBufferFromResultSet(Int32 fetchIndex, MutableRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.ResultSetEnumerator.TryMoveNextImpl(MutableRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.Advance(Int32 steps, Boolean moveBackwards, Boolean automaticFindFromPositionOnInvalid, Boolean& resultSetValid, Int32 setSize)\ at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.NextRecord(Int32 steps, Int32 setSize)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.Next(Int32 steps, Int32 setSize)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.FillNormalFieldBuffer_Scope_1083277917.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.FillNormalFieldBuffer(INavRecordHandle tempField)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoWithGlobalDimsList_Scope_1929198965.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoWithGlobalDimsList(INavRecordHandle tempAllObjWithCaption)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoList_Scope_95850251.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoList(INavRecordHandle tempAllObjWithCaption)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.OnInvoke(Int32 memberId, Object[] args)\ at Microsoft.Dynamics.Nav.BusinessApplication.Record352.Table_ID_a45_OnValidate_Scope.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Record352.Table_ID_a45_OnValidate()\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.InvokeFieldTriggerHandler(FieldTriggerHandler1 handler)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.ValidateField(FieldTriggerHandler1 fieldEvent, NCLMetaField metaField, Boolean isUserInput, List1 beforeHandlers, List`1 afterHandlers)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.Validate(NCLMetaField metaField, NavValue newValue, NavRecord callerRecord, Boolean isUserInput)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.ALValidateSafe(Int32 fieldNo, NavType expectedType, NavValue newValue)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimension_Scope_379278789.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimension(INavRecordHandle defaultDimension, Int32 tableID, NavCode no, NavCode dimensionCode, NavCode dimensionValueCode)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimensionItem_Scope1191324905.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimensionItem(INavRecordHandle defaultDimension, NavCode itemNo, NavCode dimensionCode, NavCode dimensionValueCode)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.OnInvoke(Int32 memberId, Object[] args)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.AddEntityDimensions_Scope_432247886.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.AddEntityDimensions(NavOption type, NavCode no)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.SetupComponents_Scope_348864718.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.SetupComponents(INavRecordHandle tempItem, INavRecordHandle tempResource, NavOption costingMethod, Int32 noOfItems, Int32 noOfResources, NavCode genProdPostingGroup, NavCode inventoryPostingGroup)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.CreateAssemblyList_Scope_974871824.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.CreateAssemblyList(NavOption costingMethod, NavCode parentItemNo, Boolean useBaseUnitOfMeasure, Int32 noOfItems, Int32 noOfResources, Int32 noOfTexts, Int32 qtyPerFactor, NavCode genProdPostingGroup, NavCode inventoryPostingGroup)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.OnInvoke(Int32 memberId, Object[] args)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.CreateAssemblyItem_Scope__2134258009.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.CreateAssemblyItem(NavScope γReturnValueParent, Int32 noOfComponents, Int32 quantityPer)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.AddAssemblyItemToJobSalesQuoteFirstView_Scope1532869639.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.AddAssemblyItemToJobSalesQuoteFirstView()

Yesterday all those tests also worked fine in the pipelines.

Any idea what the issue can be?

Kind regards Lorenz Fleerackers

waldo1001 commented 10 months ago

We are going to need more details. Can you share the log an yaml?

lorenzfleerackers commented 10 months ago

The log: "Library - Dimension"(CodeUnit 131001).CreateDefaultDimensionItem line 2 - Tests-TestLibraries by Microsoft "Library - Assembly"(CodeUnit 132207).AddEntityDimensions line 13 - Tests-TestLibraries by Microsoft "Library - Assembly"(CodeUnit 132207).SetupComponents line 13 - Tests-TestLibraries by Microsoft "Library - Assembly"(CodeUnit 132207).CreateAssemblyList line 7 - Tests-TestLibraries by Microsoft "VRA Tree View"(CodeUnit 80012).CreateAssemblyItem line 11 - Construction and Installation-Test by VanRoey | EuroSys "VRA Tree View"(CodeUnit 80012).ImportDetailFromOtherDetail line 20 - Construction and Installation-Test by VanRoey | EuroSys "Test Runner - Mgt"(CodeUnit 130454).RunTests line 21 - Test Runner by Microsoft "Test Runner - Isol. Codeunit"(CodeUnit 130450).OnRun(Trigger) line 4 - Test Runner by Microsoft "Test Suite Mgt."(CodeUnit 130456).RunTests line 2 - Test Runner by Microsoft "Test Suite Mgt."(CodeUnit 130456).RunSelectedTests line 35 - Test Runner by Microsoft "Command Line Test Tool"(Page 130455)."RunSelectedTests - OnAction"(Trigger) line 7 - Test Runner by Microsoft

</collection>

*** Get XUnit Test file from [c:\Run\DevOps\TestResults.xml] to [C:\vsts-agent-alops-warp10_work\1466\s\TestResults.xml]

Disconnect Docker session. Docker session removed.

[warning]VRA Tree View:AddAssemblyItemToJobSalesQuoteFirstView: Unexpected CLR exception thrown.: System.NullReferenceException: Object reference not set to an instance of an object.\ at Microsoft.Dynamics.Nav.Runtime.NCLMetaEnum.LoadMetadata()\ at Microsoft.Dynamics.Nav.Runtime.NCLMetaApplicationObject.Populate()\ at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.GetMetaApplicationObjectInternal(ApplicationObjectId appObjectId, Boolean requireCompiled, Int32 appGroupId)\ at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.GetMetaApplicationObject(ApplicationObjectId appObjectId, Boolean requireCompiled, Int32 appGroupId)\ at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.TryGetMetaApplicationObject(ApplicationObjectId appObjectId, NCLMetaApplicationObject& metaApplicationObject, Boolean requireCompiled, Int32 appGroupId)\ at Microsoft.Dynamics.Nav.XmlMetadata.MetadataProvider.GetEnumMetadata(Int32 id)\ at Microsoft.Dynamics.Nav.Runtime.NCLFieldEnumMetadata.GetEnumMetadataFromMetadataProvider()\ at Microsoft.Dynamics.Nav.Runtime.NCLFieldEnumBaseMetadata.GetAppGroupAwareEnumMetadata()\ at Microsoft.Dynamics.Nav.Runtime.NCLFieldEnumBaseMetadata.get_OptionString()\ at Microsoft.Dynamics.Nav.Runtime.FieldDataProvider.GetOptionString(NCLMetaField field)\ at Microsoft.Dynamics.Nav.Runtime.FieldDataProvider.GetFieldRecordBuffer(NavInteger tableNo, NavText tableName, NCLMetaField field, ValueTuple2 ids)\ at Microsoft.Dynamics.Nav.Runtime.FieldDataProvider.GetFieldsOnTable(NavInteger tableNo, NavText tableName, Range range, SortOrder sortOrder, FilterFieldDictionary nonPrimaryKeyFilters)+MoveNext()\ at System.Linq.Enumerable.SelectManyIterator[TSource,TCollection,TResult](IEnumerable1 source, Func2 collectionSelector, Func3 resultSelector)+MoveNext()\ at System.Linq.Enumerable.SelectManyIterator[TSource,TCollection,TResult](IEnumerable1 source, Func2 collectionSelector, Func3 resultSelector)+MoveNext()\ at Microsoft.Dynamics.Nav.Runtime.ResultSet.TryGetAtIndexWithoutBuffer(Int32 index, ReadOnlyRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.ResultSet.TryGetAtIndex(Int32 index, ReadOnlyRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.ResultSetEnumerator.TryGetRecordBufferFromResultSet(Int32 fetchIndex, MutableRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.ResultSetEnumerator.TryMoveNextImpl(MutableRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.Advance(Int32 steps, Boolean moveBackwards, Boolean automaticFindFromPositionOnInvalid, Boolean& resultSetValid, Int32 setSize)\ at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.NextRecord(Int32 steps, Int32 setSize)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.Next(Int32 steps, Int32 setSize)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.FillNormalFieldBuffer_Scope_1083277917.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.FillNormalFieldBuffer(INavRecordHandle tempField)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoWithGlobalDimsList_Scope_1929198965.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoWithGlobalDimsList(INavRecordHandle tempAllObjWithCaption)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoList_Scope_95850251.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoList(INavRecordHandle tempAllObjWithCaption)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.OnInvoke(Int32 memberId, Object[] args)\ at Microsoft.Dynamics.Nav.BusinessApplication.Record352.Table_ID_a45_OnValidate_Scope.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Record352.Table_ID_a45_OnValidate()\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.InvokeFieldTriggerHandler(FieldTriggerHandler1 handler)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.ValidateField(FieldTriggerHandler1 fieldEvent, NCLMetaField metaField, Boolean isUserInput, List1 beforeHandlers, List`1 afterHandlers)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.Validate(NCLMetaField metaField, NavValue newValue, NavRecord callerRecord, Boolean isUserInput)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.ALValidateSafe(Int32 fieldNo, NavType expectedType, NavValue newValue)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimension_Scope_379278789.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimension(INavRecordHandle defaultDimension, Int32 tableID, NavCode no, NavCode dimensionCode, NavCode dimensionValueCode)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimensionItem_Scope1191324905.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimensionItem(INavRecordHandle defaultDimension, NavCode itemNo, NavCode dimensionCode, NavCode dimensionValueCode)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.OnInvoke(Int32 memberId, Object[] args)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.AddEntityDimensions_Scope_432247886.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.AddEntityDimensions(NavOption type, NavCode no)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.SetupComponents_Scope_348864718.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.SetupComponents(INavRecordHandle tempItem, INavRecordHandle tempResource, NavOption costingMethod, Int32 noOfItems, Int32 noOfResources, NavCode genProdPostingGroup, NavCode inventoryPostingGroup)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.CreateAssemblyList_Scope_974871824.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.CreateAssemblyList(NavOption costingMethod, NavCode parentItemNo, Boolean useBaseUnitOfMeasure, Int32 noOfItems, Int32 noOfResources, Int32 noOfTexts, Int32 qtyPerFactor, NavCode genProdPostingGroup, NavCode inventoryPostingGroup)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.OnInvoke(Int32 memberId, Object[] args)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.CreateAssemblyItem_Scope__2134258009.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.CreateAssemblyItem(NavScope γReturnValueParent, Int32 noOfComponents, Int32 quantityPer)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.AddAssemblyItemToJobSalesQuoteFirstView_Scope1532869639.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.AddAssemblyItemToJobSalesQuoteFirstView()

[warning]VRA Tree View:AddAssemblyItemToJobSalesQuoteSecondView: Unexpected CLR exception thrown.: System.NullReferenceException: Object reference not set to an instance of an object.\ at Microsoft.Dynamics.Nav.Runtime.NCLMetaEnum.LoadMetadata()\ at Microsoft.Dynamics.Nav.Runtime.NCLMetaApplicationObject.Populate()\ at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.GetMetaApplicationObjectInternal(ApplicationObjectId appObjectId, Boolean requireCompiled, Int32 appGroupId)\ at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.GetMetaApplicationObject(ApplicationObjectId appObjectId, Boolean requireCompiled, Int32 appGroupId)\ at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.TryGetMetaApplicationObject(ApplicationObjectId appObjectId, NCLMetaApplicationObject& metaApplicationObject, Boolean requireCompiled, Int32 appGroupId)\ at Microsoft.Dynamics.Nav.XmlMetadata.MetadataProvider.GetEnumMetadata(Int32 id)\ at Microsoft.Dynamics.Nav.Runtime.NCLFieldEnumMetadata.GetEnumMetadataFromMetadataProvider()\ at Microsoft.Dynamics.Nav.Runtime.NCLFieldEnumBaseMetadata.GetAppGroupAwareEnumMetadata()\ at Microsoft.Dynamics.Nav.Runtime.NCLFieldEnumBaseMetadata.get_OptionString()\ at Microsoft.Dynamics.Nav.Runtime.FieldDataProvider.GetOptionString(NCLMetaField field)\ at Microsoft.Dynamics.Nav.Runtime.FieldDataProvider.GetFieldRecordBuffer(NavInteger tableNo, NavText tableName, NCLMetaField field, ValueTuple2 ids)\ at Microsoft.Dynamics.Nav.Runtime.FieldDataProvider.GetFieldsOnTable(NavInteger tableNo, NavText tableName, Range range, SortOrder sortOrder, FilterFieldDictionary nonPrimaryKeyFilters)+MoveNext()\ at System.Linq.Enumerable.SelectManyIterator[TSource,TCollection,TResult](IEnumerable1 source, Func2 collectionSelector, Func3 resultSelector)+MoveNext()\ at System.Linq.Enumerable.SelectManyIterator[TSource,TCollection,TResult](IEnumerable1 source, Func2 collectionSelector, Func3 resultSelector)+MoveNext()\ at Microsoft.Dynamics.Nav.Runtime.ResultSet.TryGetAtIndexWithoutBuffer(Int32 index, ReadOnlyRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.ResultSet.TryGetAtIndex(Int32 index, ReadOnlyRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.ResultSetEnumerator.TryGetRecordBufferFromResultSet(Int32 fetchIndex, MutableRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.ResultSetEnumerator.TryMoveNextImpl(MutableRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.Advance(Int32 steps, Boolean moveBackwards, Boolean automaticFindFromPositionOnInvalid, Boolean& resultSetValid, Int32 setSize)\ at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.NextRecord(Int32 steps, Int32 setSize)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.Next(Int32 steps, Int32 setSize)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.FillNormalFieldBuffer_Scope_1083277917.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.FillNormalFieldBuffer(INavRecordHandle tempField)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoWithGlobalDimsList_Scope_1929198965.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoWithGlobalDimsList(INavRecordHandle tempAllObjWithCaption)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoList_Scope_95850251.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoList(INavRecordHandle tempAllObjWithCaption)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.OnInvoke(Int32 memberId, Object[] args)\ at Microsoft.Dynamics.Nav.BusinessApplication.Record352.Table_ID_a45_OnValidate_Scope.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Record352.Table_ID_a45_OnValidate()\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.InvokeFieldTriggerHandler(FieldTriggerHandler1 handler)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.ValidateField(FieldTriggerHandler1 fieldEvent, NCLMetaField metaField, Boolean isUserInput, List1 beforeHandlers, List`1 afterHandlers)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.Validate(NCLMetaField metaField, NavValue newValue, NavRecord callerRecord, Boolean isUserInput)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.ALValidateSafe(Int32 fieldNo, NavType expectedType, NavValue newValue)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimension_Scope_379278789.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimension(INavRecordHandle defaultDimension, Int32 tableID, NavCode no, NavCode dimensionCode, NavCode dimensionValueCode)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimensionItem_Scope1191324905.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimensionItem(INavRecordHandle defaultDimension, NavCode itemNo, NavCode dimensionCode, NavCode dimensionValueCode)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.OnInvoke(Int32 memberId, Object[] args)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.AddEntityDimensions_Scope_432247886.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.AddEntityDimensions(NavOption type, NavCode no)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.SetupComponents_Scope_348864718.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.SetupComponents(INavRecordHandle tempItem, INavRecordHandle tempResource, NavOption costingMethod, Int32 noOfItems, Int32 noOfResources, NavCode genProdPostingGroup, NavCode inventoryPostingGroup)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.CreateAssemblyList_Scope_974871824.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.CreateAssemblyList(NavOption costingMethod, NavCode parentItemNo, Boolean useBaseUnitOfMeasure, Int32 noOfItems, Int32 noOfResources, Int32 noOfTexts, Int32 qtyPerFactor, NavCode genProdPostingGroup, NavCode inventoryPostingGroup)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.OnInvoke(Int32 memberId, Object[] args)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.CreateAssemblyItem_Scope__2134258009.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.CreateAssemblyItem(NavScope γReturnValueParent, Int32 noOfComponents, Int32 quantityPer)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.AddAssemblyItemToJobSalesQuoteSecondView_Scope1649419204.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.AddAssemblyItemToJobSalesQuoteSecondView()

[warning]VRA Tree View:ChangeParentTreeViewQuantityFirstView: Unexpected CLR exception thrown.: System.NullReferenceException: Object reference not set to an instance of an object.\ at Microsoft.Dynamics.Nav.Runtime.NCLMetaEnum.LoadMetadata()\ at Microsoft.Dynamics.Nav.Runtime.NCLMetaApplicationObject.Populate()\ at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.GetMetaApplicationObjectInternal(ApplicationObjectId appObjectId, Boolean requireCompiled, Int32 appGroupId)\ at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.GetMetaApplicationObject(ApplicationObjectId appObjectId, Boolean requireCompiled, Int32 appGroupId)\ at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.TryGetMetaApplicationObject(ApplicationObjectId appObjectId, NCLMetaApplicationObject& metaApplicationObject, Boolean requireCompiled, Int32 appGroupId)\ at Microsoft.Dynamics.Nav.XmlMetadata.MetadataProvider.GetEnumMetadata(Int32 id)\ at Microsoft.Dynamics.Nav.Runtime.NCLFieldEnumMetadata.GetEnumMetadataFromMetadataProvider()\ at Microsoft.Dynamics.Nav.Runtime.NCLFieldEnumBaseMetadata.GetAppGroupAwareEnumMetadata()\ at Microsoft.Dynamics.Nav.Runtime.NCLFieldEnumBaseMetadata.get_OptionString()\ at Microsoft.Dynamics.Nav.Runtime.FieldDataProvider.GetOptionString(NCLMetaField field)\ at Microsoft.Dynamics.Nav.Runtime.FieldDataProvider.GetFieldRecordBuffer(NavInteger tableNo, NavText tableName, NCLMetaField field, ValueTuple2 ids)\ at Microsoft.Dynamics.Nav.Runtime.FieldDataProvider.GetFieldsOnTable(NavInteger tableNo, NavText tableName, Range range, SortOrder sortOrder, FilterFieldDictionary nonPrimaryKeyFilters)+MoveNext()\ at System.Linq.Enumerable.SelectManyIterator[TSource,TCollection,TResult](IEnumerable1 source, Func2 collectionSelector, Func3 resultSelector)+MoveNext()\ at System.Linq.Enumerable.SelectManyIterator[TSource,TCollection,TResult](IEnumerable1 source, Func2 collectionSelector, Func3 resultSelector)+MoveNext()\ at Microsoft.Dynamics.Nav.Runtime.ResultSet.TryGetAtIndexWithoutBuffer(Int32 index, ReadOnlyRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.ResultSet.TryGetAtIndex(Int32 index, ReadOnlyRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.ResultSetEnumerator.TryGetRecordBufferFromResultSet(Int32 fetchIndex, MutableRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.ResultSetEnumerator.TryMoveNextImpl(MutableRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.Advance(Int32 steps, Boolean moveBackwards, Boolean automaticFindFromPositionOnInvalid, Boolean& resultSetValid, Int32 setSize)\ at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.NextRecord(Int32 steps, Int32 setSize)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.Next(Int32 steps, Int32 setSize)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.FillNormalFieldBuffer_Scope_1083277917.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.FillNormalFieldBuffer(INavRecordHandle tempField)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoWithGlobalDimsList_Scope_1929198965.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoWithGlobalDimsList(INavRecordHandle tempAllObjWithCaption)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoList_Scope_95850251.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoList(INavRecordHandle tempAllObjWithCaption)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.OnInvoke(Int32 memberId, Object[] args)\ at Microsoft.Dynamics.Nav.BusinessApplication.Record352.Table_ID_a45_OnValidate_Scope.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Record352.Table_ID_a45_OnValidate()\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.InvokeFieldTriggerHandler(FieldTriggerHandler1 handler)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.ValidateField(FieldTriggerHandler1 fieldEvent, NCLMetaField metaField, Boolean isUserInput, List1 beforeHandlers, List`1 afterHandlers)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.Validate(NCLMetaField metaField, NavValue newValue, NavRecord callerRecord, Boolean isUserInput)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.ALValidateSafe(Int32 fieldNo, NavType expectedType, NavValue newValue)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimension_Scope_379278789.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimension(INavRecordHandle defaultDimension, Int32 tableID, NavCode no, NavCode dimensionCode, NavCode dimensionValueCode)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimensionItem_Scope1191324905.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimensionItem(INavRecordHandle defaultDimension, NavCode itemNo, NavCode dimensionCode, NavCode dimensionValueCode)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.OnInvoke(Int32 memberId, Object[] args)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.AddEntityDimensions_Scope_432247886.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.AddEntityDimensions(NavOption type, NavCode no)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.SetupComponents_Scope_348864718.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.SetupComponents(INavRecordHandle tempItem, INavRecordHandle tempResource, NavOption costingMethod, Int32 noOfItems, Int32 noOfResources, NavCode genProdPostingGroup, NavCode inventoryPostingGroup)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.CreateAssemblyList_Scope_974871824.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.CreateAssemblyList(NavOption costingMethod, NavCode parentItemNo, Boolean useBaseUnitOfMeasure, Int32 noOfItems, Int32 noOfResources, Int32 noOfTexts, Int32 qtyPerFactor, NavCode genProdPostingGroup, NavCode inventoryPostingGroup)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.OnInvoke(Int32 memberId, Object[] args)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.CreateAssemblyItem_Scope__2134258009.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.CreateAssemblyItem(NavScope γReturnValueParent, Int32 noOfComponents, Int32 quantityPer)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.ChangeParentTreeViewQuantityFirstView_Scope2062681474.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.ChangeParentTreeViewQuantityFirstView()

[warning]VRA Tree View:ChangeParentTreeViewQuantitySecondView: Unexpected CLR exception thrown.: System.NullReferenceException: Object reference not set to an instance of an object.\ at Microsoft.Dynamics.Nav.Runtime.NCLMetaEnum.LoadMetadata()\ at Microsoft.Dynamics.Nav.Runtime.NCLMetaApplicationObject.Populate()\ at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.GetMetaApplicationObjectInternal(ApplicationObjectId appObjectId, Boolean requireCompiled, Int32 appGroupId)\ at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.GetMetaApplicationObject(ApplicationObjectId appObjectId, Boolean requireCompiled, Int32 appGroupId)\ at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.TryGetMetaApplicationObject(ApplicationObjectId appObjectId, NCLMetaApplicationObject& metaApplicationObject, Boolean requireCompiled, Int32 appGroupId)\ at Microsoft.Dynamics.Nav.XmlMetadata.MetadataProvider.GetEnumMetadata(Int32 id)\ at Microsoft.Dynamics.Nav.Runtime.NCLFieldEnumMetadata.GetEnumMetadataFromMetadataProvider()\ at Microsoft.Dynamics.Nav.Runtime.NCLFieldEnumBaseMetadata.GetAppGroupAwareEnumMetadata()\ at Microsoft.Dynamics.Nav.Runtime.NCLFieldEnumBaseMetadata.get_OptionString()\ at Microsoft.Dynamics.Nav.Runtime.FieldDataProvider.GetOptionString(NCLMetaField field)\ at Microsoft.Dynamics.Nav.Runtime.FieldDataProvider.GetFieldRecordBuffer(NavInteger tableNo, NavText tableName, NCLMetaField field, ValueTuple2 ids)\ at Microsoft.Dynamics.Nav.Runtime.FieldDataProvider.GetFieldsOnTable(NavInteger tableNo, NavText tableName, Range range, SortOrder sortOrder, FilterFieldDictionary nonPrimaryKeyFilters)+MoveNext()\ at System.Linq.Enumerable.SelectManyIterator[TSource,TCollection,TResult](IEnumerable1 source, Func2 collectionSelector, Func3 resultSelector)+MoveNext()\ at System.Linq.Enumerable.SelectManyIterator[TSource,TCollection,TResult](IEnumerable1 source, Func2 collectionSelector, Func3 resultSelector)+MoveNext()\ at Microsoft.Dynamics.Nav.Runtime.ResultSet.TryGetAtIndexWithoutBuffer(Int32 index, ReadOnlyRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.ResultSet.TryGetAtIndex(Int32 index, ReadOnlyRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.ResultSetEnumerator.TryGetRecordBufferFromResultSet(Int32 fetchIndex, MutableRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.ResultSetEnumerator.TryMoveNextImpl(MutableRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.Advance(Int32 steps, Boolean moveBackwards, Boolean automaticFindFromPositionOnInvalid, Boolean& resultSetValid, Int32 setSize)\ at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.NextRecord(Int32 steps, Int32 setSize)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.Next(Int32 steps, Int32 setSize)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.FillNormalFieldBuffer_Scope_1083277917.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.FillNormalFieldBuffer(INavRecordHandle tempField)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoWithGlobalDimsList_Scope_1929198965.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoWithGlobalDimsList(INavRecordHandle tempAllObjWithCaption)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoList_Scope_95850251.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoList(INavRecordHandle tempAllObjWithCaption)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.OnInvoke(Int32 memberId, Object[] args)\ at Microsoft.Dynamics.Nav.BusinessApplication.Record352.Table_ID_a45_OnValidate_Scope.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Record352.Table_ID_a45_OnValidate()\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.InvokeFieldTriggerHandler(FieldTriggerHandler1 handler)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.ValidateField(FieldTriggerHandler1 fieldEvent, NCLMetaField metaField, Boolean isUserInput, List1 beforeHandlers, List`1 afterHandlers)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.Validate(NCLMetaField metaField, NavValue newValue, NavRecord callerRecord, Boolean isUserInput)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.ALValidateSafe(Int32 fieldNo, NavType expectedType, NavValue newValue)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimension_Scope_379278789.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimension(INavRecordHandle defaultDimension, Int32 tableID, NavCode no, NavCode dimensionCode, NavCode dimensionValueCode)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimensionItem_Scope1191324905.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimensionItem(INavRecordHandle defaultDimension, NavCode itemNo, NavCode dimensionCode, NavCode dimensionValueCode)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.OnInvoke(Int32 memberId, Object[] args)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.AddEntityDimensions_Scope_432247886.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.AddEntityDimensions(NavOption type, NavCode no)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.SetupComponents_Scope_348864718.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.SetupComponents(INavRecordHandle tempItem, INavRecordHandle tempResource, NavOption costingMethod, Int32 noOfItems, Int32 noOfResources, NavCode genProdPostingGroup, NavCode inventoryPostingGroup)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.CreateAssemblyList_Scope_974871824.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.CreateAssemblyList(NavOption costingMethod, NavCode parentItemNo, Boolean useBaseUnitOfMeasure, Int32 noOfItems, Int32 noOfResources, Int32 noOfTexts, Int32 qtyPerFactor, NavCode genProdPostingGroup, NavCode inventoryPostingGroup)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.OnInvoke(Int32 memberId, Object[] args)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.CreateAssemblyItem_Scope__2134258009.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.CreateAssemblyItem(NavScope γReturnValueParent, Int32 noOfComponents, Int32 quantityPer)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.ChangeParentTreeViewQuantitySecondView_Scope268187638.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.ChangeParentTreeViewQuantitySecondView()

[warning]VRA Tree View:ChangeSalesLineQty: Unexpected CLR exception thrown.: System.NullReferenceException: Object reference not set to an instance of an object.\ at Microsoft.Dynamics.Nav.Runtime.NCLMetaEnum.LoadMetadata()\ at Microsoft.Dynamics.Nav.Runtime.NCLMetaApplicationObject.Populate()\ at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.GetMetaApplicationObjectInternal(ApplicationObjectId appObjectId, Boolean requireCompiled, Int32 appGroupId)\ at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.GetMetaApplicationObject(ApplicationObjectId appObjectId, Boolean requireCompiled, Int32 appGroupId)\ at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.TryGetMetaApplicationObject(ApplicationObjectId appObjectId, NCLMetaApplicationObject& metaApplicationObject, Boolean requireCompiled, Int32 appGroupId)\ at Microsoft.Dynamics.Nav.XmlMetadata.MetadataProvider.GetEnumMetadata(Int32 id)\ at Microsoft.Dynamics.Nav.Runtime.NCLFieldEnumMetadata.GetEnumMetadataFromMetadataProvider()\ at Microsoft.Dynamics.Nav.Runtime.NCLFieldEnumBaseMetadata.GetAppGroupAwareEnumMetadata()\ at Microsoft.Dynamics.Nav.Runtime.NCLFieldEnumBaseMetadata.get_OptionString()\ at Microsoft.Dynamics.Nav.Runtime.FieldDataProvider.GetOptionString(NCLMetaField field)\ at Microsoft.Dynamics.Nav.Runtime.FieldDataProvider.GetFieldRecordBuffer(NavInteger tableNo, NavText tableName, NCLMetaField field, ValueTuple2 ids)\ at Microsoft.Dynamics.Nav.Runtime.FieldDataProvider.GetFieldsOnTable(NavInteger tableNo, NavText tableName, Range range, SortOrder sortOrder, FilterFieldDictionary nonPrimaryKeyFilters)+MoveNext()\ at System.Linq.Enumerable.SelectManyIterator[TSource,TCollection,TResult](IEnumerable1 source, Func2 collectionSelector, Func3 resultSelector)+MoveNext()\ at System.Linq.Enumerable.SelectManyIterator[TSource,TCollection,TResult](IEnumerable1 source, Func2 collectionSelector, Func3 resultSelector)+MoveNext()\ at Microsoft.Dynamics.Nav.Runtime.ResultSet.TryGetAtIndexWithoutBuffer(Int32 index, ReadOnlyRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.ResultSet.TryGetAtIndex(Int32 index, ReadOnlyRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.ResultSetEnumerator.TryGetRecordBufferFromResultSet(Int32 fetchIndex, MutableRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.ResultSetEnumerator.TryMoveNextImpl(MutableRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.Advance(Int32 steps, Boolean moveBackwards, Boolean automaticFindFromPositionOnInvalid, Boolean& resultSetValid, Int32 setSize)\ at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.NextRecord(Int32 steps, Int32 setSize)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.Next(Int32 steps, Int32 setSize)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.FillNormalFieldBuffer_Scope_1083277917.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.FillNormalFieldBuffer(INavRecordHandle tempField)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoWithGlobalDimsList_Scope_1929198965.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoWithGlobalDimsList(INavRecordHandle tempAllObjWithCaption)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoList_Scope_95850251.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoList(INavRecordHandle tempAllObjWithCaption)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.OnInvoke(Int32 memberId, Object[] args)\ at Microsoft.Dynamics.Nav.BusinessApplication.Record352.Table_ID_a45_OnValidate_Scope.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Record352.Table_ID_a45_OnValidate()\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.InvokeFieldTriggerHandler(FieldTriggerHandler1 handler)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.ValidateField(FieldTriggerHandler1 fieldEvent, NCLMetaField metaField, Boolean isUserInput, List1 beforeHandlers, List`1 afterHandlers)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.Validate(NCLMetaField metaField, NavValue newValue, NavRecord callerRecord, Boolean isUserInput)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.ALValidateSafe(Int32 fieldNo, NavType expectedType, NavValue newValue)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimension_Scope_379278789.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimension(INavRecordHandle defaultDimension, Int32 tableID, NavCode no, NavCode dimensionCode, NavCode dimensionValueCode)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimensionItem_Scope__1191324905.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimensionItem(INavRecordHandle defaultDimension, NavCode itemNo, NavCode dimensionCode, NavCode dimensionValueCode)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.OnInvoke(Int32 memberId, Object[] args)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.AddEntityDimensions_Scope_432247886.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.AddEntityDimensions(NavOption type, NavCode no)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.SetupComponents_Scope_348864718.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.SetupComponents(INavRecordHandle tempItem, INavRecordHandle tempResource, NavOption costingMethod, Int32 noOfItems, Int32 noOfResources, NavCode genProdPostingGroup, NavCode inventoryPostingGroup)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.CreateAssemblyList_Scope_974871824.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.CreateAssemblyList(NavOption costingMethod, NavCode parentItemNo, Boolean useBaseUnitOfMeasure, Int32 noOfItems, Int32 noOfResources, Int32 noOfTexts, Int32 qtyPerFactor, NavCode genProdPostingGroup, NavCode inventoryPostingGroup)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.OnInvoke(Int32 memberId, Object[] args)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.CreateAssemblyItem_Scope__2134258009.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.CreateAssemblyItem(NavScope γReturnValueParent, Int32 noOfComponents, Int32 quantityPer)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.ChangeSalesLineQty_Scope_1999548540.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.ChangeSalesLineQty()

[warning]VRA Tree View:ChangePricesOfChilds: Unexpected CLR exception thrown.: System.NullReferenceException: Object reference not set to an instance of an object.\ at Microsoft.Dynamics.Nav.Runtime.NCLMetaEnum.LoadMetadata()\ at Microsoft.Dynamics.Nav.Runtime.NCLMetaApplicationObject.Populate()\ at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.GetMetaApplicationObjectInternal(ApplicationObjectId appObjectId, Boolean requireCompiled, Int32 appGroupId)\ at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.GetMetaApplicationObject(ApplicationObjectId appObjectId, Boolean requireCompiled, Int32 appGroupId)\ at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.TryGetMetaApplicationObject(ApplicationObjectId appObjectId, NCLMetaApplicationObject& metaApplicationObject, Boolean requireCompiled, Int32 appGroupId)\ at Microsoft.Dynamics.Nav.XmlMetadata.MetadataProvider.GetEnumMetadata(Int32 id)\ at Microsoft.Dynamics.Nav.Runtime.NCLFieldEnumMetadata.GetEnumMetadataFromMetadataProvider()\ at Microsoft.Dynamics.Nav.Runtime.NCLFieldEnumBaseMetadata.GetAppGroupAwareEnumMetadata()\ at Microsoft.Dynamics.Nav.Runtime.NCLFieldEnumBaseMetadata.get_OptionString()\ at Microsoft.Dynamics.Nav.Runtime.FieldDataProvider.GetOptionString(NCLMetaField field)\ at Microsoft.Dynamics.Nav.Runtime.FieldDataProvider.GetFieldRecordBuffer(NavInteger tableNo, NavText tableName, NCLMetaField field, ValueTuple2 ids)\ at Microsoft.Dynamics.Nav.Runtime.FieldDataProvider.GetFieldsOnTable(NavInteger tableNo, NavText tableName, Range range, SortOrder sortOrder, FilterFieldDictionary nonPrimaryKeyFilters)+MoveNext()\ at System.Linq.Enumerable.SelectManyIterator[TSource,TCollection,TResult](IEnumerable1 source, Func2 collectionSelector, Func3 resultSelector)+MoveNext()\ at System.Linq.Enumerable.SelectManyIterator[TSource,TCollection,TResult](IEnumerable1 source, Func2 collectionSelector, Func3 resultSelector)+MoveNext()\ at Microsoft.Dynamics.Nav.Runtime.ResultSet.TryGetAtIndexWithoutBuffer(Int32 index, ReadOnlyRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.ResultSet.TryGetAtIndex(Int32 index, ReadOnlyRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.ResultSetEnumerator.TryGetRecordBufferFromResultSet(Int32 fetchIndex, MutableRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.ResultSetEnumerator.TryMoveNextImpl(MutableRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.Advance(Int32 steps, Boolean moveBackwards, Boolean automaticFindFromPositionOnInvalid, Boolean& resultSetValid, Int32 setSize)\ at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.NextRecord(Int32 steps, Int32 setSize)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.Next(Int32 steps, Int32 setSize)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.FillNormalFieldBuffer_Scope_1083277917.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.FillNormalFieldBuffer(INavRecordHandle tempField)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoWithGlobalDimsList_Scope_1929198965.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoWithGlobalDimsList(INavRecordHandle tempAllObjWithCaption)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoList_Scope_95850251.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoList(INavRecordHandle tempAllObjWithCaption)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.OnInvoke(Int32 memberId, Object[] args)\ at Microsoft.Dynamics.Nav.BusinessApplication.Record352.Table_ID_a45_OnValidate_Scope.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Record352.Table_ID_a45_OnValidate()\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.InvokeFieldTriggerHandler(FieldTriggerHandler1 handler)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.ValidateField(FieldTriggerHandler1 fieldEvent, NCLMetaField metaField, Boolean isUserInput, List1 beforeHandlers, List`1 afterHandlers)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.Validate(NCLMetaField metaField, NavValue newValue, NavRecord callerRecord, Boolean isUserInput)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.ALValidateSafe(Int32 fieldNo, NavType expectedType, NavValue newValue)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimension_Scope_379278789.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimension(INavRecordHandle defaultDimension, Int32 tableID, NavCode no, NavCode dimensionCode, NavCode dimensionValueCode)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimensionItem_Scope__1191324905.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimensionItem(INavRecordHandle defaultDimension, NavCode itemNo, NavCode dimensionCode, NavCode dimensionValueCode)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.OnInvoke(Int32 memberId, Object[] args)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.AddEntityDimensions_Scope_432247886.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.AddEntityDimensions(NavOption type, NavCode no)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.SetupComponents_Scope_348864718.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.SetupComponents(INavRecordHandle tempItem, INavRecordHandle tempResource, NavOption costingMethod, Int32 noOfItems, Int32 noOfResources, NavCode genProdPostingGroup, NavCode inventoryPostingGroup)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.CreateAssemblyList_Scope_974871824.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.CreateAssemblyList(NavOption costingMethod, NavCode parentItemNo, Boolean useBaseUnitOfMeasure, Int32 noOfItems, Int32 noOfResources, Int32 noOfTexts, Int32 qtyPerFactor, NavCode genProdPostingGroup, NavCode inventoryPostingGroup)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.OnInvoke(Int32 memberId, Object[] args)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.CreateAssemblyItem_Scope__2134258009.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.CreateAssemblyItem(NavScope γReturnValueParent, Int32 noOfComponents, Int32 quantityPer)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.ChangePricesOfChilds_Scope_268546460.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.ChangePricesOfChilds()

[warning]VRA Tree View:ImportDetailFromOtherDetail: Unexpected CLR exception thrown.: System.NullReferenceException: Object reference not set to an instance of an object.\ at Microsoft.Dynamics.Nav.Runtime.NCLMetaEnum.LoadMetadata()\ at Microsoft.Dynamics.Nav.Runtime.NCLMetaApplicationObject.Populate()\ at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.GetMetaApplicationObjectInternal(ApplicationObjectId appObjectId, Boolean requireCompiled, Int32 appGroupId)\ at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.GetMetaApplicationObject(ApplicationObjectId appObjectId, Boolean requireCompiled, Int32 appGroupId)\ at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.TryGetMetaApplicationObject(ApplicationObjectId appObjectId, NCLMetaApplicationObject& metaApplicationObject, Boolean requireCompiled, Int32 appGroupId)\ at Microsoft.Dynamics.Nav.XmlMetadata.MetadataProvider.GetEnumMetadata(Int32 id)\ at Microsoft.Dynamics.Nav.Runtime.NCLFieldEnumMetadata.GetEnumMetadataFromMetadataProvider()\ at Microsoft.Dynamics.Nav.Runtime.NCLFieldEnumBaseMetadata.GetAppGroupAwareEnumMetadata()\ at Microsoft.Dynamics.Nav.Runtime.NCLFieldEnumBaseMetadata.get_OptionString()\ at Microsoft.Dynamics.Nav.Runtime.FieldDataProvider.GetOptionString(NCLMetaField field)\ at Microsoft.Dynamics.Nav.Runtime.FieldDataProvider.GetFieldRecordBuffer(NavInteger tableNo, NavText tableName, NCLMetaField field, ValueTuple2 ids)\ at Microsoft.Dynamics.Nav.Runtime.FieldDataProvider.GetFieldsOnTable(NavInteger tableNo, NavText tableName, Range range, SortOrder sortOrder, FilterFieldDictionary nonPrimaryKeyFilters)+MoveNext()\ at System.Linq.Enumerable.SelectManyIterator[TSource,TCollection,TResult](IEnumerable1 source, Func2 collectionSelector, Func3 resultSelector)+MoveNext()\ at System.Linq.Enumerable.SelectManyIterator[TSource,TCollection,TResult](IEnumerable1 source, Func2 collectionSelector, Func3 resultSelector)+MoveNext()\ at Microsoft.Dynamics.Nav.Runtime.ResultSet.TryGetAtIndexWithoutBuffer(Int32 index, ReadOnlyRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.ResultSet.TryGetAtIndex(Int32 index, ReadOnlyRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.ResultSetEnumerator.TryGetRecordBufferFromResultSet(Int32 fetchIndex, MutableRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.ResultSetEnumerator.TryMoveNextImpl(MutableRecordBuffer& recordBuffer)\ at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.Advance(Int32 steps, Boolean moveBackwards, Boolean automaticFindFromPositionOnInvalid, Boolean& resultSetValid, Int32 setSize)\ at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.NextRecord(Int32 steps, Int32 setSize)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.Next(Int32 steps, Int32 setSize)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.FillNormalFieldBuffer_Scope_1083277917.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.FillNormalFieldBuffer(INavRecordHandle tempField)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoWithGlobalDimsList_Scope_1929198965.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoWithGlobalDimsList(INavRecordHandle tempAllObjWithCaption)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoList_Scope_95850251.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.DefaultDimObjectNoList(INavRecordHandle tempAllObjWithCaption)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit408.OnInvoke(Int32 memberId, Object[] args)\ at Microsoft.Dynamics.Nav.BusinessApplication.Record352.Table_ID_a45_OnValidate_Scope.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Record352.Table_ID_a45_OnValidate()\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.InvokeFieldTriggerHandler(FieldTriggerHandler1 handler)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.ValidateField(FieldTriggerHandler1 fieldEvent, NCLMetaField metaField, Boolean isUserInput, List1 beforeHandlers, List`1 afterHandlers)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.Validate(NCLMetaField metaField, NavValue newValue, NavRecord callerRecord, Boolean isUserInput)\ at Microsoft.Dynamics.Nav.Runtime.NavRecord.ALValidateSafe(Int32 fieldNo, NavType expectedType, NavValue newValue)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimension_Scope_379278789.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimension(INavRecordHandle defaultDimension, Int32 tableID, NavCode no, NavCode dimensionCode, NavCode dimensionValueCode)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimensionItem_Scope__1191324905.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.CreateDefaultDimensionItem(INavRecordHandle defaultDimension, NavCode itemNo, NavCode dimensionCode, NavCode dimensionValueCode)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit131001.OnInvoke(Int32 memberId, Object[] args)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.AddEntityDimensions_Scope_432247886.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.AddEntityDimensions(NavOption type, NavCode no)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.SetupComponents_Scope_348864718.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.SetupComponents(INavRecordHandle tempItem, INavRecordHandle tempResource, NavOption costingMethod, Int32 noOfItems, Int32 noOfResources, NavCode genProdPostingGroup, NavCode inventoryPostingGroup)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.CreateAssemblyList_Scope_974871824.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.CreateAssemblyList(NavOption costingMethod, NavCode parentItemNo, Boolean useBaseUnitOfMeasure, Int32 noOfItems, Int32 noOfResources, Int32 noOfTexts, Int32 qtyPerFactor, NavCode genProdPostingGroup, NavCode inventoryPostingGroup)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit132207.OnInvoke(Int32 memberId, Object[] args)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.CreateAssemblyItem_Scope__2134258009.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.CreateAssemblyItem(NavScope γReturnValueParent, Int32 noOfComponents, Int32 quantityPer)\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.ImportDetailFromOtherDetail_Scope_1811795376.OnRun()\ at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()\ at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit80012.ImportDetailFromOtherDetail()

[error]*** Running Tests failed.

Id Name ComputerName ComputerType State ConfigurationName Availa bility


1 WinRM1 f62f9c11ffef633d3f162d5dd1cfde98c83ee89f41d7da1a9c825594a0cc0bad Container Opened ...ble

Finishing: Run Test Suite

The Yaml: parameters: test_suite: 'DEFAULT'

steps:

  • task: ALOpsAppTest@1 displayName: 'Run Test Suite' inputs: usedocker: true import_action: "Skip" import_testtoolkit: false testpage: '130455' testsuite: ${{ parameters.test_suite }} failed_test_action: 'Error' continueOnError: false

  • task: PublishTestResults@2 displayName: 'Publish Test Results' inputs: testResultsFormat: XUnit testResultsFiles: '**/TestResults.xml' failTaskOnFailedTests: true testRunTitle: 'BC Test Results: $(Build.BuildId)'

waldo1001 commented 10 months ago

Judging from the callstack, it seems "something" is wrong in terms of enums. So that makes me wonder whether the environment contains the right data / extensions. Something seems to be off.

May be build a complete new environment?

You can:

lorenzfleerackers commented 10 months ago

I figured out when i run this function from the "Dimension Library" image

I always get the same issue when the test are ran in the container, when i run them in the client is works fine.

It sounds like a bccontainerhelper issue, not?

Kind regards Lorenz

waldo1001 commented 10 months ago

Not sure .. it's "just" code. Can you test it with setting uw a container yourself with BCCH? Or - as said - you can just leave the container running on the build agent (disable the remove-step from the pipeline), and manually test in that container?

lorenzfleerackers commented 10 months ago

I don't have access to the build servers as we utilize them through ALOps. When I switch the artifact version to 22.5, everything functions correctly, indicating that the problem likely lies within the v23 artifact.

The weird thing is, that in the client itself it always works

Kind regards Lorenz

PeterConijn commented 10 months ago

I am encountering the same issue with our Latest Build pipeline (23.1); the issue does not occur on BC23.0 or earlier. Also it does not happen to every test (but it does to a lot of them). I have also pulled docker images manually (23.1 OnPrem and 23.1 SaaS) and when manually running the tests, the error does not occur.

Here is the YML. The event log is attached (tried inline, but comment length exceeded), and docker event log is attached as a zip.

name: $(Build.BuildId)
trigger:
  branches:
    include:
    - Dummy
variables:
- group: 'PipelineVariables'
resources:
  repositories:
  - repository: BuildTemplates
    name: ELC25/Templates
    type: Git
    ref: main
  pipelines:
  - pipeline: DyselSystem
    source: DYSEL-SYSTEM-DEV-LATEST
stages:
- stage: __default
  jobs:
  - job: ''
    pool:
      name: Dysel_Pool
    timeoutInMinutes: 150
    steps:
    - task: PowerShell@2
      displayName: "Remove all .app files from $(Agent.BuildDirectory) and sub folders"
      inputs:
        targetType: 'inline'
        script: Get-ChildItem -Path "$(Agent.BuildDirectory)" -Filter "*.app" -Recurse | Remove-Item -Force:$true -Confirm:$false -ErrorAction SilentlyContinue
        errorActionPreference: 'continue'
    - task: ALOpsDockerCreate@1
      displayName: 'ALOPS - Create Docker Image'
      inputs:
        artifactversion: ''
        artifacttype: OnPrem
        artifactcountry: W1
    - task: ALOpsDockerStart@1
      displayName: 'ALOPS - Start Docker Container'
    - task: ALOpsDockerWait@1
      displayName: 'ALOPS - Wait for Docker Container to start'
      inputs:
        search_string: 'Ready for connections!'
    - task: ALOpsLicenseImport@1
      displayName: 'ALOPS - Dev License Import'
      inputs:
        usedocker: true
        license_path: $(BCDevLicense-Latest)
    - task: ALOpsAppPublish@1
      displayName: 'ALOPS - Install AL TestTool'
      condition: True
      inputs:
        usedocker: true
        installaltesttool: true
        skip_verification: true
        install_al_app_names: |-
          Tests-TestLibraries
          System Application Test
          System Application Test Library
          Any
          Library Assert
          Test Runner
          Permissions Mock
          Library Variable Storage
    - task: DownloadPipelineArtifact@2
      displayName: Download Artifact - Dysel System App
      inputs:
        buildType: 'specific'
        project: ac10092a-8a1c-4b2f-be63-3473fa9d34e7
        definition: 48
        buildVersionToDownload: 'latest'
        itemPattern: '**/*_APP.app'
        targetPath: '$(Pipeline.Workspace)'
    - task: ALOpsAppPublish@1
      displayName: 'Publish: Dysel Apps'
      inputs:
        usedocker: true
        batch_publish_folder: '$(Pipeline.Workspace)'
        nav_artifact_app_filter: '*.app'
        skip_verification: true
      continueOnError: true
    - task: ALOpsAppCompiler@1
      displayName: 'ALOPS - Compile: Dysel W1 App'
      inputs:
        usedocker: true
        nav_app_version: 23.0.[yyyy]11.*
        targetproject: App/app-latest.json
        ruleset: https://[[REDACTED]]/development-rulesets/hidden-ruleset.json
        internalsvisibleto: Keep
        failed_on_warnings: false
        app_file_suffix: '_APP'
    - task: ALOpsAppPublish@1
      displayName: 'ALOPS - Publish: Dysel W1 App'
      inputs:
        usedocker: true
        nav_artifact_app_filter: '*_APP.app'
        skip_verification: true
    - task: ALOpsAppCompiler@1
      displayName: 'ALOPS - Compile: Dysel W1 Test Test-App'
      inputs:
        usedocker: true
        targetproject: Test/app.json
        nav_app_version: 23.0.[yyyy]11.*
        ruleset: 'https://[[REDACTED]]/development-rulesets/hidden-ruleset.json'
        failed_on_warnings: false
        app_file_suffix: '_TEST'
    - task: ALOpsAppPublish@1
      displayName: 'ALOPS - Publish: Dysel W1 Test Test App'
      inputs:
        usedocker: true
        nav_artifact_app_filter: '*_TEST.app'
        skip_verification: true
    - task: ALOpsAppTest@1
      displayName: 'ALOPS - Run TestSuite'
      inputs:
        usedocker: true
        import_action: "Skip"
        import_testtoolkit: false
        testpage: '130455'
        testsuite: DEFAULT
        failed_test_action: 'Error'
        show_available_tests: false
        disabledtests: Test/DisabledTests.json
      continueOnError: false
    - task: PublishTestResults@2
      displayName: 'Publish Test Results **/TestResults.xml'
      inputs:
        testResultsFormat: XUnit
        testResultsFiles: '**/TestResults.xml'
        testRunTitle: 'BC Test Results: $(Build.BuildId)'
    - task: CopyFiles@2
      displayName: 'Copy Test Artifacts to $(Agent.BuildDirectory)/TestResults'
      inputs:
        SourceFolder: '$(Build.Sourcesdirectory)'
        Contents: ?(TestResults.xml|)
        TargetFolder: '$(Agent.BuildDirectory)/TestResults'
    - task: PublishPipelineArtifact@1
      displayName: 'Publish Test Artifacts: TestResults.xml'
      inputs:
        targetPath: '$(Agent.BuildDirectory)/TestResults'
        artifact: 'TestResults'
        publishLocation: 'pipeline'
    - task: PowerShell@2
      displayName: "Create Output Folder"
      inputs:
        targetType: 'inline'
        script: New-Item -ItemType Directory -Force -Path "$(System.ArtifactsDirectory)\Technical" -ErrorAction SilentlyContinue
        errorActionPreference: 'continue'
    - task: ALOpsDockerRemove@1
      displayName: 'ALOPS - Remove Docker Container'
      enabled: true
      condition: always()
      inputs:
        createeventlogbackup: 'always'

[Uploading Build_Test_Log.txt…]() Docker_EventLog.zip

waldo1001 commented 10 months ago

WHat I would like to know if that it occurs in BCCH Run-TestsInBcContainer. Did anyone test that?

epernst commented 10 months ago

I got a very similar on error with 23.1 when running our tests (but some differences in the stack). I my case uninstalling the _Exclude Business Events app worked!

waldo1001 commented 10 months ago

I got a very similar on error with 23.1 when running our tests (but some differences in the stack). I my case uninstalling the _Exclude Business Events app worked!

Hm - interesting comment. Thanks, @epernst .

Can anyone try/confirm this?

PeterConijn commented 10 months ago

I will try once the developer that broke the test app last Friday fixes it >.<

epernst commented 10 months ago

There is a Yammer/Viva thread on it: https://www.yammer.com/dynamicsnavdev/#/Threads/show?threadId=2527632150896640

PeterConijn commented 10 months ago

Confirmed.

The thread that @epernst referred to in the post above mine does indeed list the cause. Apparently, there is an issue when multiple apps extend the External Business Event category enum. A hotfix is in the works at Microsoft.

In the meantime, adding the following snippet to your pipeline (after you create the docker container) should fix the issue.

- task: ALOpsDockerExec@1
  inputs:
    inline_script: |
      Uninstall-NavApp -ServerInstance BC -Name "_Exclude_Business_Events_"