loadCatalog script operation

Deprecated. Loads data from the specified File Spec and Spec Map, into the catalog or category tree upon which this operation is called. The feedType must be "itm" for item to catalog feeds, "ctr" for category to category tree feeds, and "icm" for item to category mapping feeds.

Deprecated: This script operation is deprecated and scheduled to be removed. Use the createImport script operation and the startAggregationByName script operation instead.

Format: ObjectOriented

Type: method

Syntax

void Catalog::loadCatalog(String docStorePathForFileToLoad, Spec fileSpec, SpecMap specMap, String feedType [itm|icm|ctr])

Parameters

Type Name Description Is required? Is array?
Catalog operatesOn The catalog to load data into. Note that this object can also be a CategoryTree. true false
String docStorePathForFileToLoad The path of the file in the docstore to load into the catalog. true false
Spec fileSpec The file specification which maps the file to load located in the docstore. true false
SpecMap specMap The specification map which maps the field in the file specification into the catalog attributes. true false
String feedType The feedType can be 'itm' for item, 'icm' for item into category mapping feeds or 'ctr' for category to category tree feeds. true false

Return values

Return value: void

Is array: false

Transactional disruption will occur: This script operation will roll back any existing transaction, and will leave the database connection in auto-commit. This script operation should be used carefully; for example, it should not be called in a catchError block. See the product documentation for more information about transactions and scripts.