Just Released: Custom Code Validation Tool for Microsoft Dynamics CRM 2015


To help you prepare for your upgrade to Microsoft Dynamics CRM 2015, we have created the Custom Code Validation Tool for Microsoft Dynamics CRM 2015.

When using JavaScript code in Microsoft Dynamics CRM, it is possible that some code will stop working or cause an error when you upgrade. The Microsoft Dynamics CRM Custom Code Validation Tool helps identify potential problems so that a developer can fix them.

Please run this tool on your CRM instance to help identify potential issues with custom JavaScript in JavaScript libraries and HTML web resources. It will detect issues in the custom web resources that will no longer work after the upgrade is completed.

The most common issues that this tool targets are:

  • Common DOM manipulations
  • CRM 2013 Deprecated APIs

Running this tool before upgrade will enable you to identify issues and fix them prior to your scheduled upgrade so that your upgrade process can run smoothly.

Download the tool here

Comments (15)

  1. Art Karp says:

    I have tried to get this to work with CRM versions 6.0.3.106 and 7.0.0.3543. It fails in both with this error message:

    Exception: The given key was not present in the dictionary.
    at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
    at CustomCodeValidationTool2015.MainPage.ScriptCheck()
    at CustomCodeValidationTool2015.MainPage.lstResources_SelectionChanged(Object sender, SelectionChangedEventArgs e)
    at System.Windows.Controls.Primitives.Selector.OnSelectionChanged(SelectionChangedEventArgs e)
    at System.Windows.Controls.Primitives.Selector.InvokeSelectionChanged(List`1 unselectedItems, List`1 selectedItems)
    at System.Windows.Controls.Primitives.Selector.SelectionChanger.End()
    at System.Windows.Controls.Primitives.Selector.SelectionChanger.SelectJustThisItem(Int32 oldIndex, Int32 newIndex)
    at System.Windows.Controls.Primitives.Selector.OnSelectedIndexChanged(Int32 oldIndex, Int32 newIndex, Boolean throwOutOfRange)
    at System.Windows.Controls.Primitives.Selector.OnSelectedIndexChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
    at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
    at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
    at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter)
    at System.Windows.DependencyObject.SetValue(DependencyProperty property, Int32 i)
    at CustomCodeValidationTool2015.MainPage.b__c()

  2. John Cogovan says:

    I’m getting the same error as Art.

  3. Diana Tejeda says:

    Same here

  4. I’m using IE 10 (compatibility and non-compatibility modes), CRM version 6.1.2.112 (2013 ’14 update) & getting this error when I click to view scripts:

    Exception: The given key was not present in the dictionary.
    at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
    at CustomCodeValidationTool2015.MainPage.ScriptCheck()
    at CustomCodeValidationTool2015.MainPage.lstResources_SelectionChanged(Object sender, SelectionChangedEventArgs e)
    at System.Windows.Controls.Primitives.Selector.OnSelectionChanged(SelectionChangedEventArgs e)
    at System.Windows.Controls.Primitives.Selector.InvokeSelectionChanged(List`1 unselectedItems, List`1 selectedItems)
    at System.Windows.Controls.Primitives.Selector.SelectionChanger.End()
    at System.Windows.Controls.Primitives.Selector.SelectionChanger.SelectJustThisItem(Int32 oldIndex, Int32 newIndex)
    at System.Windows.Controls.Primitives.Selector.OnSelectedIndexChanged(Int32 oldIndex, Int32 newIndex, Boolean throwOutOfRange)
    at System.Windows.Controls.Primitives.Selector.OnSelectedIndexChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
    at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
    at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
    at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter)
    at System.Windows.DependencyObject.SetValue(DependencyProperty property, Int32 i)
    at CustomCodeValidationTool2015.MainPage.b__c()

  5. Keyser Soze says:

    Microsoft is aware of the issue and an update will be made available to the Download Center shortly.

  6. Mike Adler says:

    Define "Shortly"

  7. Ronald Jones says:

    Okay, Convergence 2015 is over, is a fix or workaround available yet?

  8. Joe M says:

    I had the same issue as Art. I found that it was tied to a specific web resource. I was able to get around this by removing the top web source result from the environment prior to scanning.

    Specifically, it was a *.html resource causing me issues. Since I only wanted to scan *.js resources, this wasn’t a huge problem… just a pain.

  9. Joe M says:

    I had the same issue as Art. I found that it was tied to a specific web resource. I was able to get around this by removing the top web source result from the environment prior to scanning.

    Specifically, it was a *.html resource causing me issues. Since I only wanted to scan *.js resources, this wasn’t a huge problem… just a pain.

  10. Ahron says:

    Having the same issue. Has a fix been released since March 3rd?

  11. Bjoern Graf says:

    Same issue. Doesn’t look like there is anybody checking these comments. And I am unable to figure out which resource could be causing an issue, so that won’t work for me.

  12. New tool being published soon. In the meantime please contact support to get the tool immediately.

  13. Daniel Levesque says:

    Hi Jesper, can you please let us know when this new version of the tool will be published? We’re looking forward to it. Your last post on this subject was from August 27th but the tool on the Microsoft Download Center website still appears to date from
    March 10, 2015.

  14. FXR says:

    Current version still contains given key exception. As there is no tool for validating an upgrade to 2016, this is the only tool that people can use and it’s not even fit for purpose!!

Skip to main content