Skip to main content
For general data loading concepts, see the common data loading documentation.
This page describes how to load data into the Ratings cube and how to load it from another source.

What file formats does the Ratings cube expect?

The cube expects data in CSV format. Each extract maps to a target datastore table via a glob file pattern, and each pattern follows the same naming rule: <Name>.csv or <Name>_<suffix>.csv, with an underscore required before the suffix. See How must CSV files be named? for the full rule. The Ratings cube reads the Counterparties files under a Ratings-specific topic: see How does the Ratings cube read the Counterparties file?. For the full pattern list, and for every extract’s column definitions and example rows, see Input file formats.

How is data loaded on startup?

Add the load alias, RATINGS_LOAD, to atoti.solution.data-load.as-of-date.topics. Load dates go under atoti.solution.data-load.as-of-date.initial-dates.dates. RATINGS_LOAD is declared by the solution’s extract configuration; a deployment loading the Ratings cube from elsewhere declares its own alias over its own topics (see How to load the Ratings cube from another source). CSV files are read from the directory configured by atoti.solution.data-load.csv.base-path, with #{AS_OF_DATE} resolved to each loaded date. See How is data loaded on startup? for the full mechanism.

How is data loaded at runtime?

AsOfDateDataLoadConfiguration exposes a REST controller mapped at /activeviam/as-of-date/rest/v1 that loads and unloads data for individual as-of dates. POST /activeviam/as-of-date/rest/v1/{asOfDate} loads data for the given as-of date. The asOfDate path variable must be in yyyy-MM-dd format. The operation triggers a scoped load of the configured topics, which resolve through RATINGS_LOAD. Files are read from atoti.solution.data-load.csv.base-path with #{AS_OF_DATE} resolved to the requested date. DELETE /activeviam/as-of-date/rest/v1/{asOfDate} never unloads Ratings data, as described in Why is Ratings data never unloaded by as-of date?. See the common data loading documentation for the full mechanism.

Why is Ratings data never unloaded by as-of date?

Add the unload alias, RATINGS_UNLOAD, to unload-topics. No Ratings data is removed by a date unload: every Ratings channel declares an unload condition that never matches. The counterparty and relationship rows are written at the date sentinel, a fixed placeholder as-of date, so every counterparty row sits at one date and the cube keeps a single counterparty set. That set, the historical series, the static referentials and the scorecard configuration (Metrics, Categories, PeriodAttributes and every lookup table an IRatingsConfigurer declares) are refreshed by wholesale reloads rather than per date. A row the source deletes is cleared only by a restart. An as-of-date unload therefore never touches Ratings data. See Ratings configuration properties.

How does the Ratings cube read the Counterparties file?

The Ratings cube reads the Counterparties CSV files, matched by glob:{,**/}Counterparties{,_*}.csv, under the RatingsCounterparties topic. It adds its own columns and keeps a single set of counterparties that does not depend on the as-of date. It builds its counterparty structure from that set after each load. For the columns, see the Ratings counterparties section and the common input file formats reference.

How to load the Ratings cube from another source

CSV extracts are the solution’s only shipped source for the Ratings cube, selected by atoti.solution.data-load.ratings.type (CSV, the default). Any value other than CSV or JDBC fails the startup at the enum binding. Setting it to JDBC deactivates the extract topics and the RATINGS_LOAD and RATINGS_UNLOAD aliases, and so does a CSV source whose atoti.solution.data-load.csv.topic-type is neither LOCAL nor AWS. The Ratings channels are always declared, whichever source is configured, so a deployment supplying its own source declares its own topics against the channel names published on IRatingsCubeChannels, the same way a customer override targets any other solution’s channels. The shipped topic names and the RATINGS_LOAD and RATINGS_UNLOAD aliases are published on IRatingsCubeTopics. A customer application overrides or extends loading with its own bean of type IDataLoadConfigurer. This override runs after the solution’s default loading, against the same configurator instance. Both interfaces are registered only where the Ratings cube is enabled and the data-loading component (DLC) is enabled. See Public API.