Step 4. Create a mapping to load a CSV file into Google Cloud Storage
Step 4. Create a mapping to load a CSV file into Google Cloud Storage
The
Data Integration
Mapping Designer allows you to define data integration flow in a visual designer interface. It starts from defining the data source to read data from, applying transformations based on your requirements on that data set, and then writing the resulting data set to the data target.
In this step, you load a CSV file from the flat file directory configured in flat file connection and write it to Google Cloud Storage. Please
download the CSV file and place it in the flat file directory.
For information about transferring files to Google Compute Engine, see
this GCP guide.
If you still have the
Administrator
service open, click
Administrator
next to the Informatica logo in the top left corner of the screen. Then select
Data Integration
from the menu.
In
Data Integration
, click
New
to open the
New Asset
dialog box.
In the
New Asset
dialog box, click
Mappings
in the menu on the left, select
Mapping
, and click
Create
:
When the mapping opens, enter the mapping name in the
Name
field:
Click the Source transformation in the canvas.
On the
General
tab, update the name of the Source transformation to reflect the actual object.
In this case, the source is a CSV file.
Click the
Source
tab, and perform the following steps:
In the
Connection
field, select the flat file connection that you created.
Click
Select
next to the
Object
field to select the CSV file.
IICS treats flat files as CSV by default. You can change the formatting by clicking
Formatting Options
.
Optionally, click
Preview Data
if you want to view the first few rows of the data file.
Click the Target transformation in the canvas.
On the
General
tab, update the name of the Target transformation to reflect the actual object.
In this case, the target is Google Cloud Storage.
Click the
Target
tab, and perform the following steps:
In the
Connection
field, select the Google Cloud Storage V2 connection that you created.
Click
Select
next to the
Object
field to create the target file.
Select
Create New at Runtime
.
In the
Object Name
field, enter the name of the target file that will be created.
In the
Path
field, enter the name of the Google Cloud Storage bucket where the file will be stored:
For information about creating Google Cloud Storage buckets, see
this GCP guide.
Click
Formatting Options
, select
Flat
for the format type, and then click
OK
:
Click
Save
.
Click
Run
in the top right corner of the screen:
Select the runtime environment, and then click
Run
:
Click
My Jobs
to open the job activity page:
The target file is created in the Google Cloud Storage bucket:
For more information about creating mappings, see the