Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Create GP System Database using Powershell: Missing .mac files

(0) ShareShare
ReportReport
Posted on by

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Almas Mahfooz Profile Picture

Almas Mahfooz 3 User Group Leader

Featured topics

Product updates

Dynamics 365 release plans