Ramblings about MS Dynamics CRM 2011 and coding basics.

Thursday, February 28, 2008

CRM 4.0: Trouble with redeploying existing organization

So this week was very interesting. We had a client who wanted to go from the hosted Dynamics CRM 3.0 to an on-premise Dynamics CRM 4.0 Professional edition.

Since they wanted to keep their hosted 3.0 system functional, I built out a new server with:
  • Windows Server 2003, w/ SP2
  • SQL Server 2000, w/ SP4
  • All windows updates, including .NET FMWK 3.0

We redeployed CRM 3.0 to the new server, then upgraded the SQL installation from 2000, SP4 to 2005, SP2. We ran the SQL update script to change the buildversion of the CRM database to comply with CRM 3.0 On-Premise. The SQL script is listed below:

select *from buildversion
update buildversion set buildnumber = 5300
update buildversion set revision = 0
update buildversion set minsupportedclient = '3.0.5300.0'

After you run the SQL script to upgrade the database, it will be able to appear in the CRM 3.0 On-Premise installation (when you connect to an existing installation).

After installing CRM 3.0, we upgraded to CRM 4.0 and backed up the database to transfer to the client's new CRM 4.0 environment.

Redeployment for CRM 4.0 has been designed to be system admin friendly.

  • You install CRM 4.0 on the new server
  • Rrestore the existing CRM 4.0 Org_MSCRM database to SQL 2005
  • Access the MMC snap-in Deployment Manager
  • Import Organization (and you are done.)

I walked through all of the steps on my own test server before attempting it on the client's environment. My test worked perfectly smooth.

The actual execution wasn't quite so picture-perfect. Yeah...we ran into different issues while trying to restore the database to the new SQL Server.

One of the errors we received was: Error 3154: The backup set holds a backup of a database other than the existing database.

After doing some research, I found that it was a semi-common problem in SQL and that you had to use a REPLACE clause when executing this statement. Since I couldn't execute the restore through the GUID, I decided to try to execute the restore manually through a SQL script. This is the script that I ended up writing. (oh the client wanted the sql database files to exist on a different harddrive, hence the MOVE clause):

Query:
RESTORE DATABASE CRMName_MSCRM
FROM DISK = 'E:\InstallDBs\CRMName_MSCRM-Full Database Backup.bak'
WITH REPLACE,
MOVE CRMName_MSCRM' TO 'E:\sqldata\CRMName_MSCRM.mdf',
MOVE CRMName_MSCRM_log' TO 'E:\sqldata\CRMName_MSCRM_log.ldf'

Results:
Processed 59816 pages for database CRMName_MSCRM', file CRMName_MSCRM' on file 1.
Processed 4 pages for database CRMName_MSCRM', file CRMName_MSCRM_log' on file 1.
Processed 17 pages for database CRMName_MSCRM', file 'sysft_ftcat_documentindex_eacc0dc2b9b94e2c98d072e33598dfe6' on file 1.
RESTORE DATABASE successfully processed 59837 pages in 32.453 seconds (15.104 MB/sec).

Using the above script, it appeared to Restore correctly. The importing of the organization failed in a later step. Since that didn't work, we had to figure something else out.

The solution:

I mentioned that I had restored this database to my own test server. I stopped all of the SQL Services that were running, physically copied the mdf and ldf (SQL database and log) from my test server to the client server. The mdf and ldf files were ATTACHED to the client's SQL Server and then we executed the Import Organization against that attached database. The import took about 10 minutes, and WORKED! (That was the most nerve-wracking progress bar I have ever watched.) I think we could have also used a copy of the mdf and ldf from the upgraded database (from 2000 to 2005). So if you can't restore your database into the target SQL Server, you may want to try our workaround:

  • Install CRM 4.0 on target CRM Server
  • Stop all SQL services on upgraded CRM/SQL Server (source)
  • Copy MDF and LDF files from source to target server
  • Attach MDF and LDF files to target SQL Server
  • Use Deployment Manager to Import Organization

Good luck in your upgrades! We worked until almost 3AM in order to land upon this solution ...hopefully your chances are improved by this post!

Labels: , , ,

Thursday, February 21, 2008

CRM 4.0 Trial License Keys

Since our Gold Partner CRM 4.0 development key hadn't come in, I needed a key to test some install and upgrades for 4.0. I found these trial keys on the Microsoft site and wanted to pass it along.

Workgroup: Offers the same rich feature set as Microsoft Dynamics CRM 4.0 Professional Server. Includes and supports a maximum of 5 named User licenses. Use the following 90-day license key to unlock Microsoft Dynamics CRM 4.0 Workgroup Server: V8QCJ-74RXV-FF27W-TY3V2-92MJY

Professional (Pro) Server: Offers a rich feature set, and supports single tenant deployment. Use the following 90-day license key to unlock Microsoft Dynamics CRM 4.0 Professional Server: P6MYC-RPKCC-QWWCM-6MTJ3-RT3DY

Enterprise Server: Offers a rich feature set, and supports multi-tenant deployments. Use the following 90-day license key to unlock Microsoft Dynamics CRM 4.0 Enterprise Server: QCKXD-BDH8R-G74H8-RDYHX-R4K4T

*IMPORTANT! You may use the Microsoft Dynamics CRM 4.0 editions with the respective License Keys for a maximum of 90 days. Each edition may be converted to a full use version by applying a commercial license key in the Microsoft CRM License Manager. A re-install of the software is not required. You will need to convert the license key to a commercial license before the 90-day period ends, as the 90 day period cannot be extended, and Users will not be warned of the impending expiration. Should expiration occur, access can be regained by applying a commercial license key.

Labels: , , ,

Dynamics CRM 4.0 SDK

