AL icon indicating copy to clipboard operation
AL copied to clipboard

Extention error - while publishing the app from VS Code

Open Nagaraju17 opened this issue 9 years ago • 11 comments

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.

image

Thanks & Regards Nagaraju

Nagaraju17 avatar Sep 08 '17 12:09 Nagaraju17

@Nagaraju17 Is this the September vm with docker?

Gallimathias avatar Sep 08 '17 12:09 Gallimathias

Hi,

No it is August Update.

bachii1010 avatar Sep 08 '17 12:09 bachii1010

You are apparently using a data type that Nav does not support. mhmm.

Is that a nav in the docker container?

Gallimathias avatar Sep 08 '17 12:09 Gallimathias

CAn you look up the eventviewer where the server runs. There may be other events related.

kalberes avatar Sep 08 '17 12:09 kalberes

HI, i could not find any related information.

image

Nagaraju17 avatar Sep 08 '17 13:09 Nagaraju17

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 ;)

Gallimathias avatar Sep 08 '17 13:09 Gallimathias

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 (NavNotSupportedException): Exception of type 'Microsoft.Dynamics.Nav.Types.Exceptions.NavNotSupportedException' was thrown. ExceptionStackTrace: at Microsoft.Dynamics.Nav.Runtime.NCLMetaQuery.<>c__DisplayClass34_0.b__1(NCLMetaQueryDefinition subQueryBeingCreated) at Microsoft.Dynamics.Nav.Runtime.NCLMetaQueryDefinition..ctor(NCLMetaQueryDataItem parentDataItem, Int32 topRows, Func2 dataItemsCreator, Func2 orderBysCreator) at Microsoft.Dynamics.Nav.Runtime.NCLMetaQuery.<>c__DisplayClass34_0.b__0(NCLMetaQueryDataItem dataItemBeingCreated) at Microsoft.Dynamics.Nav.Runtime.NCLMetaQueryDataItem..ctor(NCLMetaQueryDefinition parentQueryDefinition, DataItemLinkType dataItemLinkType, Func2 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.b__1(NavTenant tenant, NavSession session) at Microsoft.Dynamics.Nav.Runtime.NavTenant.Microsoft.Dynamics.Nav.Runtime.ITenantSessionHandler.RunTenantActionInSystemSession(Action2 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.b__0() at Microsoft.Dynamics.Nav.Runtime.Apps.NavAppDiagnosticSession.SendTraceTagOnFailure(Action operation, String additionalInfo, String callerName) at Microsoft.Dynamics.Nav.Runtime.Apps.NavAppDiagnosticSession.SendTraceTagOnFailure[T](Func1 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.d__8.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 Microsoft.Owin.Host.HttpListener.RequestProcessing.ExceptionFilterStream.d__3.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.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:

Nagaraju17 avatar Sep 11 '17 05:09 Nagaraju17

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.

kalberes avatar Sep 11 '17 12:09 kalberes

Hi,

How we can know from which table is getting this error. How we can track this any suggestions..

Nagaraju17 avatar Sep 12 '17 07:09 Nagaraju17

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.

StanislawStempin avatar Oct 05 '17 07:10 StanislawStempin

Closing this issue due to inactivity. Please log a new issue with a more detailed repro if you're still hitting the same problem.

StanislawStempin avatar Jan 03 '18 14:01 StanislawStempin