Unable to add a partial holiday in Dynamics CRM Service Management - dynamics-crm

I receive an error "Unable to add partial holiday" trying to add a holiday under Dynamics CRM Service Management.Does anyone have a clue what this is?
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Partial holiday schedule can not be createdDetail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ActivityId>c8c662fc-0569-4a87-91e2-8a841a731ff3</ActivityId>
<ErrorCode>-2147157901</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>Partial holiday schedule can not be created</Message>
<Timestamp>2017-01-19T08:10:24.9843127Z</Timestamp>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>

Related

FHIR - Consent Resource - Giving Hl7.Fhir.Serialization.ComplexTypeReader error

I am not a techie but have assumed some responsibilities in someone's absence.
Trying to push below Consent FHIR Resource:
<Consent xmlns="http://hl7.org/fhir">
<id value="123" />
<status value="inactive" />
<scope>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/consentscope" />
<code value="patient-privacy" />
</coding>
</scope>
<category>
<coding>
<system value="http://loinc.org" />
<code value="59284-0" />
</coding>
</category>
<patient>
<reference value="Patient/41" />
<display value="John Stifiles" />
</patient>
<policyRule>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/consentpolicycodes" />
<code value="cric" />
</coding>
</policyRule>
<provision>
<type value="deny" />
<period>
<start value="2021-09-27" />
<end value="2021-09-27" />
</period>
</provision>
</Consent>
This is passed with no errors from inferno.healthit.gov/validator/ but when I run through my integrator (it hits HL7 validator), I get a variety of errors - Encountered unknown member 'Scope' or Encountered unknown member 'Patient', etc.
This is a Consent resource that conforms to FHIR version R4. Inferno runs FHIR R4 as well, so that works.
However, if you try and validate this resource against FHIR STU3, you will get the errors you mentioned, since the Consent resource structure significantly changed from STU3 to R4. Please check your integrator and make sure it runs FHIR R4 as well.

MSCRM 2016 OnPrem Solution-Upgrade Deadlock with existing Solution-Patch

This is my situation:
in my MSCRM 2016 On-Prem Version I have 3 Types of Solutions for the same, I will call it, Base-Solution.
These are:
IWO_CRM (V2.3.0.0) -> Base-Solution
IWO_CRM_Patch_... (V2.3.1.0) -> Contains a Workflow that was quickly needed
IWO_CRM_Upgrade (V2.4.0.2) -> Newly imported Base-Solution for Upgrade
These are all Managed Solutions.
Normally I would just Upgrade and would get a beautiful IWO_CRM (V2.4.0.2)
But Murphy faceslapped me and denied!
My Problem now is:
I can't run the Upgrade because it can't find all entitys contained in the Base-Solution.
The error log states, that the Workflow from the Patch-Solution is missing.
But I can't merge the Base-Solution with the Patch-Solution without using the Upgrade-Solution.
I can't uninstall the Patch or Upgrade Solution, when I try i get the Error that an Entity could not be found.
And while everything is in this mess, I'm unsure of what should I do or could I do.
Here an overview of the different Errors:
Try to Upgrade the Solution
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: workflow With Id = db73b25c-c714-46d0-9d05-d3d19a33e82a Does Not ExistDetail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ActivityId>3d3042f4-a52b-47d4-a93f-871e1904526e</ActivityId>
<ErrorCode>-2147220969</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>workflow With Id = db73b25c-c714-46d0-9d05-d3d19a33e82a Does Not Exist</Message>
<Timestamp>2019-09-05T08:24:15.968578Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>
Try to delete the Upgrade-Solution
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: All entities must be found.Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ActivityId>ef3e6030-5d3f-43b7-a202-c82584b7f15a</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>All entities must be found.</Message>
<Timestamp>2019-09-05T08:48:57.9558391Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>
Try to delete the Patch-Solution (Looks truly like the first Error)
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: workflow With Id = db73b25c-c714-46d0-9d05-d3d19a33e82a Does Not ExistDetail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ActivityId>7b9f6465-df4d-44af-8497-c706bd9fee5b</ActivityId>
<ErrorCode>-2147220969</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>workflow With Id = db73b25c-c714-46d0-9d05-d3d19a33e82a Does Not Exist</Message>
<Timestamp>2019-09-05T08:50:25.7216539Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>
I realy hope that this is enough information to picture my problem.
Any help is appreciated.
Thank's everyone

Dynamics 365 V9.0: unable to decode the error log

