SAP Builders Discussions
Join the discussion -- ask questions and discuss how you and fellow SAP Builders are using SAP Build, SAP Build Apps, SAP Build Process Automation, and SAP Build Work Zone.
cancel
Showing results for 
Search instead for 
Did you mean: 

401 - Application Backend - SAP Build Apps

erickgomez-tech
Participant

Hi,

When you get the data from the newly created and deployed backend, you get an error that says: "Failed to load data." and if you try to add a record you get a 401 error - permissions.

401.JPG

Reading the forum I have seen that others have had the same problem, some as recent as me.

If anyone else already solved it, I would appreciate the help.

Kind regards.

13 REPLIES 13

Summitt12
Participant
0 Kudos

Is this Std or Custom Odata service?

0 Kudos

Hi @Summitt12 

Custom 🙂

Best regards,

Erick

0 Kudos

First check connectivity with a Std OData Service

Are you using embded or Hub Gateway?

0 Kudos

The problem only occurs with the Backend created in SAP Build Apps, called Cloud Functions.

The error is a permission error, I am missing 2 permissions according to the guide, I tried with 2 different users and the problem persists.

The thing is strange 🙂

Jakub_Roguski
Product and Topic Expert
Product and Topic Expert

I had similar issue, with additional "403 Forbidden" while accessing the entity from an app - the quick, but dirty solution in my case was to remove all the roles and all the users from my backend. It seems to me like there is an issue with roles and permissions.

0 Kudos

Hi @Jakub_Roguski 

I had the 403 error when I just activated the Standard plan of SAP Build Apps, I was on the Free plan.

With that resolved, I can make Apps, I can create Backend and everything is fine until I try to view or add data.

That 401 error is authorization, I already have them assigned and it still fails, I'm going to do what you mentioned, remove roles and assign them again, I'll give you feedback.

Thanks for the support.

Erick

Venkat_Vyza
Active Participant

Hello Erick,

Recently SAP implemented Roles and Authorizations for the Visual Cloud Functions backend. These Roles have nothing to do with the Role Collections in BTP Cockpit. 

Please follow the below steps in the same sequence:

1. Create the Entity 

2. Create a Role - under Roles tab. 

3. Then Complete the Deployment. 

4. Then go to Users tab and assign the Role to your email id. 

Here is the documentation https://help.sap.com/docs/build-apps/service-guide/roles

 

Thanks,

Venkat Vyza

0 Kudos

Hi @Venkat_Vyza 

Your explanation has helped me resolve this issue.
It's OK, working 100% 😁

Thank you so much.

Best regards,

Erick

 

Happy to hear that.

Please mark the answer as a Solution 🙂

0 Kudos

Hi @Venkat_Vyza 

I don't see where the answer can be marked as a solution, do you know where?

no veo.png

0 Kudos

This is interesting. Now there is no way that the person who asked the question can mark the correct answer. Maybe the moderators will do that, not sure though! 

Each area of the community can have discussions or Q&A, and only Q&A can be marked as solved. I will push for this area to implement Q&A instead of Discussions.




--------------
See all my blogs and connect with me on Twitter / LinkedIn