Skip to main content
This capability is under development. It is available in homologation on Lerian Cloud, and its behavior can change before release. Confirm availability with Lerian before integration.
Use this page to connect your files and follow each expected day in the Lerian Console. Both screens are in the Reporter menu, under Settings: File sources and File datasets. For the concepts, read File datasets.

Objective


Connect a bucket or a file server, register a file dataset with its contract, and follow each expected day. Use Add a Data Source for a database.

Before you start


  1. On Lerian Cloud, make sure your SFTP or FTP server accepts the three Reporter addresses. Read Network access.
  2. Have the JSON contract file ready. Read File dataset contract.
  3. Have the connection details. For SFTP, have the public keys of the server. For an AWS bucket, you also need access to the role in your AWS account.
Your role in Reporter decides what you can do. Read What is Reporter for the groups that hold each role. A viewer can look at sources, datasets, contracts, and days. An operator can also create and edit them, test a connection, add a contract version, request a fetch, and declare no delivery. An editor can also delete sources and datasets.

Add a file source


1

Open File sources

Go to Settings, then File sources, and click Add file source.
2

Choose the type and the name

Select Type: S3, SFTP, or FTP. Enter Name. The name must be unique among your file sources.
3

Fill in the connection details

Enter the fields of the type. The table below lists them.
4

Save the source

Click Save.
For SFTP, Authentication is Password or Private key. A private key has an optional Key passphrase. Known hosts holds the public keys of the server, one per line. For FTP, TLS is None (plain FTP), Explicit (STARTTLS) (the default), or Implicit.

Connect an AWS bucket

An AWS bucket needs a role in your AWS account. Reporter does not accept an access key for it.
1

Copy the trust values

After you save the source, copy Trusted principal and External ID.
2

Update the role

In AWS, add the trusted principal to the trust policy of your role. Make the policy require the external ID. Allow the role to list the bucket and read its objects.
3

Enter the role

Enter Role ARN in the form and save. Reporter tests the role before it saves it.
Until you save a role, the status of the source is Waiting for role. You cannot test it, and no dataset can use it.

Test, edit, or delete a file source


Click Test connection on the source. A success shows Connection successful with the latency in milliseconds. A failure shows the reason. The Status column shows Connected, Failed, or Not checked. Read File sources for what each reason means. Click Edit to change a source. The form never shows a stored secret. A blank secret keeps the stored one. If you change where a stored secret goes, the form asks for the secret again. The type of a source never changes. Click Delete to delete a source. Reporter refuses the deletion while a file dataset uses it.

Create a file dataset


1

Open File datasets

Go to Settings, then File datasets, and click Add file dataset.
2

Name the dataset and select the source

Enter Name. Templates read the dataset by this name, and it never changes. Select File source.
3

Set the schedule

Set the schedule fields. The Field guide below lists them.
4

Add the contract

Pick the .json contract file, or paste the text in the text area.
5

Save the dataset

Click Save.
Choose Expected days and Start Date with care. They cannot change once Reporter has accepted a day of the dataset, or you have declared a day without delivery.
If you pick a file and do not edit the text, the SHA-256 that the Console shows later equals the sha256sum of your file. The list shows each dataset with its file source, its schedule, and its contract version. Use Edit to change the source or the schedule. Use Delete to delete a dataset. Reporter keeps its days, files, and contract versions. It refuses the deletion while a template or an active regulatory mapping reads the dataset.

Work with a dataset


Click View Details on a dataset. The page has four cards: File source, Schedule, Contract, and Days.

Contract versions

The Contract card shows the version in use and a table of every version, with In use, Created At, and the SHA-256. Click View to read a version. The dialog shows the contract reformatted, but the SHA-256 is still that of the file as you sent it. Click New contract version to add the next one. It enters use at once. After Reporter accepts a delivery, a new version can only add. Read Contract versions.

The days list

The Days card lists days, newest first, 10 for each page. Filter by State (All, Waiting for delivery, Accepted or no delivery, Refused, or Fetch failed), by From and To, or open a date with Day to open. Each row shows the date, the state, Last attempt, and the revision. Last attempt shows the time, the trigger (Schedule or Requested by an operator), and the outcome. A day with no attempt shows No attempt yet. A day declared without delivery shows No delivery. A late day with no accepted delivery also shows Overdue.

The day sheet

Click a day to open its sheet. It shows the revisions, newest first, with the contract version and the revision of the sender. It shows each file with its table, rows, size, and SHA-256, and the warnings. For a declared day, it shows Declared without delivery by, with the operator and the time. For a refused day, each finding of the last attempt is labeled Refuses the day or Warning. It shows the table and the message of Reporter. A message of a row check counts rows and never shows a cell value. A message of a total control shows the totals that it compared.

Request a fetch

1

Open the day

Open the sheet of the day.
2

Request the fetch

Click Request fetch.
3

Wait for the result

The sheet shows a message that starts with Fetch requested. It refreshes every 5 seconds, for up to 8 minutes.
Reporter refuses the request when the schedule does not expect the day, when a fetch of the day is open, when you already have too many open fetches, or when the file source is incomplete, such as an AWS source with no role yet.

Declare no delivery

Use this when the sender delivered nothing for a day, and nothing is wrong. The button appears only for a day in the Waiting for delivery or Fetch failed state, or a day with no record yet.
1

Open the day

Open the sheet of the day.
2

Declare it

Click Declare no delivery, read the message, and confirm.
Do not declare no delivery unless you are sure. There is no undo. It also locks Expected days and Start Date.
The day counts as accepted with zero rows and stops being overdue. A delivery that arrives later becomes a new revision.

On reports and data sources

A report preview, a failure sheet, and a filing detail list Dataset days read with their count. They show No delivery for an empty day and Revised for a day that a later delivery replaced. A file dataset also has a File dataset badge and a Manage link on Data Sources.

Field guide


Expected result


The source shows Connected. The days of the dataset move to Accepted as the files arrive.

Common errors and care points


Lerian Cloud and any multi-tenant installation refuse private and internal addresses. Use a public address.
On Lerian Cloud, make sure the server allows the three addresses in Network access.
The source lacks a required file or the manifest. Ask the sender to deliver it, then click Request fetch.

Next steps