This is taken directly from a MS Readme, but I thought it was useful. When I sink my teeth into the SDK, I will post my thoughts on it.

Microsoft Dynamics CRM SDK
The Microsoft Dynamics CRM SDK is available for download. This download includes sample code and an installer for viewing the documentation in Microsoft Visual Studio 2005. The Microsoft Dynamics CRM SDK is for developers, system customizers, and report writers. It contains the following sections:

Server Programming Guide.
A guide for developers who write server-side code, custom business logic, plug-ins, integration modules, custom workflow modules, and more. This guide has an architectural overview of Microsoft Dynamics CRM, the entity model, security model, Web services, and sample code.

Client Programming Guide.
A guide for developers who want to customize the Web application or Microsoft Dynamics CRM for Outlook. This guide includes forms scripting, integration of custom Web pages and other UI, and sample code.

Report Writers Guide.
A guide for developers who write reports for Microsoft Dynamics CRM using Microsoft SQL Server Reporting Services Report Designer.

Note: The Microsoft Dynamics CRM SDK is available only in English and Japanese.

Labels: , , ,

CRM 4.0 Language Packs

For those of you who need to help setup CRM for users needing more than just English, here are the CRM 4.0 Userpack and Readme links:

Microsoft Dynamics CRM 4.0 Language Pack...

Microsoft Dynamics CRM 4.0 Language Pack Readme...

Labels: , ,

CRM 4.0: E-mail Router download

I was doing a complete test upgrade this week and it was successful. As you are aware, you can not upgrade the CRM 3.0 E-mail router, but instead have to uninstall the previous version before installing the 4.0.

After uninstalling the CRM 3.0 E-mail router, I tried to follow the instructions to install the CRM 4.0 router. I looked for the files in the "Exchange" folder like the asked, but could not find this "Exchange" folder. I could not locate the files to begin the install!

I searched Microsoft's download site and found this link to download the E-mail router separately. Still not sure why it wouldn’t be included where it should be, but if you can't find it, here is the link.

Download details:
Microsoft Dynamics CRM 4.0 E-mail Router (On-Premise and Microsft Dynamics CRM 4.0 Service Provider Editions)...

Microsoft Dynamics CRM 4.0: How to configure the on-premise E-mail Router in different deployment scenarios...

Microsoft Dynamics CRM 4.0 E-mail Router Readme (On-Premise and Microsoft Dynamics CRM 4.0 Service Provider Editions)...

Labels: , ,

Wednesday, February 13, 2008

Products and solutions not supported by CRM 4.0

If you upgrade from a 3.0 system that includes these, or install these after installing 4.0, they may not ( and probably will not ) function correctly:
  • MS Dynamics CRM 3.0 Mobile
  • MS Dynamics CRM Connector for MS Dynamics GP
  • MS Dynamics CRM Accelerator for Siebel
  • MS Dynamics CRM BizTalk Adaptor
  • MS Dynamics CRM 3.0 Data Migration Pack
  • MS Dynamics CRM Data Migration Framework
  • MS Dynamics CRM 3.0 List Web Part
  • MS Dynamics CRM-Exchange E-mail Router

(referenced from the Microsoft Dynamics CRM 4.0 Installing Guide)

Labels: ,

CRM 4.0 Activity Synchronization

The Microsoft Dynamics CRM 4.0 Installing Guide for the new features in CRM of Outlook reads: "Activity tracking and synchronization improvements are included. Microsoft Office Outlook tasks can now be mapped to Microsoft Dynamics CRM letters, faxes, tasks, and phone calls."

I always thought it was strange that CRM 3.0 Activities of TASK and APPOINTMENT were the only items that mapped into Outlook. In my experience, the synchronization of CRM Tasks to Outlook has never been that useful, since Outlook only will remind you about your tasklist once a day. If you would like to be reminded of something to do during the day, then you should set up the CRM Appointment, since it will synchronize with your Outlook calendar and therefore remind you at the appropriate time.

Even though the other activities can now be mapped to your Outlook Tasks, I think using Appointments is still the way to go for functionality purposes.

Labels: , , , , , ,

What's new in CRM 4.0

I know this has been done on a lot of blogs, but here is my recap on the new features of version 4.0:
  • Multi-tenancy (Host multiple organizations in a single deployment)
  • Differentiated Server Roles (Application vs Platform Server)
  • 4.0 Connector for SQL Reporting Services (eliminated Kerberos douple-hop authentication)
  • 4.0 Language Pack (user language can differ from base language)
  • Multicurrency (supports multiple currencies)
  • Improved Data Management (migrate to all entities, save mappings, de-dupe)
  • Improved Customization features
  • Workflow (located in GUI)
  • 4.0 E-mail Router (not limited to Exchange Server; POP3)
  • MS Dynamics CRM for Outlook (Diagnostics Wizard; Performance improvements)

Visit the Microsoft website for all of the features.

Labels: , , , , ,

Basic Information on Dynamics CRM 4.0

Dynamics CRM 4.0 Editions:

  • Workgroup (Limited to 5 or fewer users; single organization; single computer running MS Dynamics CRM Server)
  • Professional – No user limit; limited to a single organization; can be installed on more than one computer in the same deployment
  • Enterprise – no user limit; support from multiple organizations, multiple server instances, role-based service installations (lets you increase performance by installing component services on different computers)

Licensing – all deployments operate by using a single license key (contains Dynamics CRM version, server license and the CALS)

CAL Types (Client Access License Types)

  • Read Only – view records and data, cannot modify records or data (uses 1 CAL)
  • Administrative – can modify records in data that is located in the settings area only (uses 0 CAL)
  • Full – full functionality and are only limited by specified security roles and privileges (uses 1 CAL)

Labels: , , , , ,