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 :
Finance | Project Operations, Human Resources, ...
Answered

DBMS: 15151 Warning While Upgrading Dynamics GP Database to 18.8

(3) ShareShare
ReportReport
Posted on by 63
Hi,
 
While upgrading our GP Database 18.8.1941, the warning mentioned below was displayed for 2 of our Company Database Upgrades.
Please note that we have 4 Companies configured in our GP and only 2 of them are throwing this warning.
 
Please help us identify the impact it has.
 
 
Categories:
I have the same question (0)
  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,151 Most Valuable Professional on at
    A quick search of SQL Server error 15151 says it is related to a missing or invalid login.
     
    Are you running the upgrade using the 'sa' account?
     
    Do you have any connections to a secondary SQL server?
     
    Kind regards 
     
    David 
  • PP-27011140-0 Profile Picture
    63 on at
    Yes, I am using sa account. No, we only use single SQL Server Database.
  • PP-27011140-0 Profile Picture
    63 on at
    PS: Is there a way to rerun the GP database upgrade while switching on the DexSQL Logs so that we find the Root Cause.
     
    Thanks for the reply!!
  • Suggested answer
    Lisa at AonC.com Profile Picture
    1,154 Super User 2026 Season 1 on at
    Regarding the GP Utilities error on GrantAllToTableZDPs(), here is a link to a community post with a verified answer:  Error when running GP Utilities

    Regarding restarting GP Utilities, here is a blog post on Upgrade Troubleshooting that includes information on restarting the upgrade.  (Spoiler:  Just launch GP Utilities again.)  Microsoft Dynamics GP Upgrade 2025 - Upgrade Troubleshooting
  • PP-27011140-0 Profile Picture
    63 on at
    Thanks for the response Lisa, as per the article shared by you, I had remove the references of GL00100 in different schemas other than dbo. I have a schema named api and one stored procedure with a reference to GL00100. I dropped the procedure, confirmed that the dropped stored procedure does not have any references and reran the GP Utilities, and I am still facing the same challenge.
  • Suggested answer
    Lisa at AonC.com Profile Picture
    1,154 Super User 2026 Season 1 on at
    Thank you for the update.  I'm sure I have run into this recently so I'm going to throw this one out as another thing to check since you found issues with the account data:  Do you have any tables in those two databases that have a period in the name?  If so, rename the table to remove the period.

    How about this blog post?  Upgrading Microsoft Dynamics GP Error: The stored procedure smGrantAccessOnAccountMSTR returned the following results: DBMS: 0 Microsoft Dynamics GP

    The gem that was buried in this post is this:

  • PP-27011140-0 Profile Picture
    63 on at
    Hi Lisa,
     
    There are no tables with a period in those 2 Databases. Here is the evidence from one of the Company Databases.
     
  • Verified answer
    Assisted by AI
    Lisa at AonC.com Profile Picture
    1,154 Super User 2026 Season 1 on at
    Thank you for checking!

    How about trying to locate the GrantAllToTableZDPs stored procedure and manually executing the code?
     
    ****Bing CoPilot returned the following results with the prompt:  dynamics gp GrantAllToTableZDPs****

    In Microsoft Dynamics GP, the object GrantAllToTableZDPs is not a standard stored procedure, table, or view that ships with GP.

    It is most likely a custom SQL script or utility that was created during an upgrade or deployment to grant permissions to ZDP tables.

     
     

    What are ZDP tables in Dynamics GP?

     

    • ZDP stands for "Zero Downtime Procedures" or "ZDP tables" in the context of GP upgrades.

    • They are temporary or shadow tables created during an upgrade process to allow users to keep working while schema changes are applied.

    • These tables usually have names like ZDP_<TableName> and are used by the upgrade scripts to stage data.


    •  
     
     

    Purpose of GrantAllToTableZDPs

     

    From upgrade scripts and partner documentation:

     

    • It is typically a SQL stored procedure or script that:

      1. Iterates through all ZDP tables in the company database.

      2. Grants the necessary SELECT, INSERT, UPDATE, DELETE permissions to the DYNGRP SQL role (the standard Dynamics GP database role).


      3.  

    • This ensures that after the upgrade, GP users can access the new or modified tables without permission errors.


    •  
     
     

    Why you might not find it

     

    • It is not permanent — it may be created and dropped automatically by the upgrade process.

    • If you search after the upgrade is complete, it may already be gone.

    • It might exist only in the upgrade scripts provided by Microsoft or your GP partner, not in the live database.


    •  
     
     

    If you are troubleshooting

     

    If you are getting errors about GrantAllToTableZDPs missing:

     

    1. Check the GP upgrade logs — see if the script failed to run.

    2. Look in the GP upgrade folder for .sql files — you may find a script that creates and runs GrantAllToTableZDPs.

    3. Manually grant permissions to ZDP tables if needed:
       
      Sql
       
      DECLARE @sql NVARCHAR(MAX) = '';

      SELECT @sql += 'GRANT SELECT, INSERT, UPDATE, DELETE ON [' + name + '] TO DYNGRP;'
      FROM sys.tables
      WHERE name LIKE 'ZDP_%';

      EXEC sp_executesql @sql;


      (Run in the company database; make sure you have a full backup first.)


    4.  
     
     

    ✅ Summary:

    GrantAllToTableZDPs is a temporary upgrade helper for granting permissions to ZDP tables in Dynamics GP. It’s not part of the normal GP runtime and may not exist after the upgrade completes.

     
     

     


     
  • PP-27011140-0 Profile Picture
    63 on at
    Thanks Lisa! 
     
    You are a life saver. 
     
    One Last Question: Our team wants to know the impact it has if the SQL Script does not resolve the challenge.
     
    I mean, will there be any surprises once we move to Production/Live?
     
    Is there a way to find out that the upgrade really succeeded? 

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 May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 628 Super User 2026 Season 1

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 501 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 437

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans