cancel
Showing results for 
Search instead for 
Did you mean: 

Issue while POSTING bigger .xlsx file using HTTP VBO

kirtish.trivedi
Level 5
I am using Utility HTTP VBO multipart request for Posting .xlsx file 

It is working fine with Smaller size but throwing below error with bigger file size (34 MB)

Error : 
Could not execute code stage because exception thrown by code stage: Object reference not set to an instance of an object.

When I remove the Try catch block , it shows below error 
Could not execute code stage because exception thrown by code stage: The operation Timed out

Hence I assume this is related to timeout. It takes around 2 min 10 seconds before it throws error.

Also it is working from POSTMAN hence nothing wrong from API side

Is there anything needs to be done to increase timeout limit from Blueprism or is there any other issue ?

Please assist.


------------------------------
Kirtish Trivedi
------------------------------
1 BEST ANSWER

Helpful Answers

ritansh.jatwani
Level 9
Hi @Kirtish Trivedi,

Since the file size is quite huge and the default timeout of httpWebRequest is 100s (100,000 ms) hence increasing the timeout value should resolve the issue. Please try the below approach by going to "HTTP Request" action of "Utility-HTTP". (I am assuming that you are using HTTP Request action stage only). Add the Timeout property in the code stage and it should resolve the issue. 

Note - 400,000 means 400s. It can be configured based on the requirement.

8643.png

------------------------------
Ritansh Jatwani Senior Consultant
Consultant
EY
Gurgaon
*If you find this post helpful mark it as best answer
------------------------------

View answer in original post

2 REPLIES 2

ritansh.jatwani
Level 9
Hi @Kirtish Trivedi,

Since the file size is quite huge and the default timeout of httpWebRequest is 100s (100,000 ms) hence increasing the timeout value should resolve the issue. Please try the below approach by going to "HTTP Request" action of "Utility-HTTP". (I am assuming that you are using HTTP Request action stage only). Add the Timeout property in the code stage and it should resolve the issue. 

Note - 400,000 means 400s. It can be configured based on the requirement.

8643.png

------------------------------
Ritansh Jatwani Senior Consultant
Consultant
EY
Gurgaon
*If you find this post helpful mark it as best answer
------------------------------

Thank you @ritansh.jatwani

------------------------------
Kirtish Trivedi
------------------------------