cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PowerFabi
Regular Visitor

On premises gateway: Timout saving large pictures to SQL DB

Hi community,
I am irregulary getting an error when I try to submit pictures to my SQL database. The Flow is started by a PowerApp and does several steps including writing in connected tables in the same database.
The error message is as following (I cutted out some IDs and urls):

{ "status": 404, "message": "The gateway is either offline or could not be reached.\r\n inner exception: Gateway on endpoint 'sb://asdf.servicebus.windows.net/bbbe/' is unreachable.\r\n inner exception: The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:01:00'.\r\n inner exception: The write operation failed, see inner exception.\r\n inner exception: The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:01:00'.\r\n inner exception: An established connection was aborted by the software in your host machine\r\nclientRequestId: 472d", "source": "sqlconnectionprovider-asdf.azurewebsites.net" }

I could still find out that it only happens with pictures that are larger than around 3MB. Therefore I am very convinced that the error message is either related to the size of the Base64 sting in which the picture is naturally converted throughout flow or to a timeout in the on premises data gateway (as said in the error message).
Can anybody help me with this issue? If you need more information don't hesitate to ask.
5 REPLIES 5
Community Support
Community Support

Re: On premises gateway: Timout saving large pictures to SQL DB

Hi @PowerFabi,

 

Could you please share a full screenshot of the configuration of your flow?

In addition, I noticed that the error message indicates that Gateway is offline. Please ensure that there is a good network environment during the transmission and that the gateway is connected. You could try to update the gateway to the latest version.

Please provide more details and which should be helpful for us to share a further suggestion.

 

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
PowerFabi
Regular Visitor

Re: On premises gateway: Timout saving large pictures to SQL DB

Hi @v-bacao-msft,

 

as the flow is pretty large, I had some problems getting if fully on my screen. At the start i am initializing some variables. The trigger is PowerApps. 
As you can see I am using the SQL connection in some previous steps. The flow has never faild on theses steps. That's why I was currious that the outer exeption of the error message is saying that the gateway is offline.
Flow_full.PNG
Here is a more detailed screenshot of the "Add Pictures part":
Photo_part.PNG

I put it at the end of the flow so I only have to add these steps manually if it fails. 
The "PA_Photo2" parameter is a base64 encoded sting with a length between 3 milion and 4,5 milion figures.


I asume that this is simply to large for the on-premises data gateway and some kind of timeout or limit is hit. But I couldn't find out where I can change this timeout.

The gateway has the version number 3000.0.144.3 (October 2018). I guess it is the newest.

rajgilbert
Frequent Visitor

oeRe: On premises gateway: Timout saving large pictures to SQL DB

PowerFabiDid you ever figure out the solution to this issue?

 

 

PowerFabi
Regular Visitor

Re: oeRe: On premises gateway: Timout saving large pictures to SQL DB

@rajgilbert  - Unfortunately not. Some days ago I dicovered by chance that one of the known limitation is a limit of 8MB/ 2MB for reponse/request size with the sql server connector through on-premises gateways (https://docs.microsoft.com/en-us/connectors/sql/#known-issues-and-limitations). But that only confuses me more because the limit I experienced is between 3MB and 3.5MB so this doesn't make so much sense, neither.

PAVE_BI
Frequent Visitor

Re: oeRe: On premises gateway: Timout saving large pictures to SQL DB

I am having the same problem, but I am only inserting a raw json to sql. And the size is less than 3MB as well. So I am really confused about what is going on here.

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (6,122)