title: CRM 2011 Custom ribbon button click running its functionality correctly but raises page error
body: <p>I have a set of buttons on one of my custom entities ribbon and also one on account entity ribbon. When i click one of them, i'm seeing page error message on the status bar but all of them are running their functionalities correctly. When i debugged code with IE Developer Tools, i realized that it was releasing page error before my code's run. Does anyone have any idea about this situation?</p>
  
  <p>Thanks in advance,</p>
  
  <p>Ozer</p>
  
  <p>Xml Code : </p>
  
  <pre><code>&lt;RibbonDiffXml&gt;
    &lt;CustomActions&gt;
      &lt;CustomAction Id="NXM.account.Form.SearchMerchantInDB.CustomAction" Location="Mscrm.Form.account.MainTab.Workflow.Controls._children" Sequence="1"&gt;
        &lt;CommandUIDefinition&gt;
          &lt;Button Id="NXM.account.Form.SearchMerchantInDB.Button" Command="NXM.account.Form.SearchMerchantInDB.Command" LabelText="Üye Firma / İş Yeri Sorgula" ToolTipTitle="Üye Firma / İş Yeri Sorgusu" ToolTipDescription="Firma / iş yerinin Üye Firma / İş Yeri olup olmadığı bilgisini sorgular" TemplateAlias="o1" Image16by16="$webresource:new_searchmagnifier16x16" Image32by32="$webresource:new_searchmagnifier32x32" /&gt;
        &lt;/CommandUIDefinition&gt;
      &lt;/CustomAction&gt;
    &lt;/CustomActions&gt;
    &lt;Templates&gt;
      &lt;RibbonTemplates Id="Mscrm.Templates"&gt;&lt;/RibbonTemplates&gt;
    &lt;/Templates&gt;
    &lt;CommandDefinitions&gt;
      &lt;CommandDefinition Id="NXM.account.Form.SearchMerchantInDB.Command"&gt;
        &lt;EnableRules&gt;&lt;/EnableRules&gt;
        &lt;DisplayRules&gt;&lt;/DisplayRules&gt;
        &lt;Actions&gt;
          &lt;JavaScriptFunction Library="$webresources:new_account" FunctionName="CheckIfMember" /&gt;
        &lt;/Actions&gt;
      &lt;/CommandDefinition&gt;
    &lt;/CommandDefinitions&gt;
    &lt;RuleDefinitions&gt;
      &lt;TabDisplayRules /&gt;
      &lt;DisplayRules /&gt;
      &lt;EnableRules /&gt;
    &lt;/RuleDefinitions&gt;
    &lt;LocLabels /&gt;
  &lt;/RibbonDiffXml&gt;
  </code></pre>