web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :

Fix & Run outdated NAV & BC containers

Divesh Profile Picture Divesh 327

When creating NAV/Business Central Containers from New-Navcontainer command, If you have not used this switch -accept_outdated, your container will not work after 90 days and will end up with this below message.

You are trying to run a container which is more than 90 days old.
Microsoft recommends that you always run the latest version of our containers.
Set the environment variable ACCEPT_OUTDATED to ‘Y’ if you want to run this container anyway.

To fix this up you need to update the “SetupVariables.ps1″ file in the container.

Open PowerShell with Run as administrator and execute the below commands.

Step 1: In Powershell

Enter-NavContainer D365BC


Step 2: 
In Powershell

Copy SetupVariables.ps1 C:\Run\my\


Step 3:

From the windows explorer navigate to the location “C:\ProgramData\NavContainerHelper\Extensions\D365BC\my”

Open the SetupVariables.ps1 and add the below-highlighted line $Accept_outdated = “Y” and then save the file.

$Accept_outdated = "$env:Accept_outdated"
$Accept_outdated = "Y"


Step 4: 
In Powershell

Copy C:\Run\My\SetupVariables.ps1 C:\Run\


Step 5:
In Powershell

Restart-NavContainer D365BC

I think there should be some easy way to run old containers but just thought of sharing this little information. Hope this helps to run your old containers so that you can recover some information from the container if any.


This was originally posted here.

Comments

*This post is locked for comments