{"id":6119,"date":"2014-04-13T03:01:00","date_gmt":"2014-04-13T03:01:00","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/13\/dynamics-forumscrm-developmentrelated-issues-collection-of-common-programming-errors-2\/"},"modified":"2014-04-13T03:01:00","modified_gmt":"2014-04-13T03:01:00","slug":"dynamics-forumscrm-developmentrelated-issues-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/13\/dynamics-forumscrm-developmentrelated-issues-collection-of-common-programming-errors-2\/","title":{"rendered":"dynamics-forums,crm-developmentRelated issues-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\ndynamics-forums crm<br \/>\nI am trying to set up a new install of the CRM email router. Once I get past the Accept license agreement I get the error.Action Microsoft.Crm.Setup.Common.AnalyzerCollectAction Failed. Fatal error during installationI am installing on Windows Server 2008R2 Standard SP1 64 BitI am using software version\u00a0&#8211; CRM2011-Router-ENU-amd64.exe \u00a0&#8211; 05.00.9688.583I don\u2019t understand the error what can I check?Thanks!-Jim<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\ndynamics-forums crm<br \/>\nDear all,When I navigate to Microsoft Dynmaics CRM there is no problem. But when I open the opportunity\/quotes entiy on a contact it get this error message:Warning: Fatal error 9001 occurred at Sep 26 2011 \u00a09:48AM. Note the error and time, and contact your system administrator.I checked the log on the database server and the database tempdb is missing.Anyone has a clue?Best,Jeppen<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\ndynamics-forums crm<br \/>\nI did a little reading and all I could find are people having trouble with these Scheduled Jobs in CRM 3.0. We upgraded from CRM 3.0 to CRM 4.0 and these two jobs failed over and over again. We disabled them both and everything seems to run fine. I also found a post explaining that these are the only two jobs that don&#8217;t appear in CRM 4.0. I guess the question is, &#8220;Does anyone else have these jobs on their CRM 4.0, and if so are they failing?&#8221;They are in SQL server agent &#8211;&gt; Jobs. Da<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\ndynamics-forums crm<br \/>\nI have an issue with one of our CRM deployments.\u00a0 The automated &#8220;Update Contract States&#8221; job is failing every time it tries to run.\u00a0 In the SQL Server&#8217;s log, we&#8217;re finding a login failure for &#8220;%company%\\CRM$ Reason: failed to open the explicitly defined database [CLIENT: %IP Address%]&#8221;.The CRM user has proper access to the SQL database, so I&#8217;m baffled as to what else might be failing.\u00a0 This deployment is on Update Rollup 7.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\ndynamics-forums crm-development<br \/>\nHi,I need to change the datepicker and all those calendars in CRM 2011 to my native calendar which is PersianCalendar.As you may know we have this calendar in .net in System.Globalization.Is there anyway to change the calendar to our native (.net known) calendar in CRM web client?thanks in advanceBrainstorm your Brain and find solution,if no result stuck to Brainstormer.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\ndynamics-forums crm-development<br \/>\nI have a small \u00a0question here. \u00a0Suppose I am updating a child entity or parent entity using C# code, and my update code is failed for parent or child. What will happen to other entity (i.e. child or parent). Will everything be roll-backed or we have to do it explicitly.Thanks RegardsPrashanthThanks Regards Prashanth Kamasamudram Even the least work done for others awakens the power within; even thinking the least good of others gradually instills into the heart the strength of a lion.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\ndynamics-forums crm<br \/>\nI am attempting to install CRM 4.0 on the Windows 2008 server (2nd in an SBS 2008 Premium domain) and have an errror where the install fails and cannot be uninstalled sucessfully.\u00a0 the error pops up after the install files have been copied and the actualinstall is proceeding.the error reads ActionMicrosoft.Crm.Setup.Server.AddServiceAccountsToSqlAccessGroupAction failed.the directory property cannont be found in the cache.I have searched and have been unable to find any reference to this er<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\ndynamics-forums crm-deployment<br \/>\nHello!We are CRM 2011 Service providers and have CRM 2011 installation with claims based authentication.When\u00a0I\u00a0try to open \\XRMServices\\2011\\OrganizationData.svc\u00a0\u00a0I get exception:Exception generated at: 02.08.2011 0:45:32Error Type: System.Web.HttpExceptionError Message: Failed to Execute URL.Error Stack Trace: System.Web.HttpException (0x80004005): Failed to Execute URL.\u00a0\u00a0 at System.Web.Hosting.ISAPIWorkerRequestInProcForIIS6.BeginExecuteUrl(String url, String meth<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\ndynamics-forums crm<br \/>\nHI Guys,try{\/\/ STEP 1: Instantiate and configure the CrmDiscoveryService Web service.CrmDiscoveryService discoveryService = new CrmDiscoveryService();discoveryService.UseDefaultCredentials = true;discoveryService.Url = String.Format(&#8220;http:\/\/{0}:{1}\/MSCRMServices\/2007\/{2}\/CrmDiscoveryService.asmx&#8221;,_hostname, _port, &#8220;AD&#8221;);\/\/ STEP 2: Retrieve the organization name and endpoint Url from theB\/\/ CrmDiscoveryService Web service.RetrieveOrganizationsRequest orgRequest = new RetrieveO<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\ndynamics-forums crm-deployment<br \/>\nHello everyone,We have been dealing with a very frustrating issue for the past two months, considering the deployment of a CRM 2011 Partner Hosted infrastructure.The network is consisted of 2 front end servers in NLB configuration, 1 back end server and 1 SQL server.Following Microsoft&#8217;s deployment guide, the infrastructure works fine, before configuring Claims authentication. That is, before enabling claims authentication, everything works as it should, both nodes respond correctly and there ar<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\ndynamics-forums crm-development<br \/>\nHi,I need to change the datepicker and all those calendars in CRM 2011 to my native calendar which is PersianCalendar.As you may know we have this calendar in .net in System.Globalization.Is there anyway to change the calendar to our native (.net known) calendar in CRM web client?thanks in advanceBrainstorm your Brain and find solution,if no result stuck to Brainstormer.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\ndynamics-forums crm-development<br \/>\nI have a small \u00a0question here. \u00a0Suppose I am updating a child entity or parent entity using C# code, and my update code is failed for parent or child. What will happen to other entity (i.e. child or parent). Will everything be roll-backed or we have to do it explicitly.Thanks RegardsPrashanthThanks Regards Prashanth Kamasamudram Even the least work done for others awakens the power within; even thinking the least good of others gradually instills into the heart the strength of a lion.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\ndynamics-forums crm-development<br \/>\nWhen i am trying to insert record in Entity in crm4.0 using web services in SSIS Script Component i got this error please help meThe request failed with HTTP status 400: Bad Request.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 SC_9b8cb6f38b324ceeb4981e80f6876611.csproj.CRM.CrmServ<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\ndynamics-forums crm-development<br \/>\nHi,I am using ExportXmlRequest\u00a0to export the formxml for an entity. It works fine in the server &amp;\u00a0outlook client\u00a0when its online. But when i go offline the request execution fails and throws an exception saying server was unable to processthe request.Is it happening because in offline mode CRM doesn&#8217;t expose the customizations?? Is there any alternate way to get the formxml in offline mode??Regards,Lalitesh<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\ndynamics-forums crm-development<br \/>\ncreated the project, added the rdl but it won&#8217;t open in design.\u00a0 The error:Warning\u00a01\u00a0Deserialization failed: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 =IIF( Parameters!HGroupby2.Value = &#8220;Null&#8221; and\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Parameters!VGroupby2.Value = &#8220;Null&#8221;, False, True)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 is not a valid value. Line 4, position 13.\u00a0\u00a04\u00a00\u00a0<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\ndynamics-forums crm-development<br \/>\nI have a workflow triggered on CREATE.It is running as the Owner of the Workflow.It is sending emails out but they are failing because I am using the Entity Owner in the From field.The workaround is to log in as each user and set &#8220;Allow other users to send emails as me&#8221; option.\u00a0 All is now well.\u00a0 However i don&#8217;t like it at all.It seems that you can&#8217;t get access to the Workflow Owner within the Send Email Worrkflow Step,Can I get this Workflow Owner into the From field dynamic<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\ndynamics-forums crm-development<br \/>\nI have noticed few error logs in CRM trace for a couple of users. I am not sure on what actions these errors are triggered. I attached the stack trace below. And when I verified the PrivilegeId in CRM and it represents prvReadService.at CrmException..ctor(String message, Int32 errorCode)at CrmSecurityException..ctor(String message, Int32 errorCode)at SecurityLibrary.CheckPrivilege(Guid user, Guid privilege, ExecutionContext context)at SecurityExtension.PreRetrieveHandlerEntityPrivilegeCheck(Obje<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\ndynamics-forums crm-development<br \/>\nHiI&#8217;ve developed some custom web pages that are sitting under the ISV folder of CRM4. When the CRM was set to use the standard protocal and port number 5555 the pages loaded fine.However, when the CRM site was switced to use SSL on the default port of 443, the custom webpages are timing out. I don&#8217;t think CRM can find the pages! The rest of CRM seems to be functioning fine, its just the pages under the ISV folder.To complicate things slightly, our deployment is multi-tenancy, but as I stated CRM<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\ndynamics-forums crm-development<br \/>\nI&#8217;m getting the following error when a plugin running in the sandbox executes in my environment:The plug-in execution failed because no Sandbox Hosts are currently available. Please check that you have a Sandbox server configured and that it is running.I look at the trace log and I see one for the HostService with the following entry:[2011-04-22 11:34:45.781] Process:Microsoft.Crm.Sandbox.HostService |Organization:00000000-0000-0000-0000-000000000000 |Thread:\u00a0\u00a0 77 |Category: Exception<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\ndynamics-forums crm-development<br \/>\nI&#8217;m currently creating an aspx page to get the details of a custom entity (new_customproduct)\u00a0I&#8217;ve created in CRM 4. As per the SDK I&#8217;m using this code to retrieve one of the entity objects, but am getting &#8220;The request failed with HTTP status 400: Bad Request&#8221;CrmAuthenticationToken token = new CrmAuthenticationToken();token.AuthenticationType = 0;token.OrganizationName = &#8220;OrgName&#8221;;CrmService service = new CrmService();service.Url += &#8220;http:\/\/crmserver\/MSCRMServices\/2007\/c<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>msdn dynamics-forums crm I am trying to set up a new install of the CRM email router. Once I get past the Accept license agreement I get the error.Action Microsoft.Crm.Setup.Common.AnalyzerCollectAction Failed. Fatal error during installationI am installing on Windows Server 2008R2 Standard SP1 64 BitI am using software version\u00a0&#8211; CRM2011-Router-ENU-amd64.exe \u00a0&#8211; 05.00.9688.583I don\u2019t understand the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6119","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6119"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6119\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}