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
Related
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
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.
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>
I'm developing an Outlook add-in, the purpose is to create an appointment with its different properties.
Is that possible to modify the value of the reminder field with the Mailbox API? I can't find a method which do that in the documentation (https://dev.outlook.com/reference/add-ins/).
When something is not available with Office.js api for an Outlook Add-in you can try to use the Exchange Web Services (EWS) to do perform the action
Have a look at this previous answer.
In this answer, I gave code snippets for both (client side or server side approach).
You can use the UpdateItem EWS operation to set flag and reminder fields using the mailbox.makeEwsRequestAsync method:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
<RequestServerVersion Version="Exchange2013" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" soap:mustUnderstand="0" />
</soap:Header>
<soap:Body>
<m:UpdateItem MessageDisposition="SaveOnly" ConflictResolution="AlwaysOverwrite">
<m:ItemChanges>
<t:ItemChange>
<t:ItemId Id="AAMkAGUzNmEzYTBmLTI1NDItNGE0My1iZDk5LWFkMDgxODI3YWNlOQBGAAAAAACK2VEhi72QSaw+u0XV7xUHBwCMotTyA3QkQ7TPAmcrRt4FAAAALwVDAAAuH/1UA8tzTYD5jbYriaIUAAJEgGbPAAA=" />
<t:Updates>
<t:SetItemField>
<t:FieldURI FieldURI="item:Flag" />
<t:Message>
<t:Flag>
<t:FlagStatus>Flagged</t:FlagStatus>
<t:StartDate>2016-02-24T00:00:00.000Z</t:StartDate>
<t:DueDate>2016-02-24T00:00:00.000Z</t:DueDate>
</t:Flag>
</t:Message>
</t:SetItemField>
<t:SetItemField>
<t:FieldURI FieldURI="item:ReminderDueBy" />
<t:Message>
<t:ReminderDueBy>2016-02-24T15:00:00.000Z</t:ReminderDueBy>
</t:Message>
</t:SetItemField>
<t:SetItemField>
<t:FieldURI FieldURI="item:ReminderIsSet" />
<t:Message>
<t:ReminderIsSet>true</t:ReminderIsSet>
</t:Message>
</t:SetItemField>
<t:SetItemField>
<t:FieldURI FieldURI="item:ReminderMinutesBeforeStart" />
<t:Message>
<t:ReminderMinutesBeforeStart>0</t:ReminderMinutesBeforeStart>
</t:Message>
</t:SetItemField>
</t:Updates>
</t:ItemChange>
</m:ItemChanges>
</m:UpdateItem>
</soap:Body>
</soap:Envelope>
As of today (requirement set 1.3) I don't think there is a method in Office.js which allows you to get or set the reminder field of an appointment. Other people have already mentioned that you may try using EWS call to perform the action.
I am making use of this piece of code to set the color. It;s setting color on my computer, but when I send appointments to others, the color is not getting set in their calendar after they accept it.
ExtendedPropertyDefinition propDefColor = new ExtendedPropertyDefinition(
UUID.fromString("00062002-0000-0000-c000-000000000046"),
0x8214, MapiPropertyType.Integer);
appointment.setExtendedProperty(propDefColor, "6");
I tried to retrieve it after saving an appointment with this piece of code, but it didn't work.
PropertySet propset=new PropertySet(BasePropertySet.FirstClassProperties, propDefColor);
appointment.bind(service,appointment.getId(), propset);
for(ExtendedProperty extendedProperty : appointment.getExtendedProperties()) {
System.out.println(extendedProperty.getValue());
}
And I am using:
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
For client requirement. And Java EWS API1.2.
Kindly let me know how to get the color in other clients. (I don't know how to use MasterCategorylist or categories or tryGetProperty()).
Kindly help me in this. If we need to use tryGetProperty(), then how to pass the parameters in it?
Propertydefinitionenter code here
OutParam<Object>
Kindly help.
Not answering you 'all the way' but maybe this helps you further.
I hard code EWS XML requests and this is how I retrieve the master configuration list:
<soap:Envelope xmlns:mes="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:typ="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<typ:RequestServerVersion Version="Exchange2010" />
</soap:Header>
<soap:Body>
<mes:GetUserConfiguration>
<mes:UserConfigurationName Name="CategoryList">
<typ:DistinguishedFolderId Id="calendar"/>
</mes:UserConfigurationName>
<mes:UserConfigurationProperties>All</mes:UserConfigurationProperties>
</mes:GetUserConfiguration>
</soap:Body>
</soap:Envelope>
The answer is:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="14" MinorVersion="0" MajorBuildNumber="722" MinorBuildNumber="0" Version="Exchange2010" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetUserConfigurationResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetUserConfigurationResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:UserConfiguration>
<t:UserConfigurationName Name="CategoryList">
<typ:DistinguishedFolderId Id="calendar" xmlns:typ="http://schemas.microsoft.com/exchange/services/2006/types"/>
</t:UserConfigurationName>
<t:ItemId Id="AAMkADkyZ[snip]fSM9AAA=" ChangeKey="CQAAAB[snip]p3Law"/>
<t:XmlData>77u/PD94bW[snip]lcz4NCg==</t:XmlData>
</m:UserConfiguration>
</m:GetUserConfigurationResponseMessage>
</m:ResponseMessages>
</m:GetUserConfigurationResponse>
</s:Body>
</s:Envelope>
That xmldata is what you want. It's Base64 encoded, if you decode it, it reads:
<?xml version="1.0"?>
<categories default="Red Category" lastSavedSession="2" lastSavedTime="2013-07-29T07:47:43.0411241Z" xmlns="CategoryList.xsd">
<category name="Red Category" color="0" keyboardShortcut="0" usageCount="2" lastTimeUsedNotes="1601-01-01T00:00:00Z" lastTimeUsedJournal="1601-01-01T00:00:00Z" lastTimeUsedContacts="1601-01-01T00:00:00Z" lastTimeUsedTasks="1601-01-01T00:00:00Z" lastTimeUsedCalendar="1601-01-01T00:00:00Z" lastTimeUsedMail="1601-01-01T00:00:00Z" lastTimeUsed="2010-09-29T10:08:46.487Z" lastSessionUsed="0" guid="{61c23d24-ed86-47ec-8565-433e3a6b21b7}" renameOnFirstUse="1" />
<category name="Blue Category" color="7" keyboardShortcut="0" usageCount="6" lastTimeUsedNotes="1601-01-01T00:00:00Z" lastTimeUsedJournal="1601-01-01T00:00:00Z" lastTimeUsedContacts="1601-01-01T00:00:00Z" lastTimeUsedTasks="1601-01-01T00:00:00Z" lastTimeUsedCalendar="2013-04-17T09:10:04.043Z" lastTimeUsedMail="1601-01-01T00:00:00Z" lastTimeUsed="2013-04-17T09:10:04.043Z" lastSessionUsed="2" guid="{e19dd512-bff1-46d8-a858-54cc114872ad}" renameOnFirstUse="0" />
<category name="Purple Category" color="8" keyboardShortcut="0" usageCount="2" lastTimeUsedNotes="1601-01-01T00:00:00Z" lastTimeUsedJournal="1601-01-01T00:00:00Z" lastTimeUsedContacts="1601-01-01T00:00:00Z" lastTimeUsedTasks="1601-01-01T00:00:00Z" lastTimeUsedCalendar="1601-01-01T00:00:00Z" lastTimeUsedMail="1601-01-01T00:00:00Z" lastTimeUsed="2010-09-29T10:08:46.487Z" lastSessionUsed="0" guid="{fd3afb30-285e-4bf2-885e-f9fdfe00002e}" renameOnFirstUse="1" />
<category name="Green Category" color="4" keyboardShortcut="0" usageCount="6" lastTimeUsedNotes="1601-01-01T00:00:00Z" lastTimeUsedJournal="1601-01-01T00:00:00Z" lastTimeUsedContacts="1601-01-01T00:00:00Z" lastTimeUsedTasks="1601-01-01T00:00:00Z" lastTimeUsedCalendar="2013-04-17T09:10:12.782Z" lastTimeUsedMail="1601-01-01T00:00:00Z" lastTimeUsed="2013-04-17T09:10:12.782Z" lastSessionUsed="2" guid="{c3dc51d0-1cc4-42cf-9fa9-75146905771f}" renameOnFirstUse="0" />
<category name="Orange Category" color="1" keyboardShortcut="0" usageCount="2" lastTimeUsedNotes="1601-01-01T00:00:00Z" lastTimeUsedJournal="1601-01-01T00:00:00Z" lastTimeUsedContacts="1601-01-01T00:00:00Z" lastTimeUsedTasks="1601-01-01T00:00:00Z" lastTimeUsedCalendar="1601-01-01T00:00:00Z" lastTimeUsedMail="1601-01-01T00:00:00Z" lastTimeUsed="2010-09-29T10:08:46.487Z" lastSessionUsed="0" guid="{10c78b6f-5828-4b3c-af0c-138aaac52dae}" renameOnFirstUse="1" />
<category name="Yellow Category" color="3" keyboardShortcut="0" usageCount="2" lastTimeUsedNotes="1601-01-01T00:00:00Z" lastTimeUsedJournal="1601-01-01T00:00:00Z" lastTimeUsedContacts="1601-01-01T00:00:00Z" lastTimeUsedTasks="1601-01-01T00:00:00Z" lastTimeUsedCalendar="1601-01-01T00:00:00Z" lastTimeUsedMail="1601-01-01T00:00:00Z" lastTimeUsed="2010-09-29T10:08:46.487Z" lastSessionUsed="0" guid="{37cc21d3-b6a9-4dae-a1fb-422249b9fbb0}" renameOnFirstUse="1" />
<category name="TimeTell" color="7" keyboardShortcut="0" usageCount="7" lastTimeUsedNotes="1601-01-01T00:00:00Z" lastTimeUsedJournal="1601-01-01T00:00:00Z" lastTimeUsedContacts="1601-01-01T00:00:00Z" lastTimeUsedTasks="1601-01-01T00:00:00Z" lastTimeUsedCalendar="2013-07-29T07:31:17.8034765Z" lastTimeUsedMail="1601-01-01T00:00:00Z" lastTimeUsed="2013-07-29T07:31:17.8034765Z" lastSessionUsed="2" guid="{3348e50b-1763-42fb-a9e9-25b74038b9aa}" renameOnFirstUse="0" />
</categories>
And there you have the categories and associated colors.
I redid the code using another lib that made it easier. It takes care of getting/setting all the fields.