# Issue with relation based on database view

**URL:** <https://forum.servoy.com/t/issue-with-relation-based-on-database-view/16253>\
**Category:** Classic Servoy\
**Created:** [July 24, 2012, 6:30am UTC](https://forum.servoy.com/t/issue-with-relation-based-on-database-view/16253 "2012-07-24T06:30:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rossent](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@rossent](https://forum.servoy.com/u/rossent)\
**Post date:** [July 24, 2012, 6:30am UTC](https://forum.servoy.com/t/issue-with-relation-based-on-database-view/16253/1 "2012-07-24T06:30:39Z")

</div>

Hi Servoy,

We have an issue with a relation which links a database view with a real table. In the Relation editor of Servoy Developer it shows the view in red, even though the view exists and can be selected from the list, is not marked as “hidden” and has a column designated as “row ident”. At runtime, we are getting the warning “Relation vw\_ap\_payment\_trans\_selection\_to\_ap\_transaction\_hst cannot be used in a find” even though both the view and the table involved in that relation are in the same database. The attached screen shot shows the information above. We have a few other relation similar to this and they all have the same issue. What is the problem with using database views in relations?

 ![relation_issue.png](https://canada1.discourse-cdn.com/flex010/uploads/servoy/original/2X/b/b88d3ec0dd6ec4c9a47905f079bf7740586ba426.png)
