Hello,
I am trying to create a powershell script that will install Dynamics GP 2016 R2 from beginning to end on a Windows Server 2012 machine.
When I try to use New-GPSystemDatabase after successfully installing GP via Install-GPRuntime, the command fails with an error saying:
New-GPSystemDatabase : Could not find a part of the path 'C:\Program Files (x86)\Microsoft Dynamics\GPPowerShell\GP2016\Data\CreateSystemDatabase.mac'. At C:\Users\DynavAdmin\Desktop\GP 2016.ps1:34 char:1 + New-GPSystemDatabase -GPClientDirectory "C:\Program Files (x86)\Microsoft Dynami ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [New-GPSystemDatabase], DirectoryNotFoundException + FullyQualifiedErrorId : System.IO.DirectoryNotFoundException,Microsoft.Dynamics.GP.PowerShell.Cmdlets.AddSystemDatabase
There are no macro files in the Data directory and I have never seen or heard of a macro called CreateSystemDatabase. Where is this macro supposed to come from?
I encountered a similar error with a missing macro file when using the SynchronizeDictionary flag of Install-GPRuntime, but that was bypassed by setting the flag to false.
Thank for any help you can provide.
-Daniel Flaws
*This post is locked for comments