cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

SAP ERP Connector Setup - Bad Gateway

Dear forum members,

 

I try to setup and have read following blog

https://powerapps.microsoft.com/en-us/blog/introducing-the-sap-erp-connector/

 

But I still cannot set it up, and keep on getting this error "BadGateway".

Anyone has hints where to see more info about this error message?

 

Thanks.

 

2020-04-09_16-05-35.png

8 REPLIES 8
Highlighted
Microsoft
Microsoft

Re: SAP ERP Connector Setup - Bad Gateway

@hsu Could you please click on the three dot of the action to see whether the connection is in 'Connected' status? If the connection is not 'Connected' could you please recreate the connection. Please ensure the Gateway installed is the latest version.

 

 

 

 

Screenshot_5.jpg

 

 

Please mark my reply as a solution if you think it helps.

Thank you.

 

Best Regards,

 

Jessie Chen

 

Support Engineer

Asia Dynamics 365 Support

Customer Services and Support

Highlighted
Helper I
Helper I

Re: SAP ERP Connector Setup - Bad Gateway

Dear Jessie,

 

yes, the connection is showing connected. 

 

Any hints how to analyse this error?

Highlighted
Microsoft
Microsoft

Re: SAP ERP Connector Setup - Bad Gateway

Dear forum member,

 

Could you please click on one failed run and copy paste the flow run url to me?

It would be something like this:

 

https://preview.flow.microsoft.com/manage/environments/839eace6-59ab-4243-97ec-a5b8fcc104e4/flows/29...

 

Thank you.

 

Best Regards,

 

Jessie

Highlighted
Frequent Visitor

Re: SAP ERP Connector Setup - Bad Gateway

Hi @shu ,

I have the same situation;

I tried with DEV, QS, PROD servers -> the result is same -> BadGateway;

 

GatewayError.log -> Unable to register Sap configSelect one of the installed languages (in SAP are 3 languages (LT, DE, EN)

On the other hand, in SAP there is no logged request from flow..

 

FLOW URL -> https://emea.flow.microsoft.com/manage/environments/Default-810e707a-0fee-4c86-9519-94811f49ad0e/flo...

Highlighted
Frequent Visitor

Re: SAP ERP Connector Setup - Bad Gateway

Have someone figured out how to solve BadGateway errore message?

Thank you.

Regards

Gianmaria

 
Highlighted
Helper I
Helper I

ow Re: SAP ERP Connector Setup - Bad Gateway

Dear fellow community members,

 

I have finally solved this issues.

 

In General what you need to check are:

  • Check the On Prem Gateway error log to get more details.
    • check the file GatewayErrors*.log
    • Check the file in: C:\Users\<user name>\AppData\Local\Microsoft\On-premises data gateway
  • Flow Parameters:
    • AD Host: SAP server hostname -> solved to IP address, by the Gateway
    • Client: SAP Client ID (or Mandant in German)
    • AS System Number: this is the SAP Instance No.
  • Your SAP system (check with the SAP Basis Admin)
    • Whether the SAP system is allowing the connection.
    • There is security reginfo/secinfo, which can prevent the connection to happen

 

If the connection is successful, the automatic completion of the SAP Function Name works, just like in the blog article:
https://powerapps.microsoft.com/en-us/blog/introducing-the-sap-erp-connector/

Highlighted
Frequent Visitor

Re: ow Re: SAP ERP Connector Setup - Bad Gateway

Thanks for the hint.

In my GatewayErrors*.log I have: 

ERROR partner '172.27.1.145:3320' not reached

So maybe my SAP Basis Admin can check if SAP AS is reachable from my GW server.

 

I will check and let you know!

Gianmaria

Highlighted
Frequent Visitor

Re: ow Re: SAP ERP Connector Setup - Bad Gateway

Opening these ports, as addressed by our SAP Basis Admin, on SAP Application Server solved the issue:

3621

3320

3220

3221

8020

8121

 

 

Helpful resources

Announcements
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (4,096)