Scheduled Data Import : Use a specific Transform map

Abdellah TAHRI
Tera Contributor

Scheduled Data Import : Use a specific Transform map

For organizations, the load of users for example , may need to be done daily , you can create a scheduled import to launch data imports automatically .

When creating the scheduled import , a data source needs to be provided :

AbdellahTAHRI_0-1715613042092.png

 

If I have many data sources with the same staging table , all transform maps related to the staging table can be used , the reason is that Transform maps are linked to the staging tables 

AbdellahTAHRI_1-1715613042096.png

 

It’s difficult to define a specific import logic if in my case I want to apply a specific Transform Map to my scheduled import .

In the definition of the scheduled import, we are not able to define which Transform Map we want to apply .

Now , if we go back to definition of the Transform Map , we can see that , we can execute a Transform script before the load of data , by using an “OnStart” script .

We can use the OnStart script to get the name of the Data Source using the global variable import_set and check if the current Data Source is the good one .

(if you want to see all global variables, open the wiki )

In the example below , we ignore the import if it’s triggered from the Data Source 2 (Related to the scheduled import)

AbdellahTAHRI_2-1715613042097.png

 

 

AbdellahTAHRI_3-1715613042101.png

 

 

1 REPLY 1

Ubada Barmawar
Giga Guru

you can use transform map for particular Datasource, open the datasource record and test load records while keeping your transform map record open in next tab, after clicking the load all records UI action.....refresh the TMap page.....and It will definitely show your datasource in source field.(if you want to use the predefined TMap, or else create a TMap on test load).

 

 

If this helps, please mark this as helpful and accepted this as solution if it solved your query.

 

regards,

Ubada Barmawar.