# Conditions for failure of loadRecords

**URL:** <https://forum.servoy.com/t/conditions-for-failure-of-loadrecords/14182>\
**Category:** Classic Servoy\
**Created:** [June 21, 2011, 2:16pm UTC](https://forum.servoy.com/t/conditions-for-failure-of-loadrecords/14182 "2011-06-21T14:16:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkb](https://avatars.discourse-cdn.com/v4/letter/p/51bf81/32.png) [@pkb](https://forum.servoy.com/u/pkb)\
**Post date:** [June 21, 2011, 2:16pm UTC](https://forum.servoy.com/t/conditions-for-failure-of-loadrecords/14182/1 "2011-06-21T14:16:59Z")

</div>

Hi

I am using forms.dialogFormName.foundset.loadRecords(foundset) to load the current foundset to the dialog form.  
But the loadRecords() is returning false at some point.

I am not sure about the condition. The dialog form inherits the comTransactionDialogBase form of servoyCommons module.  
Can any body please explain some common conditions where loadRecords(foundset) might fail.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [June 21, 2011, 2:28pm UTC](https://forum.servoy.com/t/conditions-for-failure-of-loadrecords/14182/2 "2011-06-21T14:28:37Z")

</div>

Hi,

Does the form reference the same server/table as the foundset you pass to it ?

---

<div class="post-metadata">

**Author:** ![pkb](https://avatars.discourse-cdn.com/v4/letter/p/51bf81/32.png) [@pkb](https://forum.servoy.com/u/pkb)\
**Post date:** [June 21, 2011, 2:41pm UTC](https://forum.servoy.com/t/conditions-for-failure-of-loadrecords/14182/3 "2011-06-21T14:41:39Z")

</div>

Yes both the forms are referencing to same server and table. Only difference is the form in which I am doing loadRecords is displayed as a dialog and is transactional. Also both the forms are using the same foundset.

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [June 21, 2011, 2:50pm UTC](https://forum.servoy.com/t/conditions-for-failure-of-loadrecords/14182/4 "2011-06-21T14:50:51Z")

</div>

Are you sure they use the same shared foundset ? Because then it doesn’t make much sense to load the foundset into the other form.  
Anyway, what might be the cause is unsaved records that can’t be saved. Try fetching the failed records after the loadRecords() returns false.

Hope this helps.
