Trying to patch all items in a Collection into a Postgres dB. Using the following code:
ForAll(colQsToPostgres, Patch('im_e2e_instance.intervention_question_map', Defaults('im_e2e_instance.intervention_question_map'), {comp_id: comp_id, question_id: question_id, intervention_question_id: intervention_question_id,date_created:Now(),order_position: order_position,survey_version:1}));
This seems to work most of the time, but every now and then, it stops working and only uploads part of the records in a collection.
For example if the collection has 15 items it will only upload 1 or 2.
After a few hours or after a day or 2 it starts working again.
I have no idea what on earth is happening. Any help would be greatly appreciated.