Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

NAV Extension: Publish NAV App with Power shell ISE

Posted on by Microsoft Employee

Hi guys i am trying to create extension for Dynamics NAV 2017 using Delta files approach. I have successfully developed the package. Now when i try to publish the app using

Publish-NAVApp -ServerInstance MDC-Test -Path 'C:\EIE\MDC\x_ZA\Extensions Testing\VAKS.navx' -SkipVerification -Verbose

I got this error:

I have tried many approaches, searched on google but unfortunately no luck.

Please help i will be thankful to you

*This post is locked for comments

  • Verified answer
    Zaid Tariq Profile Picture
    Zaid Tariq 2,266 on at
    RE: NAV Extension: Publish NAV App with Power shell ISE

    There must be something wrong if you are using ML caption. Please have a look at them. This is due to ML caption parsing.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: NAV Extension: Publish NAV App with Power shell ISE

    @Mohana i have looked into event viewer and find this

    @mohana_cse06  i have looked into event viewer and see this exception

    [code]- <Event xmlns="schemas.microsoft.com/.../event&quot;>

    - <System>

     <Provider Name="Microsoft.Dynamics.Nav.Management.dll" />

     <EventID Qualifiers="0">0</EventID>

     <Level>2</Level>

     <Task>0</Task>

     <Keywords>0x80000000000000</Keywords>

     <TimeCreated SystemTime="2017-07-25T17:28:38.087873100Z" />

     <EventRecordID>591272</EventRecordID>

     <Channel>Application</Channel>

     <Computer>integration</Computer>

     <Security />

     </System>

    - <EventData>

     <Data>Type: System.AggregateException Message: <ii>One or more errors occurred.</ii> StackTrace: at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) 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 System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body) at Microsoft.Dynamics.Nav.Model.Tools.ReadWriteModelTool.<>c__DisplayClass13_0.<WriteApplicationObjects>b__0(IProgressLogger progress) at Microsoft.Dynamics.Nav.Model.Tools.ReadWriteModelTool.WriteApplicationObjects(IEnumerable`1 objects, String fileSpec, OutputType outputType) at Microsoft.Dynamics.Nav.Model.Tools.ModelChangeTool.UpdateApplicationObject(String[] target, String[] delta, String result, String targetName, String deltaName) at Microsoft.Dynamics.Nav.Apps.Management.Installation.AmuToolsInterop.UpdateApplicationObjects(String baselineDirectory, String packageFilesDirectory, String modifiedFilesDirectory) at Microsoft.Dynamics.Nav.Apps.Management.Installation.AppPublisher.<>c__DisplayClass0_0.<PublishAppFromPackage>b__13(SqlDatabaseSandbox sandbox) at Microsoft.Dynamics.Nav.Apps.Utility.ResultExtensions.OnSuccessUse[TIn](Result`1 input, Func`2 successApplicator) at Microsoft.Dynamics.Nav.Apps.Management.Installation.AppPublisher.PublishAppFromPackage(String packageFilePath, DatabaseConnectionInfo databaseConnectionInfo, Boolean overwrite, Int32 sqlTimeout, String logFile, String serviceAccount, DatabaseConnectionInfo destinationDatabaseConnectionInfo, String navIdeValue) at Microsoft.Dynamics.Nav.Apps.Management.Cmdlets.PublishNavApp.<>c__DisplayClass18_1.<Publish>b__3(DatabaseConnectionInfo sandboxInfo) at Microsoft.Dynamics.Nav.Apps.Management.Cmdlets.PublishNavApp.Publish() at Microsoft.Dynamics.Nav.Apps.Management.Cmdlets.PublishNavApp.InternalProcessRecord() at Microsoft.Dynamics.Nav.Management.NavCommand.ProcessRecord() Source: mscorlib HResult: -2146233088 ---------------------------------- Type: System.InvalidOperationException Message: <ii>Unable to parse DAN="Sælgernavn ENG=Sales Person Name as MLText. Open " found after language identifier DAN</ii> StackTrace: at Microsoft.Dynamics.Nav.Model.TypeSystem.ModelTextHelper.<MLTextSplitter>d__6.MoveNext() at System.Linq.Buffer`1..ctor(IEnumerable`1 source) at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext() at Microsoft.Dynamics.Nav.Model.TypeSystem.ModelTextHelper.<MLTextFormatter>d__7.MoveNext() at Microsoft.Dynamics.Nav.Model.IO.Txt.TxtExporter.WriteEmbracedProperty(IElement element, PropertyType propertyType) at Microsoft.Dynamics.Nav.Model.IO.Txt.TxtExporter.ExportPropertiesAndTriggers(IElement element, InlineItem[] inlineProperties, Char startWith, Int32 propIndent) at Microsoft.Dynamics.Nav.Model.IO.Txt.TxtExporter.<>c__DisplayClass24_0.<ExportContainment>b__0() at Microsoft.Dynamics.Nav.Model.IO.Txt.TxtExporter.WriteSection(String name, Action action) at Microsoft.Dynamics.Nav.Model.IO.Txt.TxtExporter.ExportParentElement(IElement element) at Microsoft.Dynamics.Nav.Model.IO.Txt.TxtExporter.<>c__DisplayClass12_0.<ExportObject>b__0() at Microsoft.Dynamics.Nav.Model.IO.Txt.TxtExporter.WriteSection(String name, Action action) at Microsoft.Dynamics.Nav.Model.IO.Txt.TxtExporter.ExportObject(ApplicationObject ao) at Microsoft.Dynamics.Nav.Model.IO.Txt.TxtExporter.ExportObjects(IEnumerable`1 applicationObjects, Stream stream, Action progressAction) at Microsoft.Dynamics.Nav.Model.Tools.ReadWriteModelTool.WriteApplicationObject(ApplicationObject appObj, String fileName, IProgressLogger progress) at Microsoft.Dynamics.Nav.Model.Tools.ReadWriteModelTool.<>c__DisplayClass13_1.<WriteApplicationObjects>b__1(ApplicationObject o) at System.Threading.Tasks.Parallel.<>c__DisplayClass42_0`2.<PartitionerForEachWorker>b__1() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object ) Source: Microsoft.Dynamics.Nav.Model.TypeSystem HResult: -2146233079</Data>

     </EventData>

     </Event>[/code]

    any help?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: NAV Extension: Publish NAV App with Power shell ISE

    Mohana Yadav i tried with double quotes, single quotes, change the path but unfortunately does not work. Any idea how to debug it? what is the actual issue? this is the main mystery.

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: NAV Extension: Publish NAV App with Power shell ISE

    Did you try double quotes in Path? "C:\......"?

    may be also for ServerInstance

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans