Answered by:
CRM 2011 UR6 -> System.Exception: Action Microsoft.Crm.Tools.Admin.PopulateDependencyNodesAction failed. ---> Microsoft.Crm.CrmException: A non valid page number was received: 0

Question
-
Hi all,<o:p></o:p>
My demo virtual server is a Hyper-V Virtual Machine with Windows Server 2008 R2 with SP1, SQL Server 2008 R2 x64 with Reporting Services, CRM 2011 all roles with Update rollup 6, CRM 2011 Email Router.<o:p></o:p>
Post Crm2011 Update rollup 6 when I try to create a new organization I get this error: System.Exception: Action Microsoft.Crm.Tools.Admin.PopulateDependencyNodesAction failed. ---> Microsoft.Crm.CrmException: A non valid page number was received: 0<o:p></o:p>
Here are the relevant part of crm50dmsnapin.log
<o:p></o:p>
15:05:02| Info| ImportMapUtility.RenameOobImportMap: Renaming OOB Map id="a218615a-1ed5-4297-b962-d882dd04e31d" to new name="For Generic Contact and Account Data"
15:05:02| Info| CrmAction execution time; SetupOutOfBoxImportMaps; 00:00:13.2325515
15:05:02| Info| Executing Install action: Microsoft.Crm.Tools.Admin.SetIsManaged
15:05:04| Info| CrmAction execution time; SetIsManaged; 00:00:02.2469265
15:05:04| Info| Executing Install action: Microsoft.Crm.Tools.Admin.PopulateSolutionComponentAction
15:05:07| Info| CrmAction execution time; PopulateSolutionComponentAction; 00:00:03.6316035
15:05:07| Info| Executing Install action: Microsoft.Crm.Tools.Admin.PopulateDependencyNodesAction
15:05:17| Error| System.Exception: Action Microsoft.Crm.Tools.Admin.PopulateDependencyNodesAction failed. ---> Microsoft.Crm.CrmException: A non valid page number was received: 0
at Microsoft.Crm.BusinessEntities.PagingHelper.AddPagingFilters(EntityExpression entityExpression)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.DoRetrieveMultiple(BusinessEntityCollection entities, EntityExpression entityExp, DatabaseQueryTarget queryTarget, ExecutionContext context)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.RetrieveMultiple(EntityExpression entityExpression, DatabaseQueryTarget queryTarget, ExecutionContext context)
at Microsoft.Crm.ObjectModel.DependencyNodeService.CreateDataNodes(Int32 componentType, ExecutionContext context)
at Microsoft.Crm.ObjectModel.DependencyNodeService.CreateAllDependencyNodes(ExecutionContext context)
at Microsoft.Crm.Tools.Admin.PopulateDependencyNodesAction.Do(IDictionary parameters)
at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
--- End of inner exception stack trace ---, Error, RetryCancel, Option1
15:07:00| Info| InputResult: Retry
15:07:00| Info| CrmAction execution time; PopulateDependencyNodesAction; 00:01:52.0888761
15:07:09| Error| System.Exception: Action Microsoft.Crm.Tools.Admin.PopulateDependencyNodesAction failed. ---> Microsoft.Crm.CrmException: A non valid page number was received: 0
at Microsoft.Crm.BusinessEntities.PagingHelper.AddPagingFilters(EntityExpression entityExpression)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.DoRetrieveMultiple(BusinessEntityCollection entities, EntityExpression entityExp, DatabaseQueryTarget queryTarget, ExecutionContext context)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.RetrieveMultiple(EntityExpression entityExpression, DatabaseQueryTarget queryTarget, ExecutionContext context)
at Microsoft.Crm.ObjectModel.DependencyNodeService.CreateDataNodes(Int32 componentType, ExecutionContext context)
at Microsoft.Crm.ObjectModel.DependencyNodeService.CreateAllDependencyNodes(ExecutionContext context)
at Microsoft.Crm.Tools.Admin.PopulateDependencyNodesAction.Do(IDictionary parameters)
at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
--- End of inner exception stack trace ---, Error, RetryCancel, Option1
15:09:29| Info| InputResult: Retry
15:09:29| Info| CrmAction execution time; PopulateDependencyNodesAction; 00:02:29.2174578
15:09:41| Error| System.Exception: Action Microsoft.Crm.Tools.Admin.PopulateDependencyNodesAction failed. ---> Microsoft.Crm.CrmException: A non valid page number was received: 0
at Microsoft.Crm.BusinessEntities.PagingHelper.AddPagingFilters(EntityExpression entityExpression)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.DoRetrieveMultiple(BusinessEntityCollection entities, EntityExpression entityExp, DatabaseQueryTarget queryTarget, ExecutionContext context)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.RetrieveMultiple(EntityExpression entityExpression, DatabaseQueryTarget queryTarget, ExecutionContext context)
at Microsoft.Crm.ObjectModel.DependencyNodeService.CreateDataNodes(Int32 componentType, ExecutionContext context)
at Microsoft.Crm.ObjectModel.DependencyNodeService.CreateAllDependencyNodes(ExecutionContext context)
at Microsoft.Crm.Tools.Admin.PopulateDependencyNodesAction.Do(IDictionary parameters)
at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
--- End of inner exception stack trace ---, Error, RetryCancel, Option1
15:14:23| Info| InputResult: Retry
15:14:23| Info| CrmAction execution time; PopulateDependencyNodesAction; 00:04:53.7976013
15:14:37| Error| System.Exception: Action Microsoft.Crm.Tools.Admin.PopulateDependencyNodesAction failed. ---> Microsoft.Crm.CrmException: A non valid page number was received: 0
at Microsoft.Crm.BusinessEntities.PagingHelper.AddPagingFilters(EntityExpression entityExpression)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.DoRetrieveMultiple(BusinessEntityCollection entities, EntityExpression entityExp, DatabaseQueryTarget queryTarget, ExecutionContext context)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.RetrieveMultiple(EntityExpression entityExpression, DatabaseQueryTarget queryTarget, ExecutionContext context)
at Microsoft.Crm.ObjectModel.DependencyNodeService.CreateDataNodes(Int32 componentType, ExecutionContext context)
at Microsoft.Crm.ObjectModel.DependencyNodeService.CreateAllDependencyNodes(ExecutionContext context)
at Microsoft.Crm.Tools.Admin.PopulateDependencyNodesAction.Do(IDictionary parameters)
at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
--- End of inner exception stack trace ---, Error, RetryCancel, Option1
15:17:53| Info| InputResult: Retry
15:17:53| Info| CrmAction execution time; PopulateDependencyNodesAction; 00:03:30.1453826
15:18:06| Error| System.Exception: Action Microsoft.Crm.Tools.Admin.PopulateDependencyNodesAction failed. ---> Microsoft.Crm.CrmException: A non valid page number was received: 0
at Microsoft.Crm.BusinessEntities.PagingHelper.AddPagingFilters(EntityExpression entityExpression)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.DoRetrieveMultiple(BusinessEntityCollection entities, EntityExpression entityExp, DatabaseQueryTarget queryTarget, ExecutionContext context)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.RetrieveMultiple(EntityExpression entityExpression, DatabaseQueryTarget queryTarget, ExecutionContext context)
at Microsoft.Crm.ObjectModel.DependencyNodeService.CreateDataNodes(Int32 componentType, ExecutionContext context)
at Microsoft.Crm.ObjectModel.DependencyNodeService.CreateAllDependencyNodes(ExecutionContext context)
at Microsoft.Crm.Tools.Admin.PopulateDependencyNodesAction.Do(IDictionary parameters)
at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
--- End of inner exception stack trace ---, Error, RetryCancel, Option1
15:27:38| Info| InputResult: Retry
15:27:38| Info| CrmAction execution time; PopulateDependencyNodesAction; 00:09:45.1316894
15:27:48| Error| System.Exception: Action Microsoft.Crm.Tools.Admin.PopulateDependencyNodesAction failed. ---> Microsoft.Crm.CrmException: A non valid page number was received: 0
at Microsoft.Crm.BusinessEntities.PagingHelper.AddPagingFilters(EntityExpression entityExpression)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.DoRetrieveMultiple(BusinessEntityCollection entities, EntityExpression entityExp, DatabaseQueryTarget queryTarget, ExecutionContext context)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.RetrieveMultiple(EntityExpression entityExpression, DatabaseQueryTarget queryTarget, ExecutionContext context)
at Microsoft.Crm.ObjectModel.DependencyNodeService.CreateDataNodes(Int32 componentType, ExecutionContext context)
at Microsoft.Crm.ObjectModel.DependencyNodeService.CreateAllDependencyNodes(ExecutionContext context)
at Microsoft.Crm.Tools.Admin.PopulateDependencyNodesAction.Do(IDictionary parameters)
at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
--- End of inner exception stack trace ---, Error, RetryCancel, Option1
15:28:05| Info| InputResult: Cancel
15:28:05| Info| CrmAction execution time; PopulateDependencyNodesAction; 00:00:26.8205490
15:28:05| Error| Installer Complete: OrganizationCreator - Error encountered
15:28:05| Error| Exception occured during Microsoft.Crm.Tools.Admin.OrganizationCreator: Action Microsoft.Crm.Tools.Admin.PopulateDependencyNodesAction failed.
InnerException:
Microsoft.Crm.CrmException: A non valid page number was received: 0
at Microsoft.Crm.BusinessEntities.PagingHelper.AddPagingFilters(EntityExpression entityExpression)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.DoRetrieveMultiple(BusinessEntityCollection entities, EntityExpression entityExp, DatabaseQueryTarget queryTarget, ExecutionContext context)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.RetrieveMultiple(EntityExpression entityExpression, DatabaseQueryTarget queryTarget, ExecutionContext context)
at Microsoft.Crm.ObjectModel.DependencyNodeService.CreateDataNodes(Int32 componentType, ExecutionContext context)
at Microsoft.Crm.ObjectModel.DependencyNodeService.CreateAllDependencyNodes(ExecutionContext context)
at Microsoft.Crm.Tools.Admin.PopulateDependencyNodesAction.Do(IDictionary parameters)
at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
15:28:05| Info| Setting organization state. New state = Failed
15:28:05| Error| Create new Organization (Name=0b9c469e-e87f-e111-904b-00155d031413, Id=DemoXRM) failed with Exception:
System.Exception: Action Microsoft.Crm.Tools.Admin.PopulateDependencyNodesAction failed. ---> Microsoft.Crm.CrmException: A non valid page number was received: 0
at Microsoft.Crm.BusinessEntities.PagingHelper.AddPagingFilters(EntityExpression entityExpression)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.DoRetrieveMultiple(BusinessEntityCollection entities, EntityExpression entityExp, DatabaseQueryTarget queryTarget, ExecutionContext context)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.RetrieveMultiple(EntityExpression entityExpression, DatabaseQueryTarget queryTarget, ExecutionContext context)
at Microsoft.Crm.ObjectModel.DependencyNodeService.CreateDataNodes(Int32 componentType, ExecutionContext context)
at Microsoft.Crm.ObjectModel.DependencyNodeService.CreateAllDependencyNodes(ExecutionContext context)
at Microsoft.Crm.Tools.Admin.PopulateDependencyNodesAction.Do(IDictionary parameters)
at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
--- End of inner exception stack trace ---
at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
at Microsoft.Crm.Setup.Common.Installer.Install(IDictionary stateSaver)
at Microsoft.Crm.Tools.Admin.OrganizationOperation.Install(IDictionary stateSaver)
at Microsoft.Crm.Tools.Admin.OrganizationCreator.Install(IDictionary stateSaver)
at Microsoft.Crm.Tools.Admin.OrganizationOperation.Execute()
at Microsoft.Crm.Tools.Admin.OrganizationCreator.Execute()
at Microsoft.Crm.Tools.Admin.CreateOrganizationInstaller.Create(ICreateOrganizationInfo organizationInfo)
15:28:05| Info| GetDBUpdateRevisionThresholdForServer(): Threshold = 1992.
<o:p></o:p>
Emanuele Minelli Metisoft S.p.A.
Friday, April 6, 2012 2:17 PM
Answers
-
I had a customer ping me about this issue this week as well and they worked with our Microsoft CRM support team to figure out the issue and a workaround for now while we fix the issue in a future Update Rollup.
Here is part of his reply to me on the workaround: “Apparently the problem lies within the registry entries in this KB 911510. We didn’t have the MaxRowsPerPage entry, but we did have the TurnOffFetchThrottling entry and it was set to 1. I set it to 0 and was able to successfully create the Organization.”
Hopefully this works for you guys as well while we work on a permanent fix.
Thanks!
Shawn Dieken
Microsoft Dynamics CRM Premier Field Engineer
- Proposed as answer by Shawn DiekenMicrosoft employee Friday, May 18, 2012 12:42 AM
- Marked as answer by OriginalGrunge Friday, May 18, 2012 10:32 AM
Friday, May 18, 2012 12:40 AM
All replies
-
I too have a demo server (exact same config as poster, including hyper-v) installed about two months ago. The original organization had no issues and i was able to demostrate various customizations and outlook integration with the client. No rollups installed since.
Now i have been trying for the past week (couple attempts a day) to test an upgrade of a crm 4 database, which has fail repeatedly for the error message above. Finally i tried creating a new org and still recieve the same error. I have restarted multiple times, uninstall and reinstalled, and still recieve the same error when creating a new organziation. I will add some additional notes about the configuration:
OS Drive: 33GB/9GB Free - Data Drive: 60GB/20GB Free
16GB RAM (Sql capped at 8GB)
Import DB Size: 5.5G (included in the data drive usage)
Attempting on a non-hyper-v machine right now.
Any help would be appreciated, Thanks!
-Tony
Tony Latta
Friday, April 6, 2012 2:58 PM -
Hi Tony,
Since I can not create a new Org i tryed to Import a new org from another CRM 2011 deploy. The Import was successful. Not a resolution but a mean to keep going.
Hopefully someone can help,
Emanuele Minelli Metisoft S.p.A.
Friday, April 6, 2012 4:08 PM -
Hi, I am facing the exact same problem after UR6 installation...
Hope that someone can help too.
Thursday, April 12, 2012 1:01 PM -
Well this might not be terribly helpful, but I ran into the same problem trying to import and upgrade a 4.0 database, went and ran the scripts (after the fact) from KB968520, and then tried the import again and it worked the second time.
Still don't know what the problem was the first time around, but since it worked on try 2 I'm calling it good enough. Hope that helps!
Friday, April 13, 2012 7:51 PM -
I had a customer ping me about this issue this week as well and they worked with our Microsoft CRM support team to figure out the issue and a workaround for now while we fix the issue in a future Update Rollup.
Here is part of his reply to me on the workaround: “Apparently the problem lies within the registry entries in this KB 911510. We didn’t have the MaxRowsPerPage entry, but we did have the TurnOffFetchThrottling entry and it was set to 1. I set it to 0 and was able to successfully create the Organization.”
Hopefully this works for you guys as well while we work on a permanent fix.
Thanks!
Shawn Dieken
Microsoft Dynamics CRM Premier Field Engineer
- Proposed as answer by Shawn DiekenMicrosoft employee Friday, May 18, 2012 12:42 AM
- Marked as answer by OriginalGrunge Friday, May 18, 2012 10:32 AM
Friday, May 18, 2012 12:40 AM -
Thanks a lot Shawn, it works.
I hope the permanent fix will arrive soon :)
Emanuele Minelli Metisoft S.p.A.
Friday, May 18, 2012 10:53 AM