ruby on rails - Getting Quickbooks::IntuitRequestException: Invalid Reference Id: Invalid Reference Id : Something you're trying to use has been made inactive -
so i'm working on connector between ruby on rails application , quickbooks online, line items created in application can created on qbo well.
i above error when try create purchase multiple line items, have associated accountbasedexpense or itembasedexpense.
i told either item, account, customer or vendor inactive - i'm unable reproduce above error when try manually deactivate of above fields , try them again.
eg. when try deactivating account , sync - error message seems specific , mention particular field has been deactivated. i've attached sample below:
request:
<purchase xmlns="http://schema.intuit.com/finance/v3" sparse="false"> <txndate>2017-08-10</txndate> <line> <description>sample merchant expense</description> <amount>699.0</amount> <detailtype>itembasedexpenselinedetail</detailtype> <itembasedexpenselinedetail> <itemref>3</itemref> </itembasedexpenselinedetail> </line> <accountref>26</accountref> <paymenttype>creditcard</paymenttype> </purchase>
response:
<intuitresponse xmlns="http://schema.intuit.com/finance/v3" time="2017-08-19t02:26:48.733-07:00"> <fault type="validationfault"> <error code="2500" element=""> <message>invalid reference id</message> <detail>**invalid reference id : 1 of list elements assigned transaction has been deleted. before can modify transaction, must restore retreat:silver retreat (deleted).</detail>** </error> </fault> </intuitresponse>
all error messages seem specific, except 1 title mentions, isn;t helpful @ all, because gives me no clue look. :(
Comments
Post a Comment