locked
Error when exporting Activities from Outlook client RRS feed

  • Question

  • We can export Activities from the browser fine, but from Outlook we get this error:

    Microsoft CRM Error Report: Error Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Error Details: Exception of type 'System.Web.HttpUnhandledException' was thrown. Full Stack: [ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: Expected 'Integer' data type for 'otc' parameter in 'Request.QueryString'. The raw request was 'GET /AbCap/_grid/print/export_dlg.aspx?DuplicateColumnsPresent=0&PageRecordCount=50&TotalRecordCount=122&isFetchFinal=1&multipage=1&otc=NaN&viewid=%7b00000000-0000-0000-00AA-000010001899%7d&viewtype=1039' called from .] at Microsoft.Crm.ParameterFilterBase.ValidateParameter(IWebParameter parameter, String key, String value, ParameterSources source) at Microsoft.Crm.ParameterFilterBase.TryValidateParameter(ArrayList parameterCollection, String key, String value, ParameterSources source) at Microsoft.Crm.Application.ParameterFilter.ValidateParameter(HttpRequest request, ArrayList parameterCollection, String key, String value, ParameterSources source, EntityType pageEntityType, FormAdditionalAllowedParameters additionalAllowedParameters) at Microsoft.Crm.Application.ParameterFilter.ValidateParameters(Page page, EntityType pageEntityType, Boolean alwaysEnableParameterChecking, FormAdditionalAllowedParameters formAdditionalAllowedParametersTemp) at Microsoft.Crm.Application.ParameterFilter.ValidateParameters(Page page, EntityType pageEntityType, Boolean alwaysEnableParameterChecking) at Microsoft.Crm.Application.Controls.AppPage.ValidatePageParameters() at Microsoft.Crm.Application.Controls.AppPage.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) [HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown.] at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) Other Message: Error Number: Source File: Not available Line Number: Not available Error Trace: Date: 03-19-2013 Time: 08:27:28 Server: jhbdsm020000086 Request URL: http://jhbdsm020000086/AbCap/_grid/print/export_dlg.aspx?DuplicateColumnsPresent=0&PageRecordCount=50&TotalRecordCount=122&isFetchFinal=1&multipage=1&otc=NaN&viewid=%7b00000000-0000-0000-00AA-000010001899%7d&viewtype=1039

    The log file is this:

    Specified argument was out of the range of valid values. Parameter name: Expected 'Integer' data type for 'otc' parameter in 'Request.QueryString'. The raw request was 'GET /AbCap/_grid/print/export_dlg.aspx?DuplicateColumnsPresent=0&PageRecordCount=50&TotalRecordCount=122&isFetchFinal=1&multipage=1&otc=NaN&viewid=%7b00000000-0000-0000-00AA-000010001899%7d&viewtype=1039' called from . Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: Expected 'Integer' data type for 'otc' parameter in 'Request.QueryString'. The raw request was 'GET /AbCap/_grid/print/export_dlg.aspx?DuplicateColumnsPresent=0&PageRecordCount=50&TotalRecordCount=122&isFetchFinal=1&multipage=1&otc=NaN&viewid=%7b00000000-0000-0000-00AA-000010001899%7d&viewtype=1039' called from . Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: Expected 'Integer' data type for 'otc' parameter in 'Request.QueryString'. The raw request was 'GET /AbCap/_grid/print/export_dlg.aspx?DuplicateColumnsPresent=0&PageRecordCount=50&TotalRecordCount=122&isFetchFinal=1&multipage=1&otc=NaN&viewid=%7b00000000-0000-0000-00AA-000010001899%7d&viewtype=1039' called from .] Microsoft.Crm.ParameterFilterBase.ValidateParameter(IWebParameter parameter, String key, String value, ParameterSources source) +204 Microsoft.Crm.ParameterFilterBase.TryValidateParameter(ArrayList parameterCollection, String key, String value, ParameterSources source) +340 Microsoft.Crm.Application.ParameterFilter.ValidateParameter(HttpRequest request, ArrayList parameterCollection, String key, String value, ParameterSources source, EntityType pageEntityType, FormAdditionalAllowedParameters additionalAllowedParameters) +58 Microsoft.Crm.Application.ParameterFilter.ValidateParameters(Page page, EntityType pageEntityType, Boolean alwaysEnableParameterChecking, FormAdditionalAllowedParameters formAdditionalAllowedParametersTemp) +917 Microsoft.Crm.Application.ParameterFilter.ValidateParameters(Page page, EntityType pageEntityType, Boolean alwaysEnableParameterChecking) +18 Microsoft.Crm.Application.Controls.AppPage.ValidatePageParameters() +226 Microsoft.Crm.Application.Controls.AppPage.OnInit(EventArgs e) +190 System.Web.UI.Control.InitRecursive(Control namingContainer) +133 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1970

    Any ideas anyone?

    Wednesday, March 20, 2013 8:34 AM

Answers

  • Sorted, because we upgraded from CRM 4 to CRM 2011, seems the SiteMap did not update properly:

    Had to fix the Url value to below, and now it works. Before Activities were displaying as if in a web browser within Outlook, now has the proper CRM look and feel.

    <SubArea Id="nav_activities" Entity="activitypointer" Url="/_root/homepage.aspx?etc=4200" />

    Similar with Reports, the SubArea tag should be similar to below, remove Url attribute if present:

    <SubArea Id="nav_reports" Entity="report" DescriptionResourceId="Reports_Description">

    • Marked as answer by manicm Friday, April 5, 2013 10:35 AM
    • Edited by manicm Friday, April 5, 2013 10:50 AM
    Friday, April 5, 2013 10:35 AM

All replies

  • Hey manicm,

    Can you please these details:

    1. Repro steps

    2. Which Outlook client version you are using and which CRM server version is your client configured to?

    3. Which Office version with bitness are you using?

    4. Did you do any recent update to your Outlook client?

    Let me know answer to these questions to further assist you.

    Thanks 

    Harshit

    Tuesday, March 26, 2013 7:27 PM
  • Sorted, because we upgraded from CRM 4 to CRM 2011, seems the SiteMap did not update properly:

    Had to fix the Url value to below, and now it works. Before Activities were displaying as if in a web browser within Outlook, now has the proper CRM look and feel.

    <SubArea Id="nav_activities" Entity="activitypointer" Url="/_root/homepage.aspx?etc=4200" />

    Similar with Reports, the SubArea tag should be similar to below, remove Url attribute if present:

    <SubArea Id="nav_reports" Entity="report" DescriptionResourceId="Reports_Description">

    • Marked as answer by manicm Friday, April 5, 2013 10:35 AM
    • Edited by manicm Friday, April 5, 2013 10:50 AM
    Friday, April 5, 2013 10:35 AM