18.04.2025
16

Resending data after error in Data Destination

Resending data after error in Data Destination

If/Then logic allows you to customize data transfer scenarios based on specific conditions under which certain actions should be performed in various Data Destination systems, for example, you can re-transmit data to your system when a situational error occurs. 

Let's set up resending data after error in Data Destination, which we will implement using If/Then Logic!


Navigation:

1. Why configure re-sending of data to the same Data Destination?
2. If/Then Logic settings
3. Create a second connection with Webhooks as Data Source
4. How to set up variables for retransmitting data via Webhooks?
5. How to set up variables to re-pass data to the Google Sheets?
6. The result of setting data resending

Do you have a connection where errors occur periodically when receiving data in the Data Destination? Then you should configure retransmission of data in case of an error to the same Data Destination and if the Data Destination responds with an error again, then you should configure data transmission to another Data Destination, as described in our help.

Let's show the logic of data transfer to the same Data Destination using the example of a Facebook – Google Sheets connection, where Google Sheets periodically responds with an error related to the Google server's inability to accept a lead at the current moment of the request.

Resending data | Data Destination error
Resending data | Data Destination error

We go to the required connection, where errors periodically occur in the Data Destination, turn off auto-update and click on + under the Data Destination block and select the If/Then Logic item.

Resending Data | Adding Logic

Next, select the If action and click Continue.

Resend Data | Select Logic Action

We leave the condition as the one suggested by the system - Execution result of Data Destination Equals Unsuccessful, and click Continue again.

Resend Data | Logic Settings
Resending Data | Logic Test Data

After this, the If/Then Logic condition is configured, then we add Webhooks as Data Destination inside the Logic. Click on + and select Data Destination.

Resending Data | Adding Webhooks Data Destination

Next, we select the Webhooks system.

Resending Data | Choosing a Webhooks System

Next, you should select the Send DATA action.

Resend Data | Select Webhooks Data Destination Action

At the access stage, click Connect.

Resending Data | Connecting Webhooks Data Destination Account

Now you need to insert a link to which data will be sent in case of an error in the main Data Destination. To do this, you need to create a new connection, where the Data Source will be Webhooks.

Resending Data | Connecting Webhooks Data Destination Account

In a new tab, go to the main page of the ApiX-Drive account and click Create a connection.

Resending data | Creating a second connection

We select the Webhooks system (source).

Resubmitting Data | Selecting a Data Source System

Next, select the Get DATA action.

Resend Data | Select Action Data Sources Webhooks

At the Access stage, click Connect and Continue.

Resending Data | Connecting a Webhooks Data Source Account
Resending Data | Connecting a Webhooks Data Source Account
Resending Data | Connecting a Webhooks Data Source Account

At the Settings stage, we copy the link and return to our connection with If/Then Logic, where we paste this link.

Resending Data | Copying Webhooks Link for Data Destination
Resending Data | Inserting Webhooks Link for Data Destination

Next, in our main connection, click Continue and proceed to the Settings stage.

Resending Data | Connecting Webhooks Data Destination Account

At this stage, we name the variables as we like and assign data from the Facebook Data Source to them, and click Continue.

Resending Data | Setting Webhooks Data Destination Variables
Resending Data | Setting Webhooks Data Destination Variables

In the Test step, click Send test data to Webhooks to get the variables we need to assign them in the resend and return to the main screen, where we go to our second connection to the Webhooks Data Source.

Resending Data | Sending Test Data from Webhooks Data Destination
Resending data | Switching to second connection

In this connection, go to the Test stage and click Load test data, the data that you sent from the main connection should be displayed.

If the data is not displayed, you need to check if the link you have set up to retrieve the data is correct.

Resubmitting Data | Loading Test Data in Webhooks Data Source

After successfully loading the test data, we proceed to the Data Destination settings, click on + and add the Data Destination.

Resending Data | Adding Data Destination in Second Connection

Select Google Sheets.

Resending data | Selecting a system in the second connection

Next, select the Add Row action.

Resend data | Select the action in Data Destination of the second connection

At the Access stage, click Show accounts and select the same table as in the main connection settings.

Resending data | Selecting an account in Data Destination from a second connection

Next, we set up data destination. Select the desired Sheet from the drop-down list, then assign the data to the desired columns and click Continue.

Resending data | Setting up Data Destination from the second connection
Resending data | Setting up Data Destination from the second connection
Resending data | Setting up Data Destination from the second connection
Resending data | Setting up Data Destination from the second connection

After this we see the test data, click Continue and this completes the setup of the second connection.

Resending data | Test data in Data Destination from the second connection
Resending data | Finishing setting up the second connection

Now you need to select the auto-update interval for the second connection, to do this, click on the gear opposite this connection.

Resending data | Changing the auto-update interval on the second connection
Resending data | Changing the auto-update interval on the second connection

After all the settings, enable auto-update of both connections, to do this, click on the slider icons, they should turn blue.

Resending data | Enable auto-update for both connections

Now we show the principle of operation of what we have set up. When transferring 2 leads, we received an error from Google Sheets, which is related to the fact that their server cannot accept data at the moment and these 2 leads were sent to our configured Webhooks using If/Then Logic.

Resending Data | Example of how resending data to the same Data Destination works

We check the log of the second connection and see that the table has now successfully received this data.

Resending Data | Example of how resending data to the same Data Destination works
Resending Data | Example of how resending data to the same Data Destination works

This completes the set up Resend data after error in Data Destination! See how easy it is!

Now you don't have to worry, ApiX-Drive will do everything else on its own!