Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Create GP System Database using Powershell: Missing .mac files

Posted on by Microsoft Employee

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans