locked
Issue with Workflows after upgrading to 4.0 RRS feed

  • Question

  • I have a major issue with workflows after upgrading a CRM 3.0 environment to 4.0.

     

    Even the simplest of workflows get stuck in "In progress". The eventlog shows errors with the MSCrmAsyncService.

     

    To get more debug data I activated tracing. Below is a the error logged in the trace.

     

    What I find interesting is the message "The file you are attempting to save or retrieve has been blocked from this Web site by the server administrators." inside the error message.

     

    The workflow with AsyncOperationId: {3E7A2437-35CF-DC11-8856-001CC4BE334C} is my newly created workflow, so I don't think this is an issue with workflows converted from 3.0 to 4.0.

     

    If someone could help me or give me a hint on where to look I'd be very grateful.

     

    Regards,

    Adrian

     

     

    [2008-01-30 14:14:09.9] Process:CrmAsyncService |Organization:889fac0e-868c-457c-8aaf-78d59a040fdd |Thread:   20 |Category: Platform.Async |User: 00000000-0000-0000-0000-000000000000 |Level: Error | AsyncOperationCommand.Execute
    >Exception while trying to execute AsyncOperationId: {3E7A2437-35CF-DC11-8856-001CC4BE334C} AsyncOperationType: 1 - System.InvalidOperationException: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
    The request failed with the error message:
    --
    <HTML dir="ltr">
    <HEAD><meta name="GENERATOR" content="Microsoft SharePoint" /><meta name="progid" content="SharePoint.WebPartPage.Document" /><meta HTTP-EQUIV="Content-Type" content="text/html; charset=utf-8" /><meta HTTP-EQUIV="Expires" content="0" /><meta name="ROBOTS" content="NOHTMLINDEX" /><title>
     
     Error

    </title><link rel="stylesheet" type="text/css" href="/_layouts/1033/styles/core.css?rev=5msmprmeONfN6lJ3wtbAlA%3D%3D"/>
    <script type="text/javascript" language="javascript" src="/_layouts/1033/init.js?rev=VhAxGc3rkK79RM90tibDzw%3D%3D"></script>
    <script type="text/javascript" language="javascript" src="/_layouts/1033/core.js?rev=F8pbQQxa4zefcW%2BW9E5g8w%3D%3D"></script>

     <meta name="Robots" content="NOINDEX " />
     <meta name="SharePointError" content=""/>
    </HEAD>
    <BODY scroll="yes" onload="javascript:if (typeof(_spBodyOnLoadWrapper) != 'undefined') _spBodyOnLoadWrapper();">
      <form name="aspnetForm" method="post" action="../../_layouts/error.aspx" id="aspnetForm" onsubmit="return _spFormOnSubmitWrapper();">
    <div>
    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTU2NjkxODU3M2RkfPlCXEXr06AJ7b8PPGosWr+10QQ=" />
    </div>

      <TABLE class="ms-main" CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH="100%" HEIGHT="100%">
     <tr><td>
        <table CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH="100%">
      <tr>
       <td colspan=4 class="ms-globalbreadcrumb" align="right">
          <a href="javascript:TopHelpButtonClick('NavBarHelpHome')" id="ctl00_PlaceHolderGlobalNavigation_TopHelpLink" AccessKey="6" title="Help (new window)"><img src="/_layouts/images/helpicon.gif" align="absmiddle" border="0" alt="Help (new window)" /></a>
       </td>
      </tr>
        </table>
       </td></tr>
     <tr>
      <td class="ms-globalTitleArea">
       <table width=100% cellpadding=0 cellspacing=0 border=0>
        <tr>
      <td id="GlobalTitleAreaImage" class="ms-titleimagearea"><img id="onetidHeadbnnr0" src="/_layouts/images/titlegraphic.gif"  alt="" /></td>
      <td class="ms-sitetitle" width=100%>
       
       
      </td>
      <td style="padding-top:8px;" valign=top>
       
       
      </td>
        </tr>
       </table>
      </td>
     </tr>
     <TR>
      <TD id="onetIdTopNavBarContainer" WIDTH=100% class="ms-bannerContainer">
      
      
      </TD>
     </TR>
     
      


     
     
     <TR height="100%"><TD><TABLE width="100%" height="100%" cellspacing="0" cellpadding="0">
     <tr>
      <td class="ms-titlearealeft" id="TitleAreaImageCell" valign="middle" nowrap><div style="height:100%" class="ms-titleareaframe"></div></td>
      <td class="ms-titleareaframe" id="TitleAreaFrameClass">
      
      <table cellpadding=0 height=100% width=100% cellspacing=0>
       <tr><td class="ms-areaseparatorleft"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></td></tr>
      </table>
      
      </td>
      <td valign=top  id="onetidPageTitleAreaFrame" class='ms-areaseparator' nowrap width="100%">
       <table id="onetidPageTitleAreaTable" cellpadding=0 cellspacing=0 width=100% border="0">
        <tr>
      <td valign="top" class="ms-titlearea">
      
        <a href="http://crmserver" id="ctl00_PlaceHolderTitleBreadcrumb_idSimpleGoBackToHome">Go back to site</a>
      
      </td>
        </tr>
        <tr>
      <td height=100% valign=top ID=onetidPageTitle class="ms-pagetitle">
        <h2 class="ms-pagetitle">
       
     Error

        </h2>
      </td>
        </tr>
       </table>
      </td>
      <td class="ms-titlearearight">
      
      
    <div class='ms-areaseparatorright'><IMG SRC="/_layouts/images/blank.gif" width=8 height=100% alt=""></div>
    </td>
     </tr>

     <TR>
       <TD class="ms-leftareacell" valign=top height=100% id="LeftNavigationAreaCell">
        <table class=ms-nav width=100% height=100% cellpadding=0 cellspacing=0>
      <tr>
       <td>
        <TABLE height="100%" class=ms-navframe CELLPADDING=0 CELLSPACING=0 border="0">
         <tr valign="top">
       <td width="4px"><IMG SRC="/_layouts/images/blank.gif" width=4 height=1 alt=""></td>
       <td valign="top" width="100%">
        
        
        
        
         
        
        
       </td>
         </tr>
         <tr><td colspan=2><IMG SRC="/_layouts/images/blank.gif" width=138 height=1 alt=""></td></tr>
        </TABLE>
       </td>
       <td></td>
      </tr>
        </table>
       </TD>
       <td>
    <div class='ms-areaseparatorleft'><IMG SRC="/_layouts/images/blank.gif" width=8 height=100% alt=""></div>
    </td>
       <td class='ms-formareaframe' valign="top">
      <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="ms-propertysheet">
       <TR valign="top"  >
       <TD class="ms-descriptiontext" width="100%">
        
       </TD>
          <TD ID=onetidYPadding width="10px"><IMG SRC="/_layouts/images/blank.gif" width=10 height=1 alt=""></TD>
        </TR>
        <TR >
       <TD ID=onetidMainBodyPadding height="8px"><IMG SRC="/_layouts/images/blank.gif" width=1 height=8 alt=""></TD>
        </TR>
        <tr>
        <td valign="top" height="100%">
          <A name="mainContent"></A>
        
     <table width=100% border=0 class="ms-titleareaframe" cellpadding=0>
     <TR>
     <TD valign=top width="100%" style="padding-top: 10px" class="ms-descriptiontext">
        <span id="ctl00_PlaceHolderMain_LabelMessage">The file you are attempting to save or retrieve has been blocked from this Web site by the server administrators.</span>
        <P><span class="ms-descriptiontext">
      <span id="ctl00_PlaceHolderMain_helptopic_troubleshooting"><A Title="Troubleshoot issues with Windows SharePoint Services. - Opens in new window" HREF="javascript:HelpWindowKey('troubleshooting')">Troubleshoot issues with Windows SharePoint Services.</A></span>
      
      </span>
     </TD>
     </TR>
     </table>
    <script type="text/javascript" language="JavaScript">
      var gearPage = document.getElementById('GearPage');
      if(null != gearPage)
      {
       gearPage.parentNode.removeChild(gearPage);
       document.title = "Error";
      }
    </script>

        </td>
        </tr>
      </table>
       </td>
       <td class="ms-rightareacell">
    <div class='ms-areaseparatorright'><IMG SRC="/_layouts/images/blank.gif" width=8 height=100% alt=""></div>
    </td>
     </TR>
    <tr>
     <td class="ms-pagebottommarginleft"><IMG SRC="/_layouts/images/blank.gif" width=1 height=10 alt=""></td>
     <td class="ms-pagebottommargin"><IMG SRC="/_layouts/images/blank.gif" width=1 height=10 alt=""></td>
     <td class="ms-bodyareapagemargin"><IMG SRC="/_layouts/images/blank.gif" width=1 height=10 alt=""></td>
     <td class="ms-pagebottommarginright"><IMG SRC="/_layouts/images/blank.gif" width=1 height=10 alt=""></td>
    </tr>
     </TABLE></TD></TR>
      </TABLE>
     
     
       <input type="text" name="__spDummyText1" style="display:none;" size=1/>
       <input type="text" name="__spDummyText2" style="display:none;" size=1/>
      </form>
     
    </BODY>
    </HTML>

    --.
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at Microsoft.Crm.SdkTypeProxy.CrmService.Retrieve(String entityName, Guid id, ColumnSetBase columnSet)
       at Microsoft.Crm.Asynchronous.SdkTypeProxyCrmServiceWrapper.Retrieve(String entityName, Guid id, ColumnSetBase columnSet)
       at Microsoft.Crm.Asynchronous.SdkPluginDescriptionProvider.GetPluginTypeDescription(Guid pluginTypeId, IOrganizationContext context)
       at Microsoft.Crm.Caching.PluginTypeCacheLoader.LoadCacheData(Guid key, IOrganizationContext context)
       at Microsoft.Crm.Caching.CrmMultiOrgCache`2.CreateEntry(TKey key, IOrganizationContext context)
       at Microsoft.Crm.Caching.CrmSharedMultiOrgCache`2.LookupEntry(TKey key, IOrganizationContext context)
       at Microsoft.Crm.Caching.PluginTypeCache.LookupEntry(Guid pluginTypeId, IOrganizationContext context)
       at Microsoft.Crm.Asynchronous.AsyncOperationCommand.GetPluginType(Guid pluginTypeId)
       at Microsoft.Crm.Asynchronous.EventOperation.InternalExecute(AsyncEvent asyncEvent)
       at Microsoft.Crm.Asynchronous.AsyncOperationCommand.Execute(AsyncEvent asyncEvent)
    # CRM Tracing Version 2.0
    # LocalTime: 2008-01-30 14:14:09.9
    # Categories:
    # CallStackOn: No
    # ComputerName: crmserver
    # CRMVersion: 4.0.7333.3
    # DeploymentType: OnPremise
    # ScaleGroup:
    # ServerRole: AppServer, AsyncService, DiscoveryService, WebService, ApiServer, HelpServer, DeploymentService

     

     

    Wednesday, January 30, 2008 1:57 PM

Answers

  • I finally solved this issue. How did we manage in the pre-blogging era?

     

    The problem was that a SharePoint intranet was installed on the same machine as CRM. Both were using port 80 and using host headers for resolving who goes where...

     

    There is a bug in CRM 4.0 causing it to use machine name instead of the host header. The solution is simple, just change a few entries in the MSCRM_CONFIG database.

     

    The solution (and a better explanation) can be found at http://www.sadev.co.za/node/155

     

    Basically, I had to run the following command on the CRM database:

     

    Database command
    USE MSCRM_CONFIG
    Update DeploymentProperties SET NVarCharColumn = 'my.crmserver.inet:80' WHERE ColumnName = 'AsyncSdkRootDomain'
    Update DeploymentProperties SET NvarCharColumn = 'my.crmserver.inet:80' WHERE ColumnName = 'ADSdkRootDomain'
    Update DeploymentProperties SET NvarCharColumn = 'my.crmserver.inet:80' WHERE ColumnName = 'ADWebApplicationRootDomain'

     

     

    where my.crmserver.inet is the host header name of my server.

     

    Regards,

    Adrian

    Wednesday, January 30, 2008 3:28 PM