Hi,
I created a copy of my live crm in UAT by copying the database and then importing a new organization using that database. During the process, I ran the script here that updates the organization id:
This worked fine, and my new instance of CRM was up and running. However, I ran this script again as I thought it had not worked properly, due to a 3rd party table not pointing to the correct organization (I was wrong...but anyway!). I am now getting the message: You do not have enough privileges to access to Microsoft Dynamics CRM object or perform the requested operation... whenever I try to open any record, even though I'm logged in as system administrator. I presume the organization id has been messed up? As it's on premise, I can query the database and see that for my system admin user, the organization id is correct. It's still got the live organization name though.
Is there anyway of fixing this, other than importing a new organization all over again?
Thanks.
*This post is locked for comments
Thanks for your help, I just imported a new organization.
The best thing you can do is re-importing organization, as now you will be running into unpredictable errors all the time.
You don't have to run this script, if you don't upgrade the organization (and as far as I understand, you are on the same server, so for sure you are not). So simply take your organization, import it under different name and import organization. CRM Deployment Manager will handle the rest, don't run any scripts that are messing with the database.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156