# Report Source

Report Model extracts data from an unstructured file into a structured file format using an extraction logic. It can be used through the *Report Source* object inside dataflows in order to leverage the advanced transformation features in Astera.

## **Getting Report Source Object**

1. To get a *Report Source* object from the Toolbox, go to *Toolbox > Sources > Report Source.* If you are unable to see the Toolbox, go to *View > Toolbox* or press Ctrl + Alt + X.

<figure><img src="https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2Fh2g4JtAyh9ZIlecmtzzE%2Fimage.png?alt=media&#x26;token=307d495e-d808-4de9-9a21-84d857b86769" alt=""><figcaption></figcaption></figure>

2. Drag and drop the *Report Source* object onto the designer.

<figure><img src="https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FmFCpq0tbVL3TEmvVnSwS%2Fimage.png?alt=media&#x26;token=4739d86e-9b2e-412b-9b25-ae26d95e76bb" alt=""><figcaption></figcaption></figure>

You can see that the dragged source object is empty right now. This is because we have not configured the object yet.

## **Configuring the Report Source Object**

1. To configure the *Report Source* object, right-click on its header and select *Properties* from the context menu.

<figure><img src="https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FGiHXMGoVzLlvZe7DZHn1%2Fimage.png?alt=media&#x26;token=01dacd2f-fbef-4646-9af6-e9af6d349221" alt=""><figcaption></figcaption></figure>

A configuration window for *Report Source* will open.

<figure><img src="https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2F72r277RML8jMbVOn5G8u%2Fimage.png?alt=media&#x26;token=6656daca-5f95-4dca-8d3b-5bbc317bf1a4" alt=""><figcaption></figcaption></figure>

2. First, provide the *File Path* of the unstructured file (your report) for which you have created a Report Model.

<figure><img src="https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FwI8yvyOYsD249Bd1zbzg%2Fimage.png?alt=media&#x26;token=298d0c70-3abe-4f12-bd6a-f083cc8373e3" alt=""><figcaption></figcaption></figure>

3. Then, specify the *File Path* for the associated Report Model.

<figure><img src="https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FGM3YWOHBCVXJyqLPOcBV%2Fimage.png?alt=media&#x26;token=93725fcc-6332-4e87-8c1d-c43ccf4a5667" alt=""><figcaption></figcaption></figure>

4. Click *OK*, and the fields added in the extraction model will appear inside the *Report Source* object with a sub-node, *Items\_Info*, in our case.

<figure><img src="https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FWdBWHVzWUEArkGVdps1b%2Fimage.png?alt=media&#x26;token=480b0173-1d3f-434c-b343-007f8050b2c4" alt=""><figcaption></figcaption></figure>

5. Right-click on the *Report Source* object’s header and select *Preview Output* from the context menu.

<figure><img src="https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FRWd3xDdc95651I7NZ20R%2Fimage.png?alt=media&#x26;token=fbd91368-9e4b-4eed-ae95-47ab28ae0ef2" alt=""><figcaption></figcaption></figure>

A *Data Preview* window will open and show you the data extracted through the Report Model.

<figure><img src="https://750977703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqHxyVNGb7tSdIWecl6Ru%2Fuploads%2FJAqCFR4LUjEdBPzPxmId%2Fimage.png?alt=media&#x26;token=0992dfd0-e4ec-4d7b-b455-2a2e4dde082b" alt=""><figcaption></figcaption></figure>
