Back to SDK Support...

Logging OnError audit events when transactions are posted as a batch. (2 replies)

Randy
12 years ago
Randy 12 years ago

For the Item Batch Import in Magento, we iterate through all of the records in the dataset, and then process them in groups of 2000 or so at a time.

 

This means that when we do the actual API call we are not currently iterating through any transactions, and all of the IMan error logging methods I’ve seen require a Transaction object.

 

How do you recommend that I write this information back to IMan correctly without a Transaction object?

Support
12 years ago
Support 12 years ago

Hi Randy,

 

With submitting a batch as you are we would expect that the endpoint return an iterable response that could be iterated over in-line with the transactions that created the request.

 

The TransactionIterator object can be moved back to the beginning of your batch by using a negative number:

 

TransactionIterator _iterator

_iterator.Move(-2000, true)

 

Hope this helps.

12 years ago
Support 12 years ago

Closed due to inactivity.

Contact

    Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

    Looking to purchase IMan, please see our resellers here.

    Realisable Software
    Ph: +44 (0) 208 123 1017

    Copyright © Realisable. All rights reserved.
    Realisable is a registered trademark

    Close

    Request Demo

      Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

      Looking to purchase IMan, please see our resellers here.

      Realisable Software
      Ph: +44 (0) 208 123 1017

      Copyright © Realisable. All rights reserved.
      Realisable is a registered trademark

      Close

      Access Downloads

        Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

        Looking to purchase IMan, please see our resellers here.

        Realisable Software
        Ph: +44 (0) 208 123 1017

        Copyright © Realisable. All rights reserved.
        Realisable is a registered trademark

        Close