Hi, we having issues on our environment right now. As we have a fetchXML below:
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true" no-lock="true" count="5000"><entity name="opportunity"><attribute name="customerid"/><attribute name="name"/><attribute name="opportunityid"/><attribute name="ownerid"/><attribute name="xxx_primaryapplicantid"/><attribute name="xxx_productvendorid"/><attribute name="xxx_totalloanamount"/><attribute name="createdon"/><order attribute="createdon" descending="true"/><link-entity name="xxx_dealreporting" from="xxx_dealreportingid" to="xxx_dealreportingid" link-type="outer" alias="r"><attribute name="xxx_latestdatesettled"/><attribute name="xxx_loanreferences"/><attribute name="xxx_loanamounts"/><attribute name="xxx_securityaddressespurchasing"/><attribute name="xxx_securityaddressesrefinancing"/></link-entity></entity></fetch>
Now when passing it to crmservice.fetch, it gives us a soap error: (based on trace):
>System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #9D2999A4: System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: Server was unable to process request.
Also, we notice that the
<attribute name="xxx_primaryapplicantid"/><attribute name="xxx_productvendorid"/><attribute name="xxx_totalloanamount"/>
xxx_primaryapplicantiddsc <-- the word 'dsc' was added. where it showing us this error below:
>CrmSoapExtension detected CrmException:
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> Microsoft.Crm.CrmException: Generic SQL error. ---> Microsoft.Crm.CrmException: Generic SQL error. ---> System.Data.SqlClient.SqlException: Invalid column name
'CustomerIdDsc'.
Invalid column name 'xxx_primaryapplicantidDsc'.
Invalid column name 'xxx_productvendoridDsc'.
Invalid column name 'TransactionCurrencyIdDsc'.
Invalid column name 'CustomerIdDsc'.
Invalid column name 'xxx_primaryapplicantidDsc'.
Invalid column name 'xxx_productvendoridDsc'.
Invalid column name 'TransactionCurrencyIdDsc'.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler,
On the columns above, there no such columns/attributes on our entities.
Hope you can give us light.. thanks..