Recurring Gift and his respective Recurring Gift Payment in the same batch

I'm implementing an integration similar to the one mentioned in this topic:

I need to add one time and recurring gifts to a batch, with one time gifts I have no problems. the problem is with recurring gifts and his recurring gift payment. but in the web view I see this exception related to the recurring gift payment:
“A recurring gift payment cannot be added without a linked recurring gift.”

*I need to send all gifts to the batch, but I don't know if that's not possible, do I need to create 2 batches? the first one for One Time and Recurring Gift Payments, and the second one only for Recurring Gifts?
* do I need a different configuration for batches, recurring gifts or recurring gifts payments (all this objects are created via API)?
how to avoid this exception?, I think this exception is caused by the Recurring Gift isn't still approved, because the Recurring Gift Payment is linked to the Recurring Gift, if that were not the case, the API would have flagged that exception and it would not have been created.
thank you.

Categories