We are trying to add an Invoice with 'SetCredit' using QBXML - WebConnector. (QBXML is formed right)
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="12.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<InvoiceAddRq requestID="26321">
<InvoiceAdd>
<CustomerRef>
<ListID>4E0000-1201550597</ListID>
</CustomerRef>
<ClassRef>
<ListID>10000-1200441777</ListID>
</ClassRef>
<ARAccountRef>
<ListID>80000-1196902636</ListID>
</ARAccountRef>
<TemplateRef>
<ListID>80000026-1360099831</ListID>
</TemplateRef>
<TxnDate>2013-05-29</TxnDate>
<RefNumber>5957</RefNumber>
<BillAddress>
<Addr1>ABC Customer</Addr1>
<Addr2>1110 South Ave</Addr2>
<Addr3>
</Addr3>
<City>Rapids</City>
<State>MN</State>
<PostalCode>55555</PostalCode>
</BillAddress>
<DueDate>2013-05-29</DueDate>
<IsToBePrinted>0</IsToBePrinted>
<IsToBeEmailed>0</IsToBeEmailed>
<SetCredit>
<CreditTxnID>D4700-1369861742</CreditTxnID>
<AppliedAmount>20.00</AppliedAmount>
</SetCredit>
<InvoiceLineAdd>
<ItemRef>
<ListID>F0000-1228155795</ListID>
</ItemRef>
<Quantity>1</Quantity>
<Rate>250.00</Rate>
<ClassRef>
<ListID>10000-1200441777</ListID>
</ClassRef>
<Amount>250.00</Amount>
</InvoiceLineAdd>
</InvoiceAdd>
</InvoiceAddRq>
</QBXMLMsgsRq>
</QBXML>
Note: We have 'QuickBooks Enterprise Solutions 13.0'. No one else has the QuickBooks file open. We also closed the quickbooks enterprise UI.
Adding invoice with 'SetCredit' throws up below error when quickbooks mode is set to 'Multi-User'.
3176 - A related CreditTxnID object D4700-1369861742 is already in use, or failed to acquire the lock for this object. QuickBooks error message: Can't lock the credits
However, Invoice gets added fine with 'SetCredit' when changing QuickBooks mode to 'Single-User' mode.
Please provide a fix to this error, as we need to have quickbooks in 'Multi-User' mode.
Thanks,
Arun