You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have an issue where, while using batch to add multiple journal entries, no error is indicated from $batch->getLastError() function.
Code:
$batch->Execute();
if ($batch->getLastError())
{
// my code is not failing on errors!
throw new Exception("problem!!!");
}
However, After calling execute and enumerating the results (in this case IPPJournalEntry) the Resulting ID Is null, and the accompanying $exception inside the batch is IntuitBatchResponse is populated.
Are batches then not transactional? Can some batch entries succeed while others fail within the same batch?
Proposal $batch->ExecuteTransactional() which is all or nothing, and populating getLastError() in either case.