I am facing issue with all the plugins in the production as they all are failing with below log.
Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: Expected non-empty string.Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ActivityId>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</ActivityId>
<ErrorCode>-2147220989</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<HelpLink></HelpLink>
<Message>Expected non-empty string.</Message>
<Timestamp>2019-07-29T12:36:40.3815746Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault>
<ActivityId>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<HelpLink i:nil="true" />
<Message>System.ArgumentException: Expected non-empty string.
Parameter name: settingName</Message>
<Timestamp>2019-07-29T12:36:40.3815746Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>
As this is a limited message, I am not sure where to look.
Update 1: Earlier plugins were successfully executing, all of sudden it starts throwing exception. and I dont know where to find the field settingName, because this field is not there in any plugins or in any entity.
Update 2:
Entity List:
- Contact
- Appointment
- Task
- Phone Call
- CustomActivity
All the Plugins are registered for Post-Operation on either Create or Update Event
We had a priority ticket opened with Microsoft for this issue. We got the RCA from them saying as
Recent weekend deployment - Async machine went in invalid state and failing to deserialize the async context. They restarted the imapacted machine.

Unable to create Order from active Quote in Dynamics 365

I am facing an error while creating an Order from Active Quote.
and also it happing only on some of the quotes records not on all.
I have done many searches and RnD related to this but I am unable to find any solution.
Below is the error, which I am getting.
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<s:Fault>
<faultcode>s:Client</faultcode>
<faultstring xml:lang="en-US">Active stage is not on 'Quote' entity.</faultstring>
<detail>
<OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ActivityId>036f0244-f38d-4a5b-966b-6b9a4929e07a</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/>
<Message>Active stage is not on 'Quote' entity.</Message>
<Timestamp>2017-03-15T10:59:26.7178126Z</Timestamp>
<ExceptionSource i:nil="true"/>
<InnerFault>
<ActivityId>036f0244-f38d-4a5b-966b-6b9a4929e07a</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/>
<Message>Active stage is not on 'Quote' entity.</Message>
<Timestamp>2017-03-15T10:59:26.7178126Z</Timestamp>
<ExceptionSource i:nil="true"/>
<InnerFault i:nil="true"/>
<OriginalException i:nil="true"/>
<TraceText i:nil="true"/>
</InnerFault>
<OriginalException i:nil="true"/>
<TraceText i:nil="true"/>
</OrganizationServiceFault>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
Please help me to resolve this error.
My presumption is some of your quotes have been marked as won while others haven't...
You need to call WinQuoteRequest first before you convert it to a sales order. The order of events is this:
WinQuoteRequest
ConvertQuoteToSalesOrderRequest
This Returns the Sales Order in the repsonse.Entity (ConvertQuoteToSalesOrderResponse)
This is taken from this sample on MSDN

AJAX request to WCF service secured by ADFS

I configured authentication on my web site via ADFS. Some services are hosted on site. I have a problem with AJAX requests to these services (Bad request 400). Is it possible to configure binding for service to process ajax requests?
...
<bindings>
<ws2007FederationHttpBinding>
<binding name="" >
<security mode="TransportWithMessageCredential">
<message establishSecurityContext="false">
<issuerMetadata address="https://example.com/adfs/services/trust/mex" />
</message>
</security>
</binding>
</ws2007FederationHttpBinding>
</bindings>
....
<services>
<service name="ServiceName"
behaviorConfiguration="ServiceBehavior">
<endpoint name="FederationHttpBinding"
address=""
binding="ws2007FederationHttpBinding"
contract="ServiceContract"/>
</service>
</services>
....
<system.identityModel>
<identityConfiguration>
<audienceUris>
<add value="https://example.com:447/" />
</audienceUris>
<issuerNameRegistry type="System.IdentityModel.Tokens.ValidatingIssuerNameRegistry, System.IdentityModel.Tokens.ValidatingIssuerNameRegistry">
<authority name="http://example.com/adfs/services/trust">
<keys>
<add thumbprint="6A5123456789A40F9123456789CFF34" />
</keys>
<validIssuers>
<add name="http://example.com/adfs/services/trust" />
</validIssuers>
</authority>
</issuerNameRegistry>
<!--certificationValidationMode set to "None" by the the Identity and Access Tool for Visual Studio. For development purposes.-->
<certificateValidation certificateValidationMode="None" />
<securityTokenHandlers>
<add type="System.IdentityModel.Services.Tokens.MachineKeySessionSecurityTokenHandler, System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<remove type="System.IdentityModel.Tokens.SessionSecurityTokenHandler, System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</securityTokenHandlers>
</identityConfiguration>
</system.identityModel>
<system.identityModel.services>
<federationConfiguration>
<cookieHandler requireSsl="false" />
<wsFederation passiveRedirectEnabled="true"
issuer="https://example.com/adfs/ls/"
realm="https://example.com:447"
requireHttps="false" />
</federationConfiguration>
</system.identityModel.services>

Resources