sap-tutorials / Issues

Creative Commons Attribution 4.0 International
6 stars 4 forks source link

Unable to import/select Equipment Determination Rules #428

Closed LarsVlyminckx closed 3 years ago

LarsVlyminckx commented 3 years ago

Tutorials: https://developers.sap.com/tutorials/cp-starter-ibpm-employeeonboarding-2-configure.html

I'm currently following this tutorial but I'm stuck at "Step 3: Import business rules from API Business Hub" . I get the error "Bad Gateway Error" : image

But if I go to the destinations and check the connection of "BUSINESSRULES_APIHUB" I get a correct working connection: "Connection to "BUSINESSRULES_APIHUB" established. Response returned: "200: OK": image

When I go to api.sap.com I see the business rule but I can't select it as you can see in the picture: image

Can somebody help me? What should I do?

Thanks in advance.

Lars

ArchanaShukla commented 3 years ago

Do you have user in API Business Hub? If not then login to api.sap.com and then wait for couple of hours 1-2 hours and try again - it should work. Additionally, you have to import the rule from Business Rules Editor and not API Business Hub. Please check the instructions in the tutorial again.

LarsVlyminckx commented 3 years ago

As you can see on the last picture (top right) I was already logged in. I also imported the rule form Business Rules service as you can see on the first picture.

ArchanaShukla commented 3 years ago

Yes you are logged in, but was this the first time that you logged in? If yes then it takes some time to reflect. If you have logged in couple of hours before and still it is failing, then is your user two-factor authentication enabled? If yes, then you have to use password as password+passcode.

LarsVlyminckx commented 3 years ago

No it wasn't the first time that I was logged in. I already used this for Cloud Platform Integration and IoT API. I don't have two-factor authentication enabled. When I go to api.sap.com and select the business rule. I see in the console that I also have an error: image I don't know that this is the issue or not, but this isn't correct. Some colleagues of my also have this error. In the network section I see that the UI is doing some API Calls image

LarsVlyminckx commented 3 years ago

I checked the API calls in incognito and there it was working after I logged in. So I updated the destinations and now it's working. So it was probably a password/login issue.

Thanks for the help