Extention error - while publishing the app from VS Code
Hi,
While creating an extension for one of our NAV component. The package is created successfully but when i try to publish the app from VS, i am facing the below error. Can any one help on this.

Thanks & Regards Nagaraju
@Nagaraju17 Is this the September vm with docker?
Hi,
No it is August Update.
You are apparently using a data type that Nav does not support. mhmm.
Is that a nav in the docker container?
CAn you look up the eventviewer where the server runs. There may be other events related.
HI, i could not find any related information.

In a Calc FlowField, you use a statement that is not supported. If you post the whole message from the event view, I might be able to tell you where ;)
Hi, Please find the full Message from Event Viewer.
Server instance: NAV
Category: Extensions
ClientSessionId: 00000000-0000-0000-0000-000000000000
ClientActivityId: 00000000-0000-0000-0000-000000000000
ServerSessionUniqueId: 00000000-0000-0000-0000-000000000000
ServerActivityId: 00000000-0000-0000-0000-000000000000
EventTime: 09/08/2017 13:02:24
Message 2 dataItemsCreator, Func2 orderBysCreator)
at Microsoft.Dynamics.Nav.Runtime.NCLMetaQuery.<>c__DisplayClass34_0.2 subQueryCreator, String name, Func2 queryColumnsCreator, Func2 dataItemLinksCreator, Int32 appGroup)
at Microsoft.Dynamics.Nav.Runtime.NCLMetaQuery.CreateSubQueryForFlowFieldCalculation(NCLMetaQueryDataItem baseDataItem, MetaQueryColumn flowFieldColumn, Int32 nextColumnId)
at Microsoft.Dynamics.Nav.Runtime.NCLMetaQuery.CreateDataItemsFromDesignMetadata(NCLMetaQueryDefinition parentQueryDefinition, MetaQuery metaQuery, Boolean allowExpressionEvaluation, Boolean& tableFilterHasVariables)
at Microsoft.Dynamics.Nav.Runtime.NCLMetaQuery.<>c__DisplayClass37_1.<ParseMetadata>b__0(NCLMetaQueryDefinition queryDefinitionBeingCreated)
at Microsoft.Dynamics.Nav.Runtime.NCLMetaQueryDefinition..ctor(NCLMetaQueryDataItem parentDataItem, Int32 topRows, Func2 dataItemsCreator, Func2 orderBysCreator)
at Microsoft.Dynamics.Nav.Runtime.NCLMetaQuery.ParseMetadata(MetaQuery metaQuery, Boolean allowExpressionEvaluation)
at Microsoft.Dynamics.Nav.Runtime.NCLMetaQuery.LoadMetadata()
at Microsoft.Dynamics.Nav.Runtime.NCLMetaApplicationObject.Populate()
at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.InitializeAppGroupNewObject(NavAppGroup appGroup, NavAppGroupObjectMetadataSummary newObjectSummary)
at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.InitializeNewAppQueries(NavAppGroup appGroup, PerformanceLog perfLog, IReadOnlyList1 newObjectsFromApps)
at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.InitializeAppGroup(NavAppGroup appGroup)
CallerStackTrace:
at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.InitializeAppGroup(NavAppGroup appGroup)
at Microsoft.Dynamics.Nav.Runtime.Apps.NavAppGroupUpdater.PrepareAppGroups(NavAppGroups groups, PerformanceLog performanceLog)
at Microsoft.Dynamics.Nav.Runtime.NavManagementTasks.PrepareAllAppGroupsForInstallChain(NavAppInstallPreCheckHelper precheckResult, PerformanceLog outerPerfLog)
at Microsoft.Dynamics.Nav.Runtime.NavManagementTasks.InternalInstallNavApp(NavAppInstallPreCheckHelper precheckResult, String name, NavTenant tenant, Boolean doNotLoadData, String activityId, PerformanceLog outerPerfLog)
at Microsoft.Dynamics.Nav.Runtime.NavManagementTasks.<>c__DisplayClass22_0.2 action, Boolean throwExceptions, Boolean useCurrentCulture, Boolean allowAppsDisabledMode)
at Microsoft.Dynamics.Nav.Runtime.NavManagementTasks.<>c__DisplayClass22_0.<InstallNavApp>b__0()
at Microsoft.Dynamics.Nav.Runtime.NavManagementTasks.InstallNavApp(InstallNavAppArguments installNavAppArguments, Boolean async)
at Microsoft.Dynamics.Nav.Service.NSAdminService.<>c__DisplayClass51_0.<Microsoft.Dynamics.Nav.Types.INCLAdminService.InstallNavApp>b__0()
at Microsoft.Dynamics.Nav.Runtime.Apps.NavAppDiagnosticSession.<>c__DisplayClass1_01.1 operation, String additionalInfo, String callerName)
at Microsoft.Dynamics.Nav.Service.Dev.DevService.<>c__DisplayClass4_1.<PublishAndInstallExtension>b__0()
at Microsoft.Dynamics.Nav.Service.Dev.DevService.PublishAndInstallExtension(NavSession session, Stream packageStream, PerformanceLog performanceLog)
at Microsoft.Dynamics.Nav.Service.Dev.Web.Controllers.AppsController.<PublishAndInstall>d__0.MoveNext()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task1.TrySetResult(TResult result)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.SetResult(TResult result)
at System.Net.Http.HttpContentMultipartExtensions.<ReadAsMultipartAsync>d__01.MoveNext()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task1.TrySetResult(TResult result)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.SetResult(TResult result)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.SetResult(Task1 completedTask)
at System.Net.Http.HttpContentMultipartExtensions.1.TrySetResult(TResult result)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.SetResult(TResult result)
at Microsoft.Owin.Host.HttpListener.RequestProcessing.ExceptionFilterStream.1.TrySetResult(TResult result)
at System.Threading.Tasks.TaskFactory1.FromAsyncTrimPromise1.Complete(TInstance thisRef, Func3 endMethod, IAsyncResult asyncResult, Boolean requiresSynchronization)
at System.Threading.Tasks.TaskFactory1.FromAsyncTrimPromise1.CompleteFromAsyncResult(IAsyncResult asyncResult)
at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
at System.Net.HttpRequestStream.HttpRequestStreamAsyncResult.IOCompleted(HttpRequestStreamAsyncResult asyncResult, UInt32 errorCode, UInt32 numBytes)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
ProcessId: 1064 Tag: 000009W ThreadId: 30 CounterInformation:
The issue is as mentioned above is that it looks like your calcformula is not supported. That can be by design or it could be a bug. Without seeing your formula it is hard to say.
Hi,
How we can know from which table is getting this error. How we can track this any suggestions..
You'd need to try and narrow down the problem to a smaller subset of objects, ideally to a single table. From our side we will look at this stack trace in our telemetry and see if anything can be done.
Closing this issue due to inactivity. Please log a new issue with a more detailed repro if you're still hitting the same problem.