How to fix Query has exceeded 200 rows. Potentially more rows exists, please restrict your query.
This issue occurs because your query has more than 200 rows.
You can put more filters in your query or set profile "FND: View Object Max Fetch Size".
To set profile values, follow below steps
1. Log in eBusiness Suite
2. System Administrator > Profile > System
3. At Find System Profile Values window, find "FND: View Object Max Fetch Size".
4. At System Profile Values window, change the value then save.