You are viewing limited content. For full access, please sign in.

Question

Question

Forms > Custom Report > Error occurred during download

asked on July 21, 2020 Show version history

When I run a custom report and try to download locally, I get the following errors.  The MaxReceivedMessageSize (C:\Program Files\Laserfiche\Laserfiche Forms\Forms\Web.config) has been set to 2147483647 as recommended.  What else should I check?

Laserfiche Forms Professional Version 10.4.4.444

<binding name="timeoutBindingStreamed" transferMode="Streamed" closeTimeout="00:59:00" openTimeout="00:59:00" receiveTimeout="00:59:00" sendTimeout="00:59:00" maxReceivedMessageSize="2147483647">
          <security mode="Transport" />

 

Error #1:

[500]: An error occurred during download.

Function: Error
 

Error #2:

An error occurred during download. [LFF4120-ErrorOccurredDuringDownload]

Details:
URL: /Forms/Handlers/BPInstancesExport.ashx
Error: ErrorOccurredDuringDownload
Date: 7/21/2020 4:27:44 PM (Eastern Standard Time)
HTTP Status Code: 500
Business Process ID: 0
User: MARLOW\mblevins
IP: 192.168.240.64
Browser: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; InfoPath.3; wbx 1.0.0; wbxapp 1.0.0; Zoom 3.6.0)
Business Process Name: 

Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: An error occurred during download. [LFF4120-ErrorOccurredDuringDownload]


Inner exception: System.ServiceModel.CommunicationException
Message: The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.

Server stack trace: 
   at System.ServiceModel.Channels.ClientDuplexConnectionReader.DecodeMessage(Byte[] buffer, Int32& offset, Int32& size, Boolean& isAtEOF, TimeSpan timeout)
   at System.ServiceModel.Channels.SessionConnectionReader.DecodeMessage(TimeSpan timeout)
   at System.ServiceModel.Channels.SessionConnectionReader.Receive(TimeSpan timeout)
   at System.ServiceModel.Channels.SynchronizedMessageSource.Receive(TimeSpan timeout)
   at System.ServiceModel.Channels.TransportDuplexSessionChannel.Receive(TimeSpan timeout)
   at System.ServiceModel.Channels.TransportDuplexSessionChannel.TryReceive(TimeSpan timeout, Message& message)
   at System.ServiceModel.Dispatcher.DuplexChannelBinder.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at FormsModel.SharedContracts.IFormExportService.ExportProcessData_Sync(ReportingExportParameters para)
   at FormsModel.SharedContracts.FormExportServiceProxy.ExportProcessData(ReportingExportParameters para)
   at E_Forms.Handlers.BPInstancesExport.ProcessRequest(HttpContext context)

Inner exception: System.ServiceModel.QuotaExceededException
Message: The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.

0 0

Replies

replied on July 22, 2020

hi Mark,

The MaxReceivedMessageSize in your post is of netTcpBinding timeoutBindingStreamed. Could you also check the MaxReceivedMessageSize of netTcpBinding timeoutBinding?

timeoutBinding is used for downloading report. If MaxReceivedMessageSize is not configured yet, please add it then try download the report again.

2 0
replied on December 22, 2020

Could you provide more information on this?  I am having similar issues with downloading larger reports.

0 0
replied on June 23, 2021

In this web.config C:\Program Files\Laserfiche\Laserfiche Forms\Forms\web.config, for the two bindings in <netTcpBinding>, timeoutBindingStreamed and timeoutBinding, please make sure they both have maxReceivedMessageSize="2147483647" like:

 

        <binding name="timeoutBindingStreamed" transferMode="Streamed" closeTimeout="00:59:00" openTimeout="00:59:00" receiveTimeout="00:59:00" sendTimeout="00:59:00" maxReceivedMessageSize="2147483647">

        </binding>

and

        <binding name="timeoutBinding" receiveTimeout="00:59:00" sendTimeout="00:59:00" openTimeout="00:59:00" closeTimeout="00:59:00" maxReceivedMessageSize="2147483647">

        </binding>

1 0
replied on June 28, 2021

Here's what we have in web.config:

<binding name="timeoutBindingStreamed" transferMode="Streamed" closeTimeout="01:59:00" openTimeout="01:59:00" receiveTimeout="01:59:00" sendTimeout="01:59:00" maxReceivedMessageSize="2147483647">
          <security mode="Transport" />
        </binding>
        <binding name="timeoutBinding" receiveTimeout="01:59:00" sendTimeout="01:59:00" openTimeout="01:59:00" closeTimeout="01:59:00" maxReceivedMessageSize="2147483647">
          <security mode="Transport" />
        </binding>

0 0
replied on July 22, 2020

Hi Mark. I've seen something like this before for a large report. I believe the resolution was to email the report as a link instead of downloading locally. Note that if you still have issues, it may be worth trying the Schedule option.

1 0
replied on July 23, 2020

I tried the email report option.  I did receive an email, but when I click the "Click here to download report" link, I get: Error occurred during download.

 

An error occurred during download. [LFF4120-ErrorOccurredDuringDownload]

 

