Показать сообщение отдельно
Старый 23.11.2015, 18:58   #4  
Ion is offline
Ion
Участник
 
332 / 16 (1) ++
Регистрация: 19.12.2012
Цитата:
Сообщение от a33ik Посмотреть сообщение
Я бы для начала посмотрел фидлером какой запрос уходит в CRM и что возвращается. Если это ничего не даст - тогда уже в сапорт.
Да, так и делаю
Шлю конвертик:
X++:
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Header>
      <SdkClientVersion xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" />
   </s:Header>
   <s:Body>
      <Execute xmlns="http://schemas.microsoft.com/xrm/2011/Contracts/Services" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
         <request xmlns:a="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:b="http://schemas.microsoft.com/crm/2011/Contracts" i:type="b:RenewEntitlementRequest">
            <a:Parameters xmlns:b="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
               <a:KeyValuePairOfstringanyType>
                  <b:key>EntitlementId</b:key>
                  <b:value xmlns:c="http://schemas.microsoft.com/2003/10/Serialization/" i:type="c:guid">e9737c9f-c60d-e511-8107-fc15b4280cb8</b:value>
               </a:KeyValuePairOfstringanyType>
               <a:KeyValuePairOfstringanyType>
                  <b:key>Status</b:key>
                  <b:value xmlns:c="http://www.w3.org/2001/XMLSchema" i:type="c:int">-1</b:value>
               </a:KeyValuePairOfstringanyType>
            </a:Parameters>
            <a:RequestId i:nil="true" />
            <a:RequestName>RenewEntitlement</a:RequestName>
         </request>
      </Execute>
   </s:Body>
</s:Envelope>

Получаю ответ

X++:
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <s:Fault>
         <faultcode>s:Client</faultcode>
         <faultstring xml:lang="en-US">An unexpected error occurred.</faultstring>
         <detail>
            <OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
               <ErrorCode>-2147220970</ErrorCode>
               <ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
               <Message>An unexpected error occurred.</Message>
               <Timestamp>2015-11-23T15:45:20.2314279Z</Timestamp>
               <InnerFault>
                  <ErrorCode>-2147220970</ErrorCode>
                  <ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
                  <Message>System.NullReferenceException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #487C9A6A</Message>
                  <Timestamp>2015-11-23T15:45:20.2314279Z</Timestamp>
                  <InnerFault i:nil="true" />
                  <TraceText i:nil="true" />
               </InnerFault>
               <TraceText i:nil="true" />
            </OrganizationServiceFault>
         </detail>
      </s:Fault>
   </s:Body>
</s:Envelope>

В строке
X++:
<faultcode>s:Client</faultcode>
упоминаеться клиент. Зашел, проверил, такой клиент есть.

Валиться System.NullReferenceException, где-то может чего-то нехватать