What does the as-of-date file contain?
| Column Name | Description | Required | Value Example |
|---|---|---|---|
| AsOfDate | AsOfDate | Y | 2020-01-01 |
limits.initial-load.file-path-matchers.as-of-date pattern. When several dates are read, the latest one becomes the AsOfDate.
How does Atoti Limits choose the initial AsOfDate?
The as_of_date.csv file is optional. Thelimits.as-of-date.initial-provider property, or a custom ILimitsInitialAsOfDateProvider bean, decides whether Atoti Limits reads the as-of-date file, and where the AsOfDate comes from when the file provides no date:
| Value | As-of-date file read | Initial AsOfDate | File generated |
|---|---|---|---|
file (default) | Yes | The current date, in the default time zone of the server. At startup, if the as_of_date.csv file does not exist in limits.initial-load.root-dir, Atoti Limits creates it with this date. Later restarts read this file, so the AsOfDate stays the date of the first startup. | Yes |
utc-time | No | The current UTC date, at each startup. | No |
none | No | None. The AsOfDate must come from a custom ILimitsInitialAsOfDateProvider bean. Without a custom bean and without an AsOfDate already set, the data load fails with a LimitsRuntimeException. | No |
file value matches the behavior of previous versions of Atoti Limits, which generated the file at startup.
A custom ILimitsInitialAsOfDateProvider bean replaces the provider selected by the property, whatever its value. With a custom bean, Atoti Limits does not read the as-of-date file. For details, see How to choose the initial as-of-date.
On each data load, Atoti Limits resolves the AsOfDate in this order:
- With
fileand no custom bean, the latest date in the as-of-date file. - Otherwise, the AsOfDate already set, if any, for example through the
/asOfDate/setREST endpoint. - Otherwise, the date from the provider: the current UTC date with
utc-time, or the date returned by the custom bean. - If none of these gives a date, the data load fails with a
LimitsRuntimeException.
With
utc-time, none, or a custom ILimitsInitialAsOfDateProvider bean, Atoti Limits ignores the as-of-date file, even a file generated by an earlier file setup. Deleting that file is not required.The AsOfDate does not roll automatically when the day changes. To roll it, call the
/asOfDate/set REST endpoint. With file and no custom bean, providing a new as_of_date.csv file also rolls it.