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

Announcements

News and Announcements icon
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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Dan Liebl Profile Picture

Dan Liebl 2

#2
Shravan Attelli Profile Picture

Shravan Attelli 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans