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)

Users not assigned to DYNGRP in new company databases

(0) ShareShare
ReportReport
Posted on by

I've been handling the system administration for one of my clients recently. They frequently create new GP company databases (6 last month). The process I've been using since we implemented the product was to go to GP Utilities, select "Create New Company", click "Process" and on the next screen use the drop down menu to select an existing company from which to copy the security access. This worked flawlessly on all of the previous databases (probably 10-15 in total), but with the last 6 something strange happened.

I created the company databases, configured them and then set the users loose on them. When users tried to log in to one of the new companies, they got the following message: "A get/change first operation on table 'coProcess' failed accessing SQL data." There are a couple of articles out there on this message:

https://support.microsoft.com/en-us/kb/850997: not applicable; we didn't move the server

https://www.experts-exchange.com/questions/24496163/Great-Plains-Error-A-get-change-first-operation-on-table-'coProcess'-failed.html: This solution works, however there's no explanation on how to prevent it from happening again.

And finally, the big kahuna: http://dynamicsgpgeek.blogspot.com/2009/10/dynamics-gpsql-database-user-disconnect.html: Again, the solution works but there's no explanation on how to prevent this from happening in the future.

Can anyone explain to me why my users are not being automatically added to the DYNGRP group in new companies when I copy security access from an existing company database while running the utilities?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,058 Moderator on at

    Hi Michael,

    I know you can always run the script grant.sql from GP that will re-assign all GP users to the DYNGRP role, but I was wondering if something changes between the last 6 company creation and the previous 10-15 ones ? Was always the same user used to create the new companies ? (i.e. 'sa')

  • Community Member Profile Picture
    on at

    I used the 'sa' account to create the new company, and on the "copy security from" dropdown menu, I always select the same company. As far as I know, nothing has really changed. I also just verified with our IT folks that the databases weren't moved to a different instance of SQL (which I know can cause issues with DYNSA being the dbowner).

  • Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,058 Moderator on at

    Michael,

    I'm going to test the behavior of creating a new company in GP Utilities with my GP2015R2 test bed system.. .if there is a script that has changed since the past GP versions, it should present the same issue.

  • Suggested answer
    Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,058 Moderator on at

    Michael,

    Just tested this in my GP2015R2 and it works as expected.. I loged in with 'sa' and created a new company, using the option 'copy security from other company' and after the process was completed, all my GP users (SQL only, not domain users) where copied into the new DB security.. I checked also the schemas and the DYNGRP was there way before the users got added to the security. Even all the rpt_xxx roles & schemas were created upfront when the DB was allocated.

    Your issue must be related somehow with the SQL security & instance.. Have you checked that the 'sa' user has full sysadmin SQL permissions ?

  • Community Member Profile Picture
    on at

    Yup, 'sa' user has full sysadmin sql permissions as far as I can tell. I'm still looking into this one.... next time I create a new company database for them I'm going to watch use the dexsql.log (as well as the regular SQL log) file to see if I can find out if there's some setting or permission on the 'sa' account that got changed somehow.

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