cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
aorphan
Level 8

504 Gateway Timeout on "When record created in Business Central" trigger

Hello,

 

I have created a Flow (also tried with Logic App) with a "when record created in Business Central" trigger but I am constantly met with an HTTP 504 Gateway Timeout error when the trigger attempts to run. It ran just fine yesterday. What could be the issue, and what is the fix? 

 

Thanks in advance!

14 REPLIES 14
aorphan
Level 8

Re: 504 Gateway Timeout on "When record created in Business Central" trigger

Full error here: 

"error": {

"code": 504,
"source": "logic-apis-centralus.azure-apim.net",
"clientRequestId": "35252b79-2ba4-4a4a-8377-a2d8d50155e7",
"message": "BadGateway",
"innerError": {
"status": 504,
"message": "Request timed out.\r\n inner exception: A task was canceled.\r\nclientRequestId: 35252b79-2ba4-4a4a-8377-a2d8d50155e7",
"source": "dynamicssmbsaas-cus.azconn-cus.p.azurewebsites.net"
}
}
v-lin-msft
Level 10

Re: 504 Gateway Timeout on "When record created in Business Central" trigger

Hi @aorphan ,

 

According to your descript about your problem, I can give you two suggestions as below,

 

  1. Please update your connection or create a new connection and see if issue still exists.
  2. Please check your subscription of Dynamic 365 Business Central whether expired.

 

Best Regards,

Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Rijk
Level: Power Up

Re: 504 Gateway Timeout on "When record created in Business Central" trigger

Hi there,

 

I'm having the same problem; a few weeks ago it worked fine and all of the sudden it stopped working.

 

I've tried recreating the flows and checked the licenses and it's all ok.

 

When using a Business Central template approval flow that works; however triggering on a new record trows the 504 gateway timeout every time.

aorphan
Level 8

Re: 504 Gateway Timeout on "When record created in Business Central" trigger

Hi @v-lin-msft,

 

It looks like another user has reported the same issue. Any chance your team can investigate?

 

Thanks

Super User
Super User

Re: 504 Gateway Timeout on "When record created in Business Central" trigger

All,

 

EVERY flow is experiencing very similar errors today.  We have been having a teasing of issues since a week ago.  Today, its completely wide spread and DEVESTATING.  MS Ticket is in for the issue.

 

SR number 119043023002044

MaryMThompson
Level: Powered On

Re: 504 Gateway Timeout on "When record created in Business Central" trigger

Do you know if this issue is occuring again? I am having this same issue today.

Rijk
Level: Power Up

Re: 504 Gateway Timeout on "When record created in Business Central" trigger

Hi,

 

I ended up contacting Microsoft and they helped me solve the problem in the back-end somewhere.

 

Regards,

Jelle
Level: Powered On

Re: 504 Gateway Timeout on "When record created in Business Central" trigger


@aorphan wrote:

Hello,

 

I have created a Flow (also tried with Logic App) with a "when record created in Business Central" trigger but I am constantly met with an HTTP 504 Gateway Timeout error when the trigger attempts to run. It ran just fine yesterday. What could be the issue, and what is the fix? 

 

Thanks in advance!



@aorphan wrote:

Hello,

 

I have created a Flow (also tried with Logic App) with a "when record created in Business Central" trigger but I am constantly met with an HTTP 504 Gateway Timeout error when the trigger attempts to run. It ran just fine yesterday. What could be the issue, and what is the fix? 

 

Thanks in advance!




Got the exact same experience. Any news on this? Can't find a solution anywhere.

aorphan
Level 8

Re: 504 Gateway Timeout on "When record created in Business Central" trigger

No, it's still happening for us as well. No word from Microsoft on this. Probably due to the connector being in Preview state, but no word on when it goes live. 

Jelle
Level: Powered On

Re: 504 Gateway Timeout on "When record created in Business Central" trigger

OK. Well, I had a call with their support team last Friday. They couldn't fix it at that moment, and raised a high severity bug to their development team. They will keep me posted.

aorphan
Level 8

Re: 504 Gateway Timeout on "When record created in Business Central" trigger

I have also created a support ticket for this, ID: 119072321000009.

Jelle
Level: Powered On

Re: 504 Gateway Timeout on "When record created in Business Central" trigger

I got an update yesterday from the development team. They created a fix that solved the error, however now I got an 400 error saying "ErrorCode: Application_StringExceededLength  The length of the string is 540, but it must be less than or equal to 250 characters."

 

I replied this to the development team. Haven't got a response yet.

aorphan
Level 8

Re: 504 Gateway Timeout on "When record created in Business Central" trigger

After investigating, support was able to resolve the issue. I asked what they did to fix it and this was their response:

 

After investigating the issue they found that the there have been high amount of requests recorded for the trigger in several tenants and because of that the Flow was failing with Gateway Timeout.

To resolve this issue in the backend by restarting the App Service and now you should be able to use the Trigger effectively.

 

So if this is affecting you, I would recommend creating a support ticket. The only way I know how to do it is through the PowerApps Admin Center (preview) located here: https://admin.powerplatform.microsoft.com/support.

 

I am not going to mark this as resolved as this is clearly a bug on their end that they need to actually fix for everyone. It seems like any flow we create with this specific trigger will have this problem until they fix it for you.

aorphan
Level 8

Re: 504 Gateway Timeout on "When record created in Business Central" trigger

I also asked about a more permanent fix to this issue, and this was their reply:

 

We aware of the issue with our current implementation of the delta service, which powers our Flow triggers. We have completed development work on a new trigger system in the connector that utilizes the relatively new webhooks functionality in Business Central. Once this is generally available, this should resolve intermittent trigger timeouts and general unreliability. This will be available once customers are updated to Business Central Update 27 in the coming weeks.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 74 members 3,463 guests
Recent signins:
Please welcome our newest community members: