Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all 46379 articles
Browse latest View live

Workflow Timeout problems

$
0
0

Goodday,

We have Dynamics CRM 365 On-Premise 8.2.0.749

I have some problems with a workflow (async) that contains a Timeout.

  1. The workflow has a timeout until a certain date (or time, doesn't matter I have done a test with a timeout of 5 minutes). When it reaches the timeout it is told to do a check if a certain date is filled with a action if the date is indeed filled.
    The problem is that if the date is filled when the workflow is triggered, then emptied, when the timeout is reached the check still sees the date as filled and not as empty! 
    Does a timed-out workflow also 'remember' the values on the record from when the workflow was triggered?

  2. The workflow has a timeout to a date filled on the Case. The workflow is triggered on creation of the Case, or a change of the date field. If we empty the field, it also triggers the workflow with a time-out to 31-12-9999 (7.981 years from now)

Is it possible to remove text appended to Business Process Error popup

$
0
0

I have real time workflow, It's trigger point is opportunity status change "Closed Won". My requirement is to show only messages configured, I don't want to show highlighted things to end user.

Is it possible in MSCRM Online 8.2 version.. ?

Performance Tool service

$
0
0

Hello, 

I notice that the account Form was running Slow so I ran the Performance tool and received this (see below) for Select Major. Can someone point me on the right direction on getting this fixed?? 

Form Load Start (-> 0 ms)

RequestNotesControlLayout_Start (-> 2594 ms)
Turbo Form Load Start (-> 2881 ms)
Page Ready for Data Bind (-> 3300 ms)
Data Ready (-> 3309 ms)
Custom Script Frame Loaded (-> 3482 ms)
PageLoadedWithRibbonData (-> 3581 ms)
TurboFormPreOnloadTimestamp (-> 3656 ms)
TurboFormPostOnloadTimestamp (-> 3666 ms)
MDDEnd (-> 3666 ms)
ControlsInitializationCompleteTimestamp (-> 3945 ms)
CommandBar Rendered (-> 4384 ms)
AllSubgridsLoaded (-> 4780 ms)

CSV

Marker,Start,End,Duration
"PageManager.LoadHandler",1521153124096,1521153124099,3
"RemoteCommand.Execute - {""IsAsync"":true,""Service"":""MessageBar"",""ReqId"":""1a831b51-fe06-4f29-97cd-b8ea862e994c""}",1521153126077,1521153126389,312
"RequestNotesControlLayout",1521153126656,1521153126666,10
"Update ProcessId From Local Storage",1521153126952,1521153126952,0
"OnLoadStarted handlers",1521153126959,1521153126963,4
"Request Form Layout",1521153126969,1521153126976,7
"Parse Form Layout Response Json",1521153126981,1521153126986,5
"Process Entity Metadata",1521153126992,1521153126992,0
"Process inline edit subgrids",1521153126996,1521153126996,0
"Style Includes",1521153127001,1521153127002,1
"Script Includes",1521153127008,1521153127018,10
"Layout Variable Includes",1521153127024,1521153127028,4
"Inject Layout Includes to Page",1521153127000,1521153127033,33
"Render Form Layout",1521153127037,1521153127066,29
"Initialize Application Components",1521153127074,1521153127077,3
"Process Form Layout",1521153126992,1521153127084,92
"DataSource.Initialize",1521153127089,1521153127627,538
"PageManager.LoadHandler",1521153127093,1521153127099,6
"Load Form",1521153126944,1521153127099,155
"CrmSoapServiceBase.ExecuteRequest - {""IsAsync"":true,""ReqId"":""7530f987-5b7d-4081-94c2-30b0f77bdeb9""}",1521153126963,1521153127158,195
"AF_RetrieveRecordWall_Render",1521153127204,1521153127208,4
"Build Page View Model",1521153127217,1521153127231,14
"Build Page Views",1521153127238,1521153127252,14
"FormNavControls.Initialize",1521153127268,1521153127269,1
"Initialize Xrm Controls and Data",1521153127216,1521153127287,71
"Build Page View Model",1521153127295,1521153127297,2
"Build Page Views",1521153127302,1521153127303,1
"FormNavControls.Initialize",1521153127309,1521153127309,0
"Bind Xrm to HTML",1521153127295,1521153127344,49
"ProcessControl.InitializePageObjects",1521153127351,1521153127351,0
"InitializeProcessControl",1521153127351,1521153127354,3
"OnLayoutReady handlers",1521153127358,1521153127358,0
"Waiting for data ready before BindData",1521153127362,1521153127362,0
"Waiting for layout ready before BindData",1521153127366,1521153127366,0
"Process Cached Layout",1521153127371,1521153127373,2
"Data Variable Includes",1521153127378,1521153127380,2
"Load PBL Webresource",1521153127384,1521153127384,0
"Create Common Controls",1521153127388,1521153127396,8
"Bind Form Data for form: 8448b78f-8f42-454e-8e2a-f8196b0419af",1521153127404,1521153127416,12
"LoadProcessControl",1521153127422,1521153127422,0
"ProcessControl.PostInitialize",1521153127426,1521153127426,0
"FinalizeProcessControl",1521153127429,1521153127429,0
"Bind FormData to Process Control",1521153127422,1521153127433,11
"Form RibbonLayout Request - Async",1521153127439,1521153127439,0
"Initialize Command Bar",1521153127439,1521153127443,4
"Non-Form RibbonLayout Request - Async",1521153127448,1521153127449,1
"InitializeBingMapControl",1521153127459,1521153127459,0
"Execute OnLoad for form: 8448b78f-8f42-454e-8e2a-f8196b0419af",1521153127453,1521153127468,15
"Bind Data",1521153127404,1521153127474,70
"OnDataBound handler",1521153127478,1521153127478,0
"Create Quick Form",1521153127482,1521153127482,0
"Create Record Set Control",1521153127485,1521153127487,2
"Add Item to MRU",1521153127492,1521153127493,1
"Bind Data and Create Controls",1521153127371,1521153127498,127
"Script Frame OnLoad",1521153127545,1521153127547,2
"RemoteCommand.Execute - {""IsAsync"":true,""Service"":""RecentlyViewedWebService"",""ReqId"":""70d23571-2065-4c8b-a2bb-559fe7634d75""}",1521153127097,1521153127555,458
"Waiting for Form Ribbon Layout Response to evaluate Subgrid Ribbon Layouts",1521153127583,1521153127593,10
"BingMapLoad",1521153127459,1521153127671,212
"Run form Onload method: SendMessageToPageManager",1521153127709,1521153127709,0
"Run form Onload method: Mscrm.BusinessRulesScript.Initialize",1521153127716,1521153127716,0
"Run form Onload method: CreateTurboFormPreOnLoadPerfMarker",1521153127718,1521153127719,1
"Run form Onload method: showNewsSection",1521153127723,1521153127723,0
"UI Update 1",1521153127728,1521153127993,265
"Post OnLoad UI Update",1521153127728,1521153128001,273
"Request SubGrid Data",1521153128007,1521153128018,11
"Request Subgrids Data",1521153128007,1521153128025,18
"Edit-Ready (pre-onload)",1521153124062,1521153127719,3657
"Edit-Ready (post-onload)",1521153124062,1521153127728,3666
"Complete Load",1521153124062,1521153128007,3945
"Handle Post OnLoad",1521153127728,1521153128048,320
"Run form Onload method: SendMessageToPageManager",1521153127728,1521153128053,325
"Run form Onload method: FireDataLoad",1521153128059,1521153128059,0
"LoadCommandBarData",1521153128093,1521153128452,359
"BuildCommandBar",1521153128099,1521153128433,334
"Append Script: /{636559318600000339}/WebResources/ptm_AMEnableScript",1521153128113,1521153128116,3
"Run form Onload method: SendMessageToPageManager",1521153128123,1521153128123,0
"Append Script: /{636559318600000339}/WebResources/ptm_EnabledRuleCheck",1521153128256,1521153128259,3
"Run form Onload method: SendMessageToPageManager",1521153128265,1521153128265,0
"Fire Global PageLoaded Event",1521153128091,1521153128454,363
"Refresh NavBar",1521153128462,1521153128488,26
"RemoteCommand.Execute - {""IsAsync"":true,""Service"":""LookupService"",""ReqId"":""d8df82fd-75de-42db-a9a8-c1da33c322a8""}",1521153128029,1521153128512,483
"Bind Subgrid_Associated_Applications",1521153128522,1521153128569,47
"Bind Subgrid_PreFundedFunded",1521153128576,1521153128606,30
"Bind Subgrid_News",1521153128613,1521153128627,14
"Bind Subgrid_Contacts",1521153128632,1521153128660,28
"Bind Subgrid_Owners",1521153128666,1521153128694,28
"Bind Subgrid_subgrid_Entitlement",1521153128700,1521153128725,25
"Bind Subgrid_ChildAccounts",1521153128732,1521153128832,100
"Server: System Plugins",1521153124062,1521153124065,3
"Server: Pipeline30",1521153124062,1521153124064,2
"Server: SDK Total",1521153124062,1521153124072,10
"Server: SQL Total",1521153124062,1521153124077,15
"Server: ExecutionTime",1521153124062,1521153124249,187

Custom form

$
0
0

Dears,


I need to visualize values ​​of a client entity within the offer, any ideas?

Sales Navigator And Dynamics 365 Integration

$
0
0

Whenever I am clicking on enable crm sync checkbox it gives me an error that “ Unable to sync because a user with the same e-mail address could not be found in the CRM

Please provide me solution as quick as possible

Subgrid Inline Lookup filtering on create

$
0
0

Hi Guys,

Is it possible to attach custom filter on inline subgrid lookup.I know its possible via unsupported way but wanted to check if we can achieve this in suppoorted manner.

Regards,

Shaminder

Restrict closing tasks if child tasks are open

$
0
0

Hello all,

I have added a sub-grid on the Task entity form relating to Tasks. Within that sub-grid I have child tasks that nee to be completed for the parent task. Is there a way that I can restrict the parent task from being closed if any children tasks are still active?

Thank You in advance.

Leibish Ringel

Making change to Case Activity Section

$
0
0

I was wondering what the proper way to go through and make changes to the Phone Call section under Activities when making a new case. I would like to add the duration field to this specific form. I have been unable to determine what entity or form under the Phone Call entity controls this


deactivating workflow using web api generates error

$
0
0

I am trying to deactivate workflow (the definition workflow) I own using the web api, however, I get an error. The C# examples that I found suggest that this was all that was necessary to "publish/deactivate."

Thoughts?

web api payload:

{ "statecode": 0, "statuscode": 1 }

error:

{

"error": {
"code": "0x80045002",
"message": "Cannot update a published workflow definition.",
"innererror": {
"message": "Cannot update a published workflow definition.",
"type": "System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]",

...

}

Limit in amount of link-entity in editing XML charts?

$
0
0

I'm editing a StackedBar chart with XML forcing it show all departments instead of the out of the box chart only showing it when there's a record found.

I have about 14 departments all with a filter like this in the XML:

<link-entity name="incident" from="incidentid" to="incidentid" link-type="outer">
              <attribute alias="Accountmanagement" name="qss_afdelingprs" aggregate="countcolumn" />
              <filter>
                <condition attribute="qss_afdelingprs" value="865650000" operator="eq" />
              </filter>
            </link-entity> 

Once I try to add the 11th one and import it, the import throws the error that the XML is invalid. Removing the 11th line fixes it.

It makes me wonder is there a limit to how many link-entities I can add to an XML ?

Full XML here:

<visualization>
  <visualizationid>{3513DD02-F317-E811-8123-E0071B6E1431}</visualizationid>
  <name>Klachten per dag per afdeling (laatste 5 werkdagen)</name>
  <primaryentitytypecode>incident</primaryentitytypecode>
  <datadescription>
    <datadefinition>
      <fetchcollection>
        <fetch mapping="logical" aggregate="true">
          <entity name="incident">
            <attribute groupby="true" alias="gemaaktop" name="createdon" dategrouping="day" />			
            <link-entity name="incident" from="incidentid" to="incidentid" link-type="outer">
              <attribute alias="Overige" name="qss_afdelingprs" aggregate="countcolumn" />
              <filter>
                <condition attribute="qss_afdelingprs" value="717790000" operator="eq" />
              </filter>
            </link-entity>
            <link-entity name="incident" from="incidentid" to="incidentid" link-type="outer">
              <attribute alias="FreelanceZZP" name="qss_afdelingprs" aggregate="countcolumn" />
              <filter>
                <condition attribute="qss_afdelingprs" value="717790001" operator="eq" />
              </filter>
            </link-entity>
            <link-entity name="incident" from="incidentid" to="incidentid" link-type="outer">
              <attribute alias="Accountmanagement" name="qss_afdelingprs" aggregate="countcolumn" />
              <filter>
                <condition attribute="qss_afdelingprs" value="865650000" operator="eq" />
              </filter>
            </link-entity>
			<link-entity name="incident" from="incidentid" to="incidentid" link-type="outer">
              <attribute alias="Boekhouding" name="qss_afdelingprs" aggregate="countcolumn" />
              <filter>
                <condition attribute="qss_afdelingprs" value="865650001" operator="eq" />
              </filter>
            </link-entity>
			<link-entity name="incident" from="incidentid" to="incidentid" link-type="outer">
              <attribute alias="Contractadministratie" name="qss_afdelingprs" aggregate="countcolumn" />
              <filter>
                <condition attribute="qss_afdelingprs" value="865650002" operator="eq" />
              </filter>
            </link-entity>
			<link-entity name="incident" from="incidentid" to="incidentid" link-type="outer">
              <attribute alias="Debiteurenbeheer" name="qss_afdelingprs" aggregate="countcolumn" />
              <filter>
                <condition attribute="qss_afdelingprs" value="865650003" operator="eq" />
              </filter>
            </link-entity>
			<link-entity name="incident" from="incidentid" to="incidentid" link-type="outer">
              <attribute alias="Salarisadministratie" name="qss_afdelingprs" aggregate="countcolumn" />
              <filter>
                <condition attribute="qss_afdelingprs" value="865650006" operator="eq" />
              </filter>
            </link-entity>			
			<link-entity name="incident" from="incidentid" to="incidentid" link-type="outer">
              <attribute alias="Support" name="qss_afdelingprs" aggregate="countcolumn" />
              <filter>
                <condition attribute="qss_afdelingprs" value="865650009" operator="eq" />
              </filter>
            </link-entity>
			<link-entity name="incident" from="incidentid" to="incidentid" link-type="outer">
              <attribute alias="Urenadministratie" name="qss_afdelingprs" aggregate="countcolumn" />
              <filter>
                <condition attribute="qss_afdelingprs" value="865650010" operator="eq" />
              </filter>
            </link-entity>
			<link-entity name="incident" from="incidentid" to="incidentid" link-type="outer">
              <attribute alias="Verzuim" name="qss_afdelingprs" aggregate="countcolumn" />
              <filter>
                <condition attribute="qss_afdelingprs" value="865650011" operator="eq" />
              </filter>
            </link-entity>
			<link-entity name="incident" from="incidentid" to="incidentid" link-type="outer">
              <attribute alias="InterneControle_Kwaliteit" name="qss_afdelingprs" aggregate="countcolumn" />
              <filter>
                <condition attribute="qss_afdelingprs" value="865650004" operator="eq" />
              </filter>
            </link-entity>
			<attribute alias="MarketingCommunicatie" name="qss_afdelingprs" aggregate="count" />
			<attribute alias="loldesk" name="qss_afdelingprs" aggregate="countcolumn" />
			<attribute alias="prssales" name="qss_afdelingprs" aggregate="count" />
          </entity>
        </fetch>
      </fetchcollection>
      <categorycollection>
        <category alias="gemaaktop">
          <measurecollection>
            <measure alias="Overige" />
          </measurecollection>
          <measurecollection>
            <measure alias="FreelanceZZP" />
          </measurecollection>
		  <measurecollection>
            <measure alias="Accountmanagement" />
          </measurecollection>
		  <measurecollection>
            <measure alias="Boekhouding" />
          </measurecollection>
		  <measurecollection>
            <measure alias="Contractadministratie" />
          </measurecollection>
		  <measurecollection>
            <measure alias="Debiteurenbeheer" />
          </measurecollection>
		  <measurecollection>
            <measure alias="InterneControle_Kwaliteit" />
          </measurecollection>
		  <measurecollection>
            <measure alias="MarketingCommunicatie" />
          </measurecollection>
		  <measurecollection>
            <measure alias="Salarisadministratie" />
          </measurecollection>
		  <measurecollection>
            <measure alias="prssales" />
          </measurecollection>
		  <measurecollection>
            <measure alias="loldesk" />
          </measurecollection>
		  <measurecollection>
            <measure alias="Support" />
          </measurecollection>
		  <measurecollection>
            <measure alias="Urenadministratie" />
          </measurecollection>
		  <measurecollection>
            <measure alias="Verzuim" />
          </measurecollection>
        </category>
      </categorycollection>
    </datadefinition>
  </datadescription>
  <presentationdescription>
    <Chart Palette="None" PaletteCustomColors="91,151,213; 237,125,49; 160,116,166; 255,192,0; 68,114,196; 112,173,71; 37,94,145; 158,72,14; 117,55,125; 153,115,0; 38,68,120; 67,104,43; 124,175,221; 241,151,90; 186,144,192; 255,205,51; 105,142,208; 140,193,104; 50,125,194; 210,96,18; 150,83,159; 204,154,0; 51,90,161; 90,138,57;">
      <Series>
			<Series ChartType="StackedBar" LegendText="Overige" Color="Red" IsValueShownAsLabel="True" LabelFormat="#,0;(#,0);''" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40" />	
			<Series ChartType="StackedBar" LegendText="Freelance/ZZP" Color="LightsteelBlue" IsValueShownAsLabel="True" LabelFormat="#,0;(#,0);''" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40" />
			<Series ChartType="StackedBar" LegendText="Accountmanagement" Color="LightsteelBlue" IsValueShownAsLabel="True" LabelFormat="#,0;(#,0);''" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40" />
			<Series ChartType="StackedBar" LegendText="Boekhouding" Color="LightsteelBlue" IsValueShownAsLabel="True" LabelFormat="#,0;(#,0);''" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40" />
			<Series ChartType="StackedBar" LegendText="Contractadministratie" Color="LightsteelBlue" IsValueShownAsLabel="True" LabelFormat="#,0;(#,0);''" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40" />
			<Series ChartType="StackedBar" LegendText="Debiteurenbeheer" Color="LightsteelBlue" IsValueShownAsLabel="True" LabelFormat="#,0;(#,0);''" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40" />
			<Series ChartType="StackedBar" LegendText="Interne Controle en Kwaliteit" Color="LightsteelBlue" IsValueShownAsLabel="True" LabelFormat="#,0;(#,0);''" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40" />
			<Series ChartType="StackedBar" LegendText="Marketing en Communicatie" Color="LightsteelBlue" IsValueShownAsLabel="True" LabelFormat="#,0;(#,0);''" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40" />
			<Series ChartType="StackedBar" LegendText="Salarisadministratie" Color="LightsteelBlue" IsValueShownAsLabel="True" LabelFormat="#,0;(#,0);''" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40" />
			<Series ChartType="StackedBar" LegendText="Sales" Color="LightsteelBlue" IsValueShownAsLabel="True" LabelFormat="#,0;(#,0);''" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40" />
			<Series ChartType="StackedBar" LegendText="Servicedesk" Color="LightsteelBlue" IsValueShownAsLabel="True" LabelFormat="#,0;(#,0);''" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40" />
			<Series ChartType="StackedBar" LegendText="Support" Color="LightsteelBlue" IsValueShownAsLabel="True" LabelFormat="#,0;(#,0);''" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40" />
			<Series ChartType="StackedBar" LegendText="Urenadministratie" Color="LightsteelBlue" IsValueShownAsLabel="True" LabelFormat="#,0;(#,0);''" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40" />
			<Series ChartType="StackedBar" LegendText="Verzuim" Color="LightsteelBlue" IsValueShownAsLabel="True" LabelFormat="#,0;(#,0);''" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75, MaxPixelPointWidth=40" />
      </Series>
      <ChartAreas>
        <ChartArea BorderColor="White" BorderDashStyle="Solid">
          <AxisY LabelAutoFitMinFontSize="8" TitleForeColor="59, 59, 59" TitleFont="{0}, 10.5px" LineColor="165, 172, 181" IntervalAutoMode="VariableCount">
            <MajorGrid LineColor="239, 242, 246" />
            <MajorTickMark LineColor="165, 172, 181" />
            <LabelStyle Font="{0}, 10.5px" ForeColor="59, 59, 59" />
          </AxisY>
          <AxisX LabelAutoFitMinFontSize="8" TitleForeColor="59, 59, 59" TitleFont="{0}, 10.5px" LineColor="165, 172, 181" IntervalAutoMode="VariableCount">
            <MajorTickMark LineColor="165, 172, 181" />
            <MajorGrid LineColor="Transparent" />
            <LabelStyle Font="{0}, 10.5px" ForeColor="59, 59, 59" />
          </AxisX>
          <AxisY2 LabelAutoFitMinFontSize="8" TitleForeColor="59, 59, 59" TitleFont="{0}, 10.5px" LineColor="165, 172, 181" IntervalAutoMode="VariableCount">
            <MajorGrid LineColor="239, 242, 246" />
            <MajorTickMark LineColor="165, 172, 181" />
            <LabelStyle Font="{0}, 10.5px" ForeColor="59, 59, 59" />
          </AxisY2>
        </ChartArea>
      </ChartAreas>
      <Titles>
        <Title Alignment="TopLeft" DockingOffset="-3" Font="{0}, 13px" ForeColor="59, 59, 59"></Title>
      </Titles>
      <Legends>
        <Legend Alignment="Center" LegendStyle="Table" Docking="right" IsEquallySpacedItems="True" Font="{0}, 11px" ShadowColor="0, 0, 0, 0" ForeColor="59, 59, 59" />
      </Legends>
    </Chart>
  </presentationdescription>
  <isdefault>false</isdefault>
</visualization>


Error Upgrade Server CRM 2011 to 2013

$
0
0

Hi all,

i try to Update an Organisation from CRM 2011 to CRM 2013 and get this Error:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Microsoft.Crm.Caching.SystemLabelDictionaryCacheLoader.BuildLabelDictionary(MetadataBusinessEntityCollection labels)
at Microsoft.Crm.Caching.LabelDictionaryCacheLoader.LoadCacheData(Int32 languageCode, IOrganizationContext context)
at Microsoft.Crm.Caching.SystemIntermediateLabelDictionaryCacheLoader.LoadCacheData(SystemLabelDictionaryCacheKey key, IOrganizationContext context)
at Microsoft.Crm.Caching.BasicCrmCache`2.LookupEntry(TKey key, IOrganizationContext context)
at Microsoft.Crm.Metadata.LabelCache.TryLookupEntry(Int32 languageCode, Guid objectId, String objectColumnName, IOrganizationContext context)
at Microsoft.Crm.ObjectModel.LabelLoaderPublished.LoadLabel(Int32 userLanguageCode, Guid objectId, String objectColumnName, ExecutionContext context)
at Microsoft.Crm.ObjectModel.FormLabelHelper.InsertAllLabels(Int32 entityType, ILabelLoader labelLoader, XmlDocument formDoc, XmlNode labelsNode, Int32 userLanguageCode, ExecutionContext context)
at Microsoft.Crm.ObjectModel.FormLabelHelper.InsertFormLabelsCommon(IBusinessEntity entity, ILabelLoader labelLoader, Boolean asLastManagedForm, ExecutionContext context)
at Microsoft.Crm.ObjectModel.SystemFormService.RetrieveMultiple(EntityExpression entityExpression, Boolean includeLabels, ExecutionContext context)
at Microsoft.Crm.Dependency.DependencyCalculatorFactory.GetEntityInternal(Guid id, EntityMetadata metadata, Boolean retrieveUnpublished, String[] columns, ExecutionContext context)
at Microsoft.Crm.Dependency.DependencyCalculatorFactory.GetEntity(Int32 componentType, Guid id, ExecutionContext context)
at Microsoft.Crm.ObjectModel.DependencyHelperBase.IsDependencyCalculatedFromOtherSide(Guid dependencyNodeId, BusinessEntity dependency, Dictionary`2 computedDependencies, ExecutionContext context)
at Microsoft.Crm.ObjectModel.DependencyHelperBase.UpdateDependencies(ExecutionContext context)
at Microsoft.Crm.Dependency.ComponentCollector.UpdateComponentDependencies(Dictionary`2 recordsByComponentType, ExecutionContext context)
at Microsoft.Crm.Dependency.ComponentCollector.ProcessRecords(ExecutionContext context)
at Microsoft.Crm.BusinessEntities.ExecutionContext.ProcessDependencies(FlushCacheOption option, CreateNewCollectorOption createOption)
at Microsoft.Crm.BusinessEntities.ExecutionContext.OnEndRequest()
at Microsoft.Crm.Setup.DiffBuilder.UpdateMetadata(String targetVersion)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at Microsoft.Crm.Setup.Database.DllMethodAction.Execute(Guid organizationId)
at Microsoft.Crm.Setup.Database.DatabaseInstaller.ExecuteReleases(ReleaseInfo releaseInfo, Boolean isInstall)
at Microsoft.Crm.Setup.Database.DatabaseInstaller.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase, Boolean isInstall)
at Microsoft.Crm.Setup.Database.DatabaseInstaller.InstallUpdate(String configurationFilePath, Boolean upgradeDatabase)
at Microsoft.Crm.Setup.Common.Update.DBUpdateDatabaseInstaller.ApplyDBUpdates(Guid orgId)
at Microsoft.Crm.Tools.Admin.InstallDatabaseUpdatesAction.ApplyDBUpdatesInternal(Guid orgId, String orgUniqueName, String releaseFilePath, Boolean ignoreErrors)

And this rrror in the event LOG:

Invalid column name 'IsMailboxInactiveBackOffEnabled'.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at Microsoft.Crm.CrmDbConnection.InternalExecuteWithRetry[TResult](Func`1 ExecuteMethod, IDbCommand command)
at Microsoft.Crm.CrmDbConnection.InternalExecuteReader(IDbCommand command, Boolean capturePerfTrace)
at Microsoft.Crm.ObjectModel.MailboxUtil.RetrieveServerSideSyncOrgSettingsFromDB(Guid organizationId)
at Microsoft.Crm.Asynchronous.OrgServerSideSyncSettings.OrgDataAccess.<>c__DisplayClass11.<RetrieveOrgSettingsLightFromDB>b__10(IServiceOperation serviceOperation)
at Microsoft.Crm.Asynchronous.Operations.OrganizationOperation.<get_EventAction>b__0(IServiceOperation operation)

CRM Server 2013 CU 5

Thanks

Error: This content can't be displayed in this frame.

$
0
0

Hello there!

I was with this problem somes days when I've tried to integrated SharePoint to CRM2016 (On Premise) and get post of solutions like to add urls in safes sites, add ips, the frame is too little, etcs...

I've read that this error is when the "Url1" is "steal" information to "Url2", so you need put both Url in "Privacy - Let" in "Internet Options".

But I can't put CRM URL because it keep with http:// and not https:// (We don't have the SSL or SLL yet) and I've read that web without https are considerated "No Safes Sites" 

My dude is, this error will be solved if we get "https://"?? Or we can keep get that with this change?.

Meanwhile, I'm triying to do all solutions that was gave.

PD: I've my http:// crm in "safe sites", but I can't add it in "Privacy - Let"

Thanks for your time.

c# get calculated field value

$
0
0

Hi, I am trying to get calculated field value, is that the same as get the value from regular field, like the below, I keep getting "object reference not set to an instance of an object", the record should contain the data.

invoice.GetAttributeValue<Money>("averageAmount")


Generate X records with a workflow

$
0
0

Hello,

I am currently struggling with a creation of a workflow. It needs to run "X" times and generate "X" records. I have an entity called Reservation and one called Placement. Reservation is the parent of placement and when a reservation is created, we ask how many placement should be created out of this reservation.

So if a company request a reservation for 4 positions, we need to generate 4 records. If they ask for 15 positions, we would need to generate 15 records.

Is there anything out there that would allow me to achieve this?

The maximum number of positions that can be reserved is 20 so "X" in this case can be from 1 to 20.

AddUserToRecordTeam Web Api Action returns "Bad Request"

$
0
0

Hi everyone,

I am trying to programmatically add users to record access team, below is the request that returns `Bad Request` response, please advise -
(CRM Version 8.1.1.1707) Online, plugin is not a an option

var parameters = {};
var record = {};
record.primarykeyid = "E331BB99-3329-E811-8136-480FCFEB2AF1";
record["@odata.type"] = "Microsoft.Dynamics.CRM.new_test_entity";
parameters.Record = record;
var teamtemplate = {};
teamtemplate.primarykeyid = "bcddd715-b211-e811-8130-480fcfea0021";
teamtemplate["@odata.type"] = "Microsoft.Dynamics.CRM.teamtemplate";
parameters.TeamTemplate = teamtemplate;

var req = new XMLHttpRequest();
req.open("POST", Xrm.Page.context.getClientUrl() + "/api/data/v8.1/systemusers(DAFDD716-59AF-E711-8127-480FCFEA2141)/Microsoft.Dynamics.CRM.AddUserToRecordTeam", true);
req.setRequestHeader("OData-MaxVersion", "4.0");
req.setRequestHeader("OData-Version", "4.0");
req.setRequestHeader("Accept", "application/json");
req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
req.onreadystatechange = function() {
if (this.readyState === 4) {
req.onreadystatechange = null;
if (this.status === 200) {
var results = JSON.parse(this.response);
} else {
Xrm.Utility.alertDialog(this.statusText);
}
}
};
req.send(JSON.stringify(parameters));


Error on System.Linq.IQueryable - Join clause

$
0
0

Hi, I am getting the below errorr for the following code. I know it's an issue with the syntax but I can't figure out how to fix. I am learning c# and plugin development so any help would be appreciated.

            {
                CrmServiceContext crmService = new CrmServiceContext(((IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory))).CreateOrganizationService(new Guid?(val2.UserId)));
                var list = (from x in crmService.SalesOrderDetailSet.Join(
                    crmService.ProductSet, 
                    (SalesOrderDetail x) => x.ProductId.Id, 
                    (Product x) => x.Id, 
                    (SalesOrderDetail x, Product y) => new
                {
                    x,
                    y
                })
                    where x.x.SalesOrderId.Id == salesOrderReference.Id && x.y.ktl_ConsolidateintoServices.Value == true
                    select x).ToList();
                SalesOrder salesOrder = crmService.SalesOrderSet.First((SalesOrder x) => x.Id == salesOrderReference.Id);


Error 1: 'System.Linq.IQueryable<entity>' does not contain a definition for 'Join' and no extension method 'Join' accepting a first argument of type 'System.Linq.IQueryable<entity>' could be found (are you missing a using directive or an assembly reference?) 

Error 2: 'System.Linq.IQueryable<entity>' does not contain a definition for 'First' and no extension method 'First' accepting a first argument of type 'System.Linq.IQueryable<entity>' could be found (are you missing a using directive or an assembly reference?)

Need to return file from a custom action

$
0
0

Hi,

I currently face a weird request. I want to add a button to download files from an external REST API. For some specific reasons I must not calls the service from client side. So I'm trying to use an Plugin registered on a custom action and then call the custom action in JavaScript web resource. My question is how to return a binary from custom action? Did any one face the same need and can help me?

May be my approach isn't the best. Any proposal will be welcome.

Import database schema from legacy MSSQL to entity in dynamic?

$
0
0

Hi,

I am new to dynamic 365.   

I was wondering is that any good tool out there to import database schema (tables and relationship) from a legacy MSSQL to dynamic's entity?  (XrmToolBox?)

Thank you.

Jason

***Urgent*** There is a problem with the website security, Dynamics CRM 2015 Onpremise

$
0
0

We are using Dynamics CRM 2015 Onpremise when we opened the link today, we got the message like

"There is a problem with the website security certificate .....security certificate presented by this website has expired"

Image attached

Any step by step help or guidance to fix this is highly appreciated.

Is it okay if we continue using the website without this for couple days without tge certificate?


Thanks!

SRSS FetchXML report, multiple attributes with MAX aggregates

$
0
0

Hi everyone,

I am having trouble returning any results for my linked entities when trying to retrieve the most recent linked records. For example, entity A is linked to Entity B and Entity C. Entity A can have multiple records in entities B & C so I want to get just the latest linked records using a max aggregate on a date attribute in B and another max aggregate on a date attribute in C. The max aggregate seems to only work when used against one linked entity, if I apply it to the other entity as well, I get no results. Thanks for any help!

Viewing all 46379 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>