IMPORT.FEATUREDATA was introduced in Perfion 5.5 2024-R2. It takes Input from a Excel file or the Table-format and imports it into any base feature.
More information about this functionality can be found in Feature Data Import.
Properties
| From | The Path to excel file. … or … The name of the Input Data Source. Default = 'FROM' |
| To |
The name of the feature to import data to (e.g. Product, Category etc.)
|
Parameters
All parameters are optional, but can be defined to alter the default behavior of the import.
| @KeyFeatureColumn |
Column in excel file or input data source containing values to be used as import keys. The key feature column can be located anywhere in the input data source. Key Feature Requirements:
Base feature exception: The base feature (= the feature to import to) can naturally also be used as key feature. This feature will always be selectable as it holds the items you want to update. The base feature can also be inheritable and allow multiple, and it data types Image, File and Date are also supported. Possible values:
|
| @NewItemHandling |
By default, new items in the input data source are created in Perfion.
|
| @EmptyCellHandling |
By default, the importer ignores empty cells in the input data source Possible values:
|
| @MultiValueHandling |
By default, the importer will merge values in input data source with existing values in Perfion for multivalue features. Possible values:
|
| @UnknownSelectableValueHandling |
By default, the importer will create new selectable items in Perfion when unknown selectable values are found in input data source. Possible values:
|
| @AmbiguousSelectableValueHandling |
By default, the importer will fail if you try to import a selectable value that matches multiple items. It could be a Color named “Black” where there are 3 Color Items having the value “Black”. Possible values:
This parameter does both apply to single and multi-values but not to hierarchical features where Import always will fail in case of ambiguities. Note further, that the importer will first compare the imported value with the value already in Perfion, and only if they differ, this setting will be use to handle ambiguities. Example: If there are 3 Color-items representing “Black” and you import a product assigning “Black” as the Color of it. If the imported product already is in Perfion and already is “Black” (any of the 3 “Black” items), the importer will regard this as “no change” and do nothing. And this is regardless of what this parameter is set to. |
| @ValidationViolationHandling |
By default, the importer will fail and throw an error if values in input data source violate “hard” validation rules on features. Possible values:
|
| @BinaryCantRetrieveHandling |
By default the importer skip binaries when it can’t retrieve the binary data from it. This data can either be fetched using supplied URL, unc path or looked up by filename in the supplied zip file (if any). This behavior be changed using this parameter. Possible values:
|
| @DateFormat |
By default, the importer will accept and understand dates from Excel without specifying a specific format. If dates are imported from other systems - or imported to multivalue date features - you must specify the date format found in the input data source. Possible values:
|
| @DecimalSeparator |
By default, the importer will accept and understand numbers from Excel without specifying a decimal separator. If numbers are imported from other systems - or imported to multivalue number features - you must specify the decimal separtor found in the input data source. Possible values:
|
| @GroupSeparator |
By default, the importer will accept and understand numbers from Excel without specifying a group separator. If numbers are imported from other systems - or imported to multivalue number features - you must specify the group separtor found in the input data source. Possible values:
|
| @ZippedBinariesFile |
The Path to a zip file for importing binary files.
|
| @EmptyDataTableHandling |
By default, the importer will ignore empty input data sources as long as column headers are valid. Possible values:
|
| @OperationMode |
By default, the importer will validate column headers and data AND import the data. Possible values:
|
| @ReadExistingSelectableValuesHandling |
During an import, the importer will read values of existing selectable items, in order to use them when items imported address them. By default, the importer will choose how to read these items automatically depending on how many values there are in the database and how many values are being imported. Possible values:
ForceReadAllItems This forces the importer to always read all the selectable values, that is items, for all selectable features in the data. |
| @CommandTimeout |
Specifies the request timeout in seconds. This parameter is optional. Default is 300seconds. |
Map
This Command does not use any value mappings.
Comments
0 comments
Please sign in to leave a comment.