Skip to main content

How to get two tables (archive and non-archive) data to same S3 bucket and folder

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Dineshan
Support
Support

How to get two tables (archive and non-archive) data to same S3 bucket and folder

Last Update:

Jun 24, 2022 4:55:05 PM

Updated By:

Dineshan

Created date:

Jun 24, 2022 4:58:09 PM

Move two tables (archive and non-archive) data to same S3 bucket and sub folder. Our assumptions are that both tables share the same DB schema and will not contain duplicate primary key. 

Option 1:
You will have to create a custom script to move or copy files over to same sub folder (you may need to engage developers). Once the script is ready you can follow the instruction to configure S3 endpoint post upload processing in replicate.

  1. Once you have the custom script to copy/move the files to same sub folder in S3 bucket, log into Qlik Replicate console
  2. Open the desired task and open the target S3 endpoint
  3. Select Advanced tab
  4. Expand "Post Upload Processing", then check "Run command after upload" and provide the information to specify "Run command after upload".

Dineshan_1-1656102799462.png

Replicate will execute the command once the replication is complete. This way the files will be copied/moved to the same folder.


Option 2:
If the source has archive and non-archive tables and both the tables share same DB Schema, then you could use global rules and rename one table as the other. This will allow Replicate to merge both tables.

  1. Make sure the schema is the same for both tables
  2. Login to Qlik Replicate console
  3. Navigate to "Task Settings"
  4. Under Full Load set "If target table already exists:" to "Do nothing" and click ok
  5. From "Designer View" select the tables you want to do the full load and merge
  6. Select "Global Rules" and choose "New Rule" and select TransformationDineshan_4-1656103198841.png
  7. Select Rename Table and Next

 Dineshan_5-1656103244642.png

8.  Enter the Schema name and Table name then select Next (if you want to merge table A with B the enter table A schema name and table name) and Next

 Dineshan_7-1656103346577.png

9. Select "Rename table to" and enter the destination table name (if you want to merge table A with B then enter B table name) and Next 

Dineshan_8-1656103447054.png

10. Enter Name and click finish

Dineshan_9-1656103486532.png

11. Start your task

Environment
Qlik Replicate 2021.5 and above

Version history
Last update:
‎2022-06-24 04:55 PM
Updated by: