New-NAVAppPackage : Cannot add the Action Trigger to Page 256

Divya
Divya Member Posts: 125
Dear All,

Please help to find out the reason of below error,

PowerShell Command :

New-NAVAppManifest -Name "MyExtension" -Publisher "test.com" -Version "1.0.0.0" | New-NAVAppPackage -Path ".\MyExtension.navx" -SourcePath "\MyIntegration\Delta"

Error Shows:

New-NAVAppPackage : Cannot add the Action Trigger to Page 256.
Cannot add the Variable Test to Page 256.
At line:1 char:141
+ New-NAVAppManifest -Name "MyExtension" -Description " ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (Microsoft.Dynam...ewNavAppPackage:NewNavAppPackage) [New-NAVAppPackage], InvalidOperationExcept
ion
+ FullyQualifiedErrorId : Microsoft.Dynamics.Nav.Apps.Tools.NewNavAppPackage

I'm trying to add Action button in the Payment journal screen. Please give us your suggestions to resolve this error.

Note : 1. Variable is not local variable

2. Able to add new table/new page

3. Able to add fields in existing table as well.
Victory is sweetest when you've known defeat

Answers

  • DenSter
    DenSter Member Posts: 8,307
    That's extensions v1, you should not be using those anymore. If I remember correctly, you were not allowed to have any code in added actions. The only thing you were allowed to do in actions is run objects directly.