Tuesday, October 28, 2008

Syntax error after upgrading Microsoft CRM 3.0 to 4.0

I know you dread it, especially when a client suggest that they are ready to upgrade from CRM 3.0 to 4.0.  You worry about the unforeseen issues, like this one...



Problem: After an upgrade for a client, I ran into an issue with syntax error.  It happens every time I close an account record, resulting a pop up similar to the image above .  Though I should have known better, simply removing the onLoad and onSave javascript will not do it.

Resolution:  You will need to also remove all the onChange javascript on all the attributes belonging to the entity form.  This will be especially cumbersome if your client has a large amount of attributes bound to a form that has onChange javascript. It is suggested that you export the customizations and remove/comment all of the javascript before/after the upgrade, then followed by an import.

Lastly, don't forget to use the C360 upgrade tool to remove all the ISV configurations on 3.0 before the upgrade if you do have any C360 add-ons that is.  You will run into issues if you don't do so.



Cheers,

Hong Tan
Microsoft Dynamics CRM Developer

No comments: