{"id":6070,"date":"2014-04-12T02:59:31","date_gmt":"2014-04-12T02:59:31","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/12\/dynamics-forumscrm-developmentrelated-issues-collection-of-common-programming-errors\/"},"modified":"2014-04-12T02:59:31","modified_gmt":"2014-04-12T02:59:31","slug":"dynamics-forumscrm-developmentrelated-issues-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/12\/dynamics-forumscrm-developmentrelated-issues-collection-of-common-programming-errors\/","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-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<br \/>\nHallo ZusammenIch habe folgendes Problem. Ich kann bei Contacts, Acounts keinen neuen Owner zuweisen.Wir benutzen CRM 4.0 rollout 10. Mir sagt die Fehlermedlung sehr wenig. \u00dcber hilfreiche Tipps w\u00fcrde ich mich freuen.&#8212;&#8212;&#8212;&#8212;-Ich habe etwas herausgefunden:Crm Exception: Message: , ErrorCode: -2147204784, InnerException: System.Data.SqlClient.SqlException: Invalid column name &#8216;q&#8217;.auf was f\u00fcr eine Spalte wil er da zugreifen?Kann mir jemand sagen wie ich dan die SQL abfrage komme<\/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-deployment<br \/>\n\u00a0Hi,I&#8217;m installing CRM4 (with offline access) on a new Vista PC and I&#8217;m getting an error &#8220;Indexing Service is not running&#8221; and &#8220;failed to validate Index Service&#8221;.\u00a0 I have SQL Server 2005 installed and Vista has installed all the mandatory updates.Looking around the net I&#8217;ve found references to the indexing service has changed between releases of SQL and CRM 4 is looking for the previous version.\u00a0 However, I can&#8217;t find any further information.Can anyone point me in the right d<\/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 \/>\nI have a user on the support team who reconfigures to different environments many times a day, always with the same AD Credentials.\u00a0 He recently started getting the following message when trying to reconfigure:The Configuration Wizard was unable to verify whether Microsoft Outlook is running. Please confirm that Outlook is not running and then continue with Setup.I verified that Outlook.exe and anything else outlook related is not on his task manager, so it is closed.\u00a0If I select OK, t<\/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,I recently upgraded from Office 2003 to Office 2007 on my XP SP2 laptop\u00a0w\/out uninstalling MSCRM 3.0. Went thru manual install as recommended in MS KB and ran MS CRM Laptop Client (Rollup 1). All environment checks went OK except one. Here&#8217;s what is in the log:13:49:02|Verbose| Method exit: Microsoft.Crm.Tools.EDW.Framework.SNGBuilder.ProcessSubstitutions13:49:02|Verbose| Method entry: Microsoft.Crm.Tools.EDW.Framework.EDWTool.RunSnifferValidate Microsoft Outlook\u00ae13:49:02|Verbose| Calling Bas<\/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<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 an existing Silverlight web resource application. I have a few queries\u00a0based OptionSet fields and I want to add an additional query using a filter on a Boolean field, but I haven&#8217;t been able get it working. Using DataServiceQuery&lt;Account&gt;and AddQueryOption, I have tried to add a filter in several different ways, but the query fails every time. It seems like it doesn&#8217;t recognize the &#8220;Value&#8221; attribute..AddQueryOption(&#8220;$filter&#8221;, &#8220;CreditOnHold\/Value eq True<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>msdn dynamics-forums crm-development I 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 [&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-6070","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6070","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=6070"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6070\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6070"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}