Dear Alberto,
Thank you very much, You were right the site views were restricted.
It's now working. You are awesome.
Another thing I would like to know is how would I be able to store and view entities with volatile session scope. an example is, in my module, there are a cart and cart item entities with volatile session scope.
I want it to function in such a way that when I add a product with its quantity to bag it should be able to store in the database, subtract the quantity from the product entity and to show when generate and run.
Lastly, I have created a user profile with the custom location but when I generate and run it doesn't show.
I look forward to hearing from you Alberto.
Thank you.