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)

Deleting Users

(0) ShareShare
ReportReport
Posted on by

Hello,

We have a client that is cleaning up old users in PDK. When they try to delete the user they receive an unknown error message and it says to contact SQL admin.

When we review the users that we are trying to delete in SQL, each user is the owner of it's own schema.  The schema is not tied to any other user.  If we make another user (dbo) the owner of that schema, we are able to delete the user.

We ran the Mass Drop User Schemas script found on PartnerSource, but it did not remove the user's schema.

If I go into the schemas and manually delete the user schema and then attempt to delete the user in PDK, I receive the following error:

Unhandled script exception:
[Microsoft][ODBC SQL Server Driver][SQL Server]Count not find stored procedure
'DYNAMICS.dbo.PDKsp_GetNumRegisteredUsers'

Any suggestions on the best way to resolve?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Well the error is self explanatory, you are missing stored procedures. A way to validate this is first make a backup of your environment, make sure everyone is out then you can open the Dynamics Database Maintenance and recreate Stored Procedures / views and Triggers for the PDK product.

    If that does not solve it, then try deleting the PDK product from your test and re-install it.

    Other tasks you can do is going to Tools > Maintenance > SQL and choose the PDK product, select all tables and drop/create all autoprocedures.

    But make sure you have a backup, don't risk it.

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
Community Member Profile Picture

Community Member 2

#2
mtabor Profile Picture

mtabor 1

#2
Victoria Yudin Profile Picture

Victoria Yudin 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans