| Products | Versions |
|---|---|
| Spotfire Service for Python | ALL |
The TERR or Python data function may fail, and the following error may appear in the logs.
==========
ERROR;2025-04-10T08:31:47,545-05:00;2025-04-10 13:31:47,545;e8bb67b7-5f7f-420b-8948-4e8937470e39;060714382fKCZC;WorkThread 1954_124522;SPOTFIRESYSTEM\scheduledupdates;SchedulerUserSession;Spotfire.Dxp.Framework.ApplicationModel.NotificationService;"Could not execute function call 'DATAFUNCTION_NAME';Unable to write data to the transport connection: An established connection was aborted by the software in your host machine.;
Server stack trace:
at System.Net.Sockets.NetworkStream.BeginMultipleWrite(BufferOffsetSize[] buffers, AsyncCallback callback, Object state)
at System.Net.Security._SslStream.StartWriting(SplitWritesState splitWrite, SplitWriteAsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.ProcessWrite(BufferOffsetSize[] buffers, SplitWriteAsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.BeginWrite(BufferOffsetSize[] buffers, AsyncCallback asyncCallback, Object asyncState)
at System.Net.TlsStream.BeginMultipleWrite(BufferOffsetSize[] buffers, AsyncCallback callback, Object state)
at System.Net.ConnectStream.InternalWrite(Boolean async, Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state)
at System.Net.ConnectStream.BeginW"
===============
This error occurs because, when a Spotfire data function is run, it sends the relevant data from Spotfire to the associated service for processing. The service has a file size upload limit, the default of which is 100 MB. If the data being sent exceeds this limit, the service triggers the error mentioned above.
All
In order to resolve this, you will have to increase the size of the below parameters for the TERR and Python services and set it to some larger values as per your requirement.
spring.servlet.multipart.max-file-size
spring.servlet.multipart.max-request-size
To set the above value, please export the configuration for the TERR/Python service, edit the necessary properties in the custom.properties file, and import the configuration back.
Later, please update the TERR/Python service.
For details on how to edit the service configuration and import the updated configuration, please see the following documentation:
This article outlines the steps to resolve the error "Unable to write data to the transport connection: An established connection was aborted by the software in your host machine", which leads to the failure of Python and TERR data functions.
Doc: Editing the service configuration files
Doc: File size upload limit