Quantcast
Viewing latest article 17
Browse Latest Browse All 130

CRM 4: Import Organization Failed Error - ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.

A colleague bought this error to my attention today. Luckily i have encountered this problem before and pointed him directly to the reports.

The secret is to look at the trace log ASWELL as the error log produced by the CRM importer.

This gives you the error in full glory...

CRM Import Log:

13:03:28|   Info| PublishReportsFromDatabase: Creating report in Reporting Services.  ReportId: {d429a8b1-01d9-de11-a5de-0002b3ed81a1}, Name: Maintenance Report
13:03:51|  Error| Import Organization (Name=AcmeCompanyLTD, Id=03649514-347a-e011-9ae4-XXXXXXXXXX) failed with Exception:
System.InvalidOperationException: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.

CRM Trace Log:

>Crm Exception: Message: The data source 'PY3-MSCRM' cannot be found., ErrorCode: -2147187968, InnerException:    at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)


The resolution for this particular error was that the report that it was trying to report had a corrupted datasource, this was removed in the live system first, then the database was backed up again. The import succeeded after that.


Viewing latest article 17
Browse Latest Browse All 130

Trending Articles