Closed tofer closed 4 years ago
I confirm.
fail: MyProject.Common.QuickBooks.Application.C.WebConnectorHandler[0]
An exception occurred during processing a step for ticket 22a294ee-7f99-4677-a1e4-50b7353ab5c2. Step: TransactionQuery
QbSync.WebConnector.Core.QbSyncException: Exception of type 'QbSync.WebConnector.Core.QbSyncException' was thrown.
---> System.InvalidOperationException: There was an error generating the XML document.
---> System.InvalidOperationException: Value of ItemsElementName mismatches the type of QbSync.QbXml.Objects.TxnTypeFilter[]; you need to set it to QbSync.QbXml.Objects.ItemsChoiceType92.@TransactionTypeFilter.
Will be bumping Minor only.
An old bugfix we discussed once upon a time and I never did a PR for. The XSD definition for
TransactionFilter
specifies ref elementTransactionTypeFilter
:Before this fix, when trying to use the
TransactionTypeFilter
property, QuickBooks would return an error, ie:QuickBooks is expecting an array of
TxnTypeFilter
(note the 'maxOccurs="unbounded"'). This fix updates the generator so theTransactionTypeFilter
property has typeTxnTypeFilter[]
. This changes the usage to:This is technically a breaking change, however if anyone was using that property before their application was probably already broken.