Details:

URL: /Forms/Handlers/BPInstancesExport.ashx?download=e5tytuiunl.xlsx&bpid=0&fileType=Xlsx&includeChoices=True&viewId=105&srId=0&sortBy=d1e9979e-9b36-4785-af1e-8d01353d9742_asc&sortType=&thenSortBy=start_date_des&dataType=Instances&exportMode=Reports&title=II-VI+Cap+AR+Weekly+Report%2c+Approved+%26+In+Progress+R04

Error: ErrorOccurredDuringDownload

Date: 7/23/2020 1:40:43 PM (Eastern Standard Time)

HTTP Status Code: 500

Business Process ID: 0

User: MARLOW\mblevins

IP: 192.168.240.186

Browser: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; InfoPath.3; wbx 1.0.0; wbxapp 1.0.0; Zoom 3.6.0)

Business Process Name:

 

Stack Trace:

Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException

Message: An error occurred during download. [LFF4120-ErrorOccurredDuringDownload]

 

 

Inner exception: System.ServiceModel.CommunicationException

Message: The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.

 

Server stack trace:

at System.ServiceModel.Channels.ClientDuplexConnectionReader.DecodeMessage(Byte[] buffer, Int32& offset, Int32& size, Boolean& isAtEOF, TimeSpan timeout)

at System.ServiceModel.Channels.SessionConnectionReader.DecodeMessage(TimeSpan timeout)

at System.ServiceModel.Channels.SessionConnectionReader.Receive(TimeSpan timeout)

at System.ServiceModel.Channels.SynchronizedMessageSource.Receive(TimeSpan timeout)

at System.ServiceModel.Channels.TransportDuplexSessionChannel.Receive(TimeSpan timeout)

at System.ServiceModel.Channels.TransportDuplexSessionChannel.TryReceive(TimeSpan timeout, Message& message)

at System.ServiceModel.Dispatcher.DuplexChannelBinder.Request(Message message, TimeSpan timeout)

at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

 

Exception rethrown at [0]:

at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

at FormsModel.SharedContracts.IFormExportService.ExportProcessData_Sync(ReportingExportParameters para)

at FormsModel.SharedContracts.FormExportServiceProxy.ExportProcessData(ReportingExportParameters para)

at E_Forms.Handlers.BPInstancesExport.ProcessRequest(HttpContext context)

 

Inner exception: System.ServiceModel.QuotaExceededException

Message: The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.

 

 

0 0
replied on February 12, 2021

Hello,

Was this ever resolved?

We have a customer with the same issue.

Jeff Curtis

1 0
replied on July 23, 2020

Here is the requested information:

<bindings>
      <netTcpBinding>
        <binding name="timeoutBindingStreamed" transferMode="Streamed" closeTimeout="01:59:00" openTimeout="01:59:00" receiveTimeout="01:59:00" sendTimeout="01:59:00" maxReceivedMessageSize="2147483647">
          <security mode="Transport" />
        </binding>
        <binding name="timeoutBinding" receiveTimeout="01:59:00" sendTimeout="01:59:00" openTimeout="01:59:00" closeTimeout="01:59:00">
          <security mode="Transport" />
        </binding>
      </netTcpBinding>
      <ws2007HttpBinding>
        <binding name="WS2007HttpBinding_ILicenseManager" maxReceivedMessageSize="2147483647">
          <readerQuotas maxStringContentLength="2147483647" maxArrayLength="2147483647" />
          <security mode="Message" />
        </binding>
        <binding name="WS2007HttpBinding_ILFSecurityTokenService" maxReceivedMessageSize="2147483647">
          <readerQuotas maxStringContentLength="2147483647" maxArrayLength="2147483647" />
          <security mode="Message" />
        </binding>
      </ws2007HttpBinding>
    </bindings>

0 0
replied on June 23, 2021

Hi Mark, please add maxReceivedMessageSize="2147483647" after the closeTimeout in the <netTcpBinding> timeoutBinding. So it should look like this. Then recycle the FormsAppPool in IIS management and try downloading the report again.

1 0
replied on September 23, 2020

Has this been resolved?

Thank you

0 0
replied on April 14, 2021

FYI- If anyone else runs into this issue, I opened an LF Support case and was instructed to do the following, which resolved the issue:

Please check the Web.config in Laserfiche Forms/Forms maxReceivedMessageSize value setting. The section for netTcpBinding should set maxReceivedMessageSize to 2147483647

 

Jeff Curtis

1 0
replied on May 27, 2021

How do you confirm the change and test again?

We are getting this message.

The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.
 

How does 2,147,483,647 translate to 65,536? I am not sure what number to change it to, it comes out of the box at the number your suggesting. I tried adding a 0 which makes it a much larger number but I am shooting in the dark and still not able to download the report.

0 0
replied on June 18, 2021

I have updated all the maxReceivedMessageSize parameters in web.config to 2147483647 and am still unable to download reports.

0 0
replied on June 22, 2021

hi Mark,

Could you share the event log error of download reports? Is it still the same error?

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.