GnuCash 1.8.0-1.RH8.0 refused to enter transaction
Roland Roberts
roland at astrofoto.org
Wed Mar 5 09:43:26 CST 2003
-----BEGIN PGP SIGNED MESSAGE-----
>>>>> "Derek" == Derek Atkins <warlord at MIT.EDU> writes:
Derek> Roland Roberts <roland at astrofoto.org> writes:
>> ** CRITICAL **: file gnc-transaction-xml-v2.c: line 443 (set_tran_date): assertion `tm' failed.
Derek> [snip]
Derek> You've got scheduled transactions, right? This usually
Derek> occurs because of a bug in how SX's store themselves
Derek> internally.
Yes, about a dozen I think.
>> Warning: PrintAmountInternal: Bad numeric.
Derek> [snip]
Derek> I still don't understand this. Can you 'grep' your XML
Derek> file for anything that says "/0"?
Oo-oo! Lots of hits on this, all look like:
<split:quantity>-1/0</split:quantity>
Hmmm, now that I look at this, I'm a bit more confused. M hese seem to
be appearing all over the place, and I do think each on is in a
scheduled transaction, but they can appear more than once in a
transaction. In each case, immediately preceding the "quantity" -1/0
is a line like this:
<split:value>0/100</split:value>
Here's an example:
<gnc:transaction version="2.0.0">
<trn:id type="guid">0512480dc3683f0f713af516215f329e</trn:id>
<trn:currency>
<cmdty:space>ISO4217</cmdty:space>
<cmdty:id>USD</cmdty:id>
</trn:currency>
<trn:date-posted>
<ts:date>1969-12-31 19:00:00 -0500</ts:date>
</trn:date-posted>
<trn:date-entered>
<ts:date>2003-01-12 00:07:05 -0500</ts:date>
<ts:ns>120713000</ts:ns>
</trn:date-entered>
<trn:description>Sun Tech, Inc</trn:description>
<trn:splits>
<trn:split>
<split:id type="guid">1b681c3d259398801250ce8e3956572e</split:id>
<split:memo>Principal</split:memo>
<split:reconciled-state>n</split:reconciled-state>
<split:value>0/100</split:value>
<split:quantity>-1/0</split:quantity>
<split:account type="guid">ce483d43db02883f919e01acddd23a22</split:account>
<split:slots>
<slot>
<slot:key>sched-xaction</slot:key>
<slot:value type="frame">
<slot>
<slot:key>credit-formula</slot:key>
<slot:value type="string"></slot:value>
</slot>
<slot>
<slot:key>debit-formula</slot:key>
<slot:value type="string">10.00</slot:value>
</slot>
<slot>
<slot:key>account</slot:key>
<slot:value type="guid">746e0962bcaf88b3562a4eb0cfdc11ab</slot:value>
</slot>
</slot:value>
</slot>
</split:slots>
</trn:split>
<trn:split>
<split:id type="guid">070cc32fb2de63063d84b13b6cecb0b1</split:id>
<split:memo>Interest</split:memo>
<split:reconciled-state>n</split:reconciled-state>
<split:value>0/100</split:value>
<split:quantity>-1/0</split:quantity>
<split:account type="guid">ce483d43db02883f919e01acddd23a22</split:account>
<split:slots>
<slot>
<slot:key>sched-xaction</slot:key>
<slot:value type="frame">
<slot>
<slot:key>credit-formula</slot:key>
<slot:value type="string"></slot:value>
</slot>
<slot>
<slot:key>debit-formula</slot:key>
<slot:value type="string">350.00</slot:value>
</slot>
<slot>
<slot:key>account</slot:key>
<slot:value type="guid">c34ccb96819e8c9c0703268f52552249</slot:value>
</slot>
</slot:value>
</slot>
</split:slots>
</trn:split>
<trn:split>
<split:id type="guid">4d07dc44e3be0fcceeee392bb961db36</split:id>
<split:reconciled-state>n</split:reconciled-state>
<split:value>0/100</split:value>
<split:quantity>-1/0</split:quantity>
<split:account type="guid">ce483d43db02883f919e01acddd23a22</split:account>
<split:slots>
<slot>
<slot:key>sched-xaction</slot:key>
<slot:value type="frame">
<slot>
<slot:key>credit-formula</slot:key>
<slot:value type="string">360.00</slot:value>
</slot>
<slot>
<slot:key>debit-formula</slot:key>
<slot:value type="string"></slot:value>
</slot>
<slot>
<slot:key>account</slot:key>
<slot:value type="guid">b09502b6eddf2bd8cfac44823afa5e70</slot:value>
</slot>
</slot:value>
</slot>
</split:slots>
</trn:split>
</trn:splits>
</gnc:transaction>
regards,
roland
- --
PGP Key ID: 66 BC 3B CD
Roland B. Roberts, PhD RL Enterprises
roland at rlenter.com 6818 Madeline Court
roland at astrofoto.org Brooklyn, NY 11220
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
Comment: Processed by Mailcrypt 3.5.4, an Emacs/PGP interface
iQCVAwUBPmYNDuoW38lmvDvNAQFBiwQAoNzSOjktrItNYpVCuJ5bI+q13qd1ZDDz
LSvgnAugMxQEZdD37vf2UtRtebcrfM50IivsF+HAwA6lQmOga3uKUH0uEQUBcxdZ
iVtpLM47unu9r4jXKXO+EYY/YWLh35FUAgO1alVWVX8RZB3uOnrNG5WSn08UYl3Q
Cw7cVplkxdE=
=6Ui8
-----END PGP SIGNATURE-----
More information about the gnucash-user
mailing list