Options

NAV Extension: Publish NAV App with Power shell ISE

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:

5i281w3ind45.png

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

Please help i will be thankful to you :)





Best Regards
Zohaib Ahmed
Dynamics NAV ERP Technical Consultant.

please like / agree / verify my answer, if it was helpful for you. thanks.

Best Answer

  • Options
    zohaibu95@hotmail.comzohaibu95@hotmail.com Member Posts: 223
    Answer ✓
    Issue resolved by myself.
    Issue is of Caption ML, there was some invalid characters in it.

    If anyone face this error, make sure to use Event viewer.
    Best Regards
    Zohaib Ahmed
    Dynamics NAV ERP Technical Consultant.

    please like / agree / verify my answer, if it was helpful for you. thanks.

Answers

  • Options
    zohaibu95@hotmail.comzohaibu95@hotmail.com Member Posts: 223
    @mohana_cse06 if you can help?
    Best Regards
    Zohaib Ahmed
    Dynamics NAV ERP Technical Consultant.

    please like / agree / verify my answer, if it was helpful for you. thanks.
  • Options
    mohana_cse06mohana_cse06 Member Posts: 5,503
    Please use below parameter to identify the issues
    -LogPath<String>
    Specifies the path where you want to save the log file for any potential publication errors. If the file exists, any errors are added to the log file.
  • Options
    zohaibu95@hotmail.comzohaibu95@hotmail.com Member Posts: 223
    I tried @mohana_cse06 with the log file as well. But in this case log file is not generating. What to do now?
    Best Regards
    Zohaib Ahmed
    Dynamics NAV ERP Technical Consultant.

    please like / agree / verify my answer, if it was helpful for you. thanks.
  • Options
    mohana_cse06mohana_cse06 Member Posts: 5,503
    Did you try double quotes in Path? "C:\......"?
    may be also for ServerInstance
  • Options
    zohaibu95@hotmail.comzohaibu95@hotmail.com Member Posts: 223
    @mohana_cse06 i did for both unfortunately no luck.
    Best Regards
    Zohaib Ahmed
    Dynamics NAV ERP Technical Consultant.

    please like / agree / verify my answer, if it was helpful for you. thanks.
  • Options
    zohaibu95@hotmail.comzohaibu95@hotmail.com Member Posts: 223
    @mohana_cse06 do you know how to fix this?
    Best Regards
    Zohaib Ahmed
    Dynamics NAV ERP Technical Consultant.

    please like / agree / verify my answer, if it was helpful for you. thanks.
  • Options
    zohaibu95@hotmail.comzohaibu95@hotmail.com Member Posts: 223
    edited 2017-07-25
    @mohana_cse06 i have looked into event viewer and see this exception

    - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"&gt;
    - <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>
    Best Regards
    Zohaib Ahmed
    Dynamics NAV ERP Technical Consultant.

    please like / agree / verify my answer, if it was helpful for you. thanks.
  • Options
    zohaibu95@hotmail.comzohaibu95@hotmail.com Member Posts: 223
    Answer ✓
    Issue resolved by myself.
    Issue is of Caption ML, there was some invalid characters in it.

    If anyone face this error, make sure to use Event viewer.
    Best Regards
    Zohaib Ahmed
    Dynamics NAV ERP Technical Consultant.

    please like / agree / verify my answer, if it was helpful for you. thanks.
Sign In or Register to comment.