web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.

(0) ShareShare
ReportReport
Posted on by 142

Hi all,

I tried to generate a LedgerFiscalJournal_IT Report with a lot of data in batch. After several hours i have this error : Client found response content type of 

'text/html; charset=utf-8', but expected 'text/xml'.

7215.Error-1.PNG

I'm working on AX 2012 R2.

Anyone helps me? 

Best regads.

Gildo

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    236,330 Most Valuable Professional on at
    RE: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.

    The error in the title isn't really important; you see it because the process failed and the response is an HTML with information about the error. You should read it and if you need our help, you should share it with us. The picture doesn't seem to be showing the whole message.

  • Gildo Calvanese Profile Picture
    142 on at
    RE: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.

    Hi Martin,

    thank you for your reply.

    The PDF that I'm going to generate should be over 100 MB.  Could be SSRS buffer size parameter?

    I share with you the error stack :

    1) first error :

    Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.

    The request failed with the error message:

    --

    <html>

       <head>

           <title>Thread was being aborted.</title>

           <style>

            body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}

            p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}

            b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}

            H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }

            H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }

            pre {font-family:"Lucida Console";font-size: .9em}

            .marker {font-weight: bold; color: black;text-decoration: none;}

            .version {color: gray;}

            .error {margin-bottom: 10px;}

            .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }

           </style>

       </head>

       <body bgcolor="white">

               <span><H1>Server Error in '/ReportServer_OLAP' Application.<hr width=100% size=1 color=silver></H1>

               <h2> <i>Thread was being aborted.</i> </h2></span>

               <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

               <b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

               <br><br>

               <b> Exception Details: </b>System.Threading.ThreadAbortException: Thread was being aborted.<br><br>

               <b>Source Error:</b> <br><br>

               <table width=100% bgcolor="#ffffcc">

                  <tr>

                     <td>

                         <code>

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</code>

                     </td>

                  </tr>

               </table>

               <br>

               <b>Stack Trace:</b> <br><br>

               <table width=100% bgcolor="#ffffcc">

                  <tr>

                     <td>

                         <code><pre>

    [ThreadAbortException: Thread was being aborted.]

      System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +312

      System.Web.ApplicationStepManager.ResumeSteps(Exception error) +762

      System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +256

      System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +444

    </pre></code>

                     </td>

                  </tr>

               </table>

               <br>

               <hr width=100% size=1 color=silver>

               <b>Version Information:</b> Microsoft .NET Framework Version:2.0.50727.8669; ASP.NET Version:2.0.50727.8015

               </font>

       </body>

    </html>

    <!--

    [ThreadAbortException]: Thread was being aborted.

      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

      at System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(Exception error)

      at System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)

      at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)

    --><!--

    This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->

    --.

    Second error:

    -----------------------------------------------------------------------------------------------------

    Microsoft.Dynamics.Ax.Xpp.ErrorException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.ErrorException' was thrown.

      at Dynamics.Ax.Application.SrsReportRunController.Runreport() in SrsReportRunController.runReport.xpp:line 99

      at Dynamics.Ax.Application.SrsReportRunController.Run() in SrsReportRunController.run.xpp:line 6

      at Dynamics.Ax.Application.BatchRun.runJobStaticCode(Int64 batchId) in BatchRun.runJobStaticCode.xpp:line 54

      at Dynamics.Ax.Application.BatchRun.runJobStatic(Int64 batchId) in BatchRun.runJobStatic.xpp:line 13

      at BatchRun::runJobStatic(Object[] )

      at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)

      at BatchIL.taskThreadEntry(Object threadArg)

    best regads,

    Gildo

  • Verified answer
    Martin Dráb Profile Picture
    236,330 Most Valuable Professional on at
    RE: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.

    I think the most likely reason why the thread was aborted is a timeout.

  • Enrico Ippoliti Profile Picture
    15 on at
    RE: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.

    Hi Gildo,

    did you solve this problem? I have the same error

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

#2
NNaumenko Profile Picture

NNaumenko 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans