Hi,
While creating '.navx package' during programming using extensions I get the following error
This is the command that I used:
PS C:\Users\cfadmin> New-NAVAppPackage -Manifest (Get-NAVAppManifest -Path C:\Backup_Tina\Extensions\Manifest file\Location.xml) -Path "C:\Backup_Tina\Extensions\NAVx package\MyLocation.navx" -SourcePath "C:\Backup_Tina\Extensions\Delta objects\"
The following is the error:
Get-NAVAppManifest : A positional parameter cannot be found that accepts argument 'file\Location.xml'.
At line:1 char:30
+ New-NAVAppPackage -Manifest (Get-NAVAppManifest -Path C:\Backup_Tina\Extensions\ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-NAVAppManifest], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.Dynamics.Nav.Apps.Tools.GetNavAppManifest
*This post is locked for comments
Thank you very much Mohana. Very easy fix for you but really difficult for me. I'm surprised by case sensitive rule and I overloked "NAV". I was focused to different topics, no idea about function names. Thank you once again. Issue is solved.
function names are case sensitive
OnNavAppUpgradePerDatabase
and
OnNavAppUpgradePerCompany
you have used capital NAV
Hello,
I have read all posts, I have created codeunit and 2 functions but I still get the error like was already mentioned.
The script and the error:
PS C:\WINDOWS\system32> Get-NAVAppManifest -Path 'C:\Temp\Exten\VitMal.xml' | New-NAVAppPackage -Path 'C:\Temp\Exten\VitMal_Exten.navx' -SourcePath 'C:\Temp\Exten\DELTA.txt' -Force -Verbose
VERBOSE: Performing the operation "New-NAVAppPackage" on target "Writing package file at C:\Temp\Exten\VitMal_Exten.navx".
New-NAVAppPackage : The package contains changes to the database schema that are not handled in upgrade code.
At line:1 char:55
+ ... tMal.xml' | New-NAVAppPackage -Path 'C:\Temp\Exten\VitMal_Exten.navx' ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (Microsoft.Dynam...ewNavAppPackage:NewNavAppPackage) [New-NAVAppPackage], InvalidOperationException
+ FullyQualifiedErrorId : Microsoft.Dynamics.Nav.Apps.Tools.NewNavAppPackage
The attached picture contains more information. I will appreciate any suggestion.
Hi all,
Yes, I face the same problem.
How much time does the app takes to publish?
Its been almost 24 hours yet my extension app isn't published ?
What is the solution to this?
Hi
It takes much time to publish the Extensions. even though waiting for 4 to 5 hours its displays running script.
Can someone tell me a solution to it.
Thank you.
-Chris
Hi all,
Thanks a lot. Your suggestions worked.
Thank you Mohana your suggestion worked.
Try
cmdlet :Publish-NAVApp -Path C:\Extensions\navxPackage\MyLocationExt.navx -ServerInstance DynamicsNAV100 –SkipVerification
Hi all,
Thanks to the above suggestions I was able to successfully create the .navx file but on further publishing the .navx file I am facing the following error on using the
cmdlet :Publish-NAVApp -Path C:\Extensions\navxPackage\MyLocationExt.navx -ServerInstance DynamicsNAV100
Error Message:
Publish-NAVApp : You cannot publish an extension that has not been code signed. To overrule this check and publish the unsigned extension, set the –SkipVerification parameter.
At line:1 char:1
Please suggest a solution to the above error. Thanks in advance.
Hi Tina,
Everything is already said by Yukon .
1. Change the Codeunit Type to Normal instead, upgrade.
2. If you are testing how extension work then you don't need to put code under these function, but if you are actually developing a re-sellable extension then follow the article suggested .
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156