Summary: 

If we search for any company/person and then try to ‘Export to File’

then it gives error ‘Error creating Export Text File

Symptoms: 

If all the dashboards, reports, export to file functionality is working properly internally,

But with external url except dashboards and all reports, If we search for any company/person and then try to export, it doesn’t work and gives error.

Error displayed on ewaresystem.log

START - doEndpointPost URL: https://localhost/sdata/crmj/async/spreadsheetTask?trackingId=08ADCAD0-E746-42CA-A011-EB0FE28378CB&type=CSV&root=C%3A%5CProgram+Files+(x86)%5CSage%5CCRM%5CCRM%5CLibrary%5C&inputfile=C%3A%5CProgram+Files+(x86)%5CSage%5CCRM%5CCRM%5CLibrary%5Ctest_admin.csv&SID=186733384053194

FINISHED - doEndpointPost time-taken: 47ms. HTTP status code: 404

ERROR generating excel file. HTTP status:404 Message: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">

<HTML><HEAD><TITLE>Not Found</TITLE>

<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>

<BODY><h2>Not Found</h2>

<hr><p>HTTP Error 404. The requested resource is not found.</p>

</BODY></HTML>

 ERROR generating excel file. Message - Failed to generate report

.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">

<HTML><HEAD><TITLE>Not Found</TITLE>

<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>

<BODY><h2>Not Found</h2>

<hr><p>HTTP Error 404. The requested resource is not found.</p>

</BODY></HTML>

Cause: 

In order for IIS to transfer a page request to a site all conditions in one of the site binding(s) must be met.  If no binding is found, then it gives 404 error.

Resolution:

  1. Go to IIS > Sites > Default Web Site
  2. Click on ‘Bindings’ (in right bar of IIS)
  3. The binding you are using, you don’t have to specify the hostname. Hostname should be blank (as given below)

Description