You cannot directly use a data view on the homepage, because you need to pass the object in question to the page for it to work. To make it work, instead of using the page as your homepage, use a microflow as your homepage. You can then retrieve the object in your microflow and use a “show page” action to open that homepage, while passing the object as a parameter.
Because your home page contains a data view, you will need to provide the object of data view’s entity when opening home page. This data view on the home page needs a data source. Just like when you open a new/edit page, it actually contains a data view which receives the object to edit. This is how data view works. It needs an entity passed to it.
In case of home page, you are not opening the page on click of button that you may pass an object from.
Many thanks both Eline and Umar. Your quick response helped me to solve the problem.
Thank you.