# Error executing code: CustOutPaym object not initialized

**URL:** <https://www.dynamicsuser.net/t/error-executing-code-custoutpaym-object-not-initialized/64580>\
**Category:** Developer Forum\
**Created:** [November 3, 2017, 2:28pm UTC](https://www.dynamicsuser.net/t/error-executing-code-custoutpaym-object-not-initialized/64580 "2017-11-03T14:28:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![malliswari](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@malliswari](https://www.dynamicsuser.net/u/malliswari)\
**Post date:** [November 3, 2017, 2:28pm UTC](https://www.dynamicsuser.net/t/error-executing-code-custoutpaym-object-not-initialized/64580/1 "2017-11-03T14:28:26Z")

</div>

Hi ,

When I tried to open wizard report in AX 2009 I am getting below error.

"

Error executing code: CustOutPaym object not initialized.

(C)\Classes\CustOutPaym\getOutPaymRecords  
(C)\Reports\BankPaymAdviceCust\Methods\init - line 17"

Interestingly there is no method called “getOutPaymRecords” in CustOutPaym class.

Please suggest any idea

Thanks

---

<div class="post-metadata">

**Author:** ![kranthi](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@kranthi](https://www.dynamicsuser.net/u/kranthi)\
**Post date:** [November 4, 2017, 2:38am UTC](https://www.dynamicsuser.net/t/error-executing-code-custoutpaym-object-not-initialized/64580/2 "2017-11-04T02:38:29Z")

</div>

What do you mean by wizard report? Is it Report wizard?  
How you are opening it?

---

<div class="post-metadata">

**Author:** ![kunal\_patel](https://avatars.discourse-cdn.com/v4/letter/k/d2c977/32.png) [@kunal\_patel](https://www.dynamicsuser.net/u/kunal_patel)\
**Post date:** [November 4, 2017, 12:24pm UTC](https://www.dynamicsuser.net/t/error-executing-code-custoutpaym-object-not-initialized/64580/3 "2017-11-04T12:24:10Z")

</div>

method getOutPaymRecords is there in custVendOutPaym class, custOutPaym extending custVendOutPaym class.  
here error is saying that in int method of BankPaymAdviceCust class , there is no declaration of custOutPaym , can you please try to declare ?

if it is declared already try to  
compile custVendOutPaym and custOutPaym  
coimpile forward custOutPaym
