Repair-NAVApp
Repairs a NAV App by recompiling it against the current base application. Use this cmdlet if the base application has changed since publishing the NAV App. It is recommended that the NAV Server instance is restarted after running the repair.
Syntax
Repair-NAVApp
[-ServerInstance] <String>
[-Name] <String>
[[-Publisher] <String>]
[[-Version] <Version>]
[<CommonParameters>]
Description
Use the Repair-NAVApp cmdlet to recompile a NAV App that has been published in the app catalog of the specified Business Central Server instance.
If you have deployed your NAV database to Azure SQL Database, you will need to create a new database to use as the sandbox for completing the publishing process. Use the SandboxDatabaseName, SandboxDatabaseServer, and SandboxDatabaseCredentials parameters to specify the connection information for the database to use as the sandbox.
Examples
EXAMPLE 1
Repair-NAVApp -ServerInstance DynamicsNAV90 -Name 'Proseware SmartApp' -Version 2.3.4.500
This example repairs the NAV App with a name of Proseware SmartApp and version of 2.3.4.500.
EXAMPLE 2
Get-NAVAppInfo -ServerInstance DynamicsNAV90 | Repair-NAVApp
This example repairs all of the NAV Apps in the DynamicsNAV90 server instance's app catalog.
Parameters
Specifies the name of the NAV App to be repaired.
The search must return only a single NAV App to successfully repair.
Type: | String |
Position: | 20 |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies the publisher of the NAV App to be repaired.
The results must return only a single NAV App to successfully repair.
Type: | String |
Position: | 21 |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies the Business Central Server instance for which the NAV App should be repaired, such as BC.
Type: | String |
Position: | 0 |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies the version of the NAV App to be repaired.
The results must return only a single NAV App to successfully repair.
Type: | Version |
Position: | 22 |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |