Categories
Business Central Dynamics NAV Microsoft PowerShell

Import-NAVData : The specified file does not exist at the specified location

I was trying to import NAV data using PowerShell but received the following error message:

Import-NAVData : The specified file does not exist at the specified location

Solution:

If the file path is in a user-specific folder (e.g. in the Desktop), move it under C drive.

Syntax used:

Import-NAVData -ServerInstance BC -CompanyName "My Company" -IncludeGlobalData -FilePath "C:\Company.navdata"

Did my solution solve your problem? Leave a reply.

Categories
Microsoft PowerShell

Update-Module : A parameter cannot be found that matches parameter name ‘AllowPrerelease’

I was updating BcContainerHelper PowerShell module from version from 1.0.8 to 1.0.9 when I received the following error message

##[error]Update-Module : A parameter cannot be found that matches parameter name ‘AllowPrerelease’.

Solution:
Run PowerShell as Administrator and execute the following command

Install-Module -Name PowerShellGet -Repository PSGallery -Force  

If this message was received in a DevOps build Pipeline, then you need to execute it in the server where the Agent is installed.

Did my solution solve your problem? Leave a reply.