Warning
This component will be available in the Palette of
Talend Studio on the condition that you have subscribed to one of
the Talend Platform products.
Component family |
Data quality |
|
Function |
This component receives phone number data from its preceding |
|
Purpose |
This component standardizes phone numbers according to given |
|
Basic settings |
Schema and Edit |
A schema is a row description, it defines the number of fields to be processed and Since version 5.6, both the Built-In mode and the Repository mode are This component provides default columns. For further information, |
|
|
Built-in: You create the schema |
|
|
Repository: You have already |
|
Phone number |
Select the column holding the phone numbers of interest from the |
|
Country code |
Select the column holding the country codes (ISO 2) from the input NoteThe input data processed by this component must be able to |
Customize |
Select this check box to set a custom country code (ISO 2). Once For example, if the input data provides a set of phone numbers |
|
|
Phone number format for output |
Select the format to be used to standardize the phone numbers of – E164 – International – National |
Advanced settings |
Avoid comparison |
Select this check box to deactivate the comparison performed |
|
tStatCatcher Statistics |
Select this check box to collect log data at the component |
Global Variables |
ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see Talend Studio |
|
Usage |
This component is an intermediary step. It requires an input flow |
|
Limitation |
n/a |
The following table presents details about the default columns provided by
tStandardizePhoneNumber.
Columns |
Description |
---|---|
StandardizedPhoneNumber |
This column presents the standardized phone numbers. |
IsValidPhoneNumber |
This column indicates whether a phone number processed is |
IsPossiblePhoneNumber |
This column indicates whether a phone number processed is |
IsAlreadyStandard |
This column indicates whether a phone number processed is |
PhoneNumberType |
This column indicates the type of a processed phone number, |
ErrorMessage |
This column presents the relative error message if a phone |
In addition to these default columns, you need to define more columns alongside in
order for this component to receive the corresponding input data.
In this scenario, you use three components to standardize some French phone numbers
according to the French phone number format.
The components to be used are:
-
tFixedFlowInput: this component is used to
provide the input data composed of phone numbers to be processed and the French
country code (FR). -
tStandardizePhoneNumber: this component
standardizes the phone numbers of interest. -
tLogRow: this component displays the result
of this standardization.
To replicate this scenario, proceed as the following sections illustrate:
To do this, proceed as follows:
-
Drop tFixedFlowInput, tStandardizePhoneNumber and tLogRow from the Palette to
the Design workspace. -
Right-click the tFixedFlowInput component
to open the contextual menu and select Row >
Main. -
Do the same to connect tStandardizePhoneNumber to tLogRow using a Row >
Main link.
Then you can continue to configure these components.
To do this, proceed as follows:
-
Double click tFixedFlowInput to open its
Component view. -
Next to Edit schema, click the three-dot
button to open the schema editor. -
Click the plus button to add two rows.
-
In the Column column, rename these two
newly added rows. In this scenario, name them phone and
country respectively. -
Click OK to validate these changes and
accept the propagation prompted by the dialog box that pops up. -
In the Mode area, select the Use Inline Table option to display the Inline Table.
-
Under this table, click the plus button to add as much number of rows as
you need. In this scenario, add 12 rows. -
In this table, type in, between quotation marks, phone numbers of various
formats and the corresponding ISO 2-letter country code in the
phone and the country columns
respectively. In this scenario, they read as follows:
To do this, proceed as follows:
-
Double click tStandardizePhoneNumber to
open its Component view. -
If required, click Sync columns to
retrieve the schema from the previous component. -
In the Phone number field, select
phone from the drop-down list as this column holds
the phone numbers to be processed. -
In the Country
code field, select
country from the drop-down list as this column provides the
country code to be used. In this scenario, this code is the French country
code FR. -
In the Phone number format for output
field, select National as you need to
standardize these phone numbers according to the national standard format of
France.
Press F6 to run this Job.
You can read the execution result in the console of the Run view.
From this result table, you can find that the first input record
0147045670, for example, is standardized as 01 47
04 56 70 according to the French phone number format and this number
is of FIXED LINE.