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

Notifications

Announcements

No record found.

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

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans