tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/2093-nameerror-global-name-getparenttxn-is-not-definedInfinite Kind: Discussion 2018-06-14T11:50:24Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/449100282018-03-15T11:43:30Z2018-03-15T11:43:30ZNameError: global name 'getParentTxn' is not defined<div><p>Hi David,</p>
<p>I think the issue is that getParentTxn() is an instance method, so you should be calling txn.getParentTxn(). Also instead of using isinstance() you could use txn.getParentTxn()==txn</p>
<p>Thanks,<br>
Sean</p></div>Sean Reilly