195
Views
8
Comments
Solved
Connection Timeout error while uploading large file
Question

Hi,
      I am uploading a file in SampleBinary Entity. While upload large files I am facing connection Time Out Error. I have increased the Timeout for this entity as 200 and its server action timeout as 200. 

 How can I handle this error ? Also, the File Uploading animation is active when it gets TimedOut , How can I make the loading has false when it gets timedout.


Note: I don't want to restrict the File Size while Uploading. Also, I don't want to use any Forge component to handle this error.

 

2022-01-13 11-06-04
Neha Sheikh
Champion
Solution

Hi Annie,


You might get this error When you upload a file with large data. To resolve this error you need to keep 2 things in mind :

1. Separate the upload and processing logic

2. Use timers 


I am attaching a sample OAP here. I am using Batch processing here. Please let me know if you have any further questions.

Thanks,

Neha

TimerDemo.oml
Sample Data.xls
2023-05-23 04-55-55
Wasimkhan Syed Abuthahir

Hi @Neha Sheikh ,

@Annie Bibiana Yesudass is facing issue in saving a binary data to entity while uploading. 


Regards,

Wasimkhan S

2024-01-31 05-29-41
Akshay Deshpande

Hello, Annie Bibian Yesudass, 
For the most part, you can achieve this by increasing the server timeout property.


But its not as per best practice. So better run the action using timer (timeout time: 20 min), which take more time to execute.

Thanks and Regards,
Akshay Deshpande




2023-05-23 04-55-55
Wasimkhan Syed Abuthahir

Hi Annie,

Did you try by increasing the server request timeout in server action from 200 to any other value like 2000 or more?

Try increasing the timeout and check if it works?


Regards,

Wasimkhan S

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Hi Wasim, no need to share the same information that was already shared 2 hours before your reply by Askshay Deshapande.


2023-05-23 04-55-55
Wasimkhan Syed Abuthahir

Hi Daniel,

Akshay Deshapande asked to increase the Module's server request timeout. I have asked to try by increase the server actions timeout from 200 to 2000s.

Thanks,

Wasimkhan S

2022-01-13 11-06-04
Neha Sheikh
Champion
Solution

Hi Annie,


You might get this error When you upload a file with large data. To resolve this error you need to keep 2 things in mind :

1. Separate the upload and processing logic

2. Use timers 


I am attaching a sample OAP here. I am using Batch processing here. Please let me know if you have any further questions.

Thanks,

Neha

TimerDemo.oml
Sample Data.xls
2023-05-23 04-55-55
Wasimkhan Syed Abuthahir

Hi @Neha Sheikh ,

@Annie Bibiana Yesudass is facing issue in saving a binary data to entity while uploading. 


Regards,

Wasimkhan S

2025-01-09 14-56-57
IQ78

HI,

Some alternatives to attack:

1. Compress the file 

2. ask the user to upload a smaller size 

3. save the file in a file systems and its URL in database (use other tools to upload to the file system: ftp, etc).

regards

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.