# 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 Data Stack.

### Video

{% embed url="<https://www.youtube.com/watch?v=55xGbf3y_BE>" %}

### Getting Report Source Object

In this section, we will cover how to get the *Report Source* object onto the dataflow designer from the Toolbox.

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.

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/bFY2rvnGmIJVIU71WjvI/1_toolbox.png)

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

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/4dNWIG8RBS7NMkzWLnPE/report_source_gif.gif)

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.

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/67rfZ3j7hLHvryItA7sE/2_prperties.png)

A configuration window for *Report Source* will open.

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/XOeEbsVom1KZEQoHHuVZ/3_config.PNG)

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

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/lp8dVTE6ZwCKT1l5jRSu/4_file_path.png)

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

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/US9H5o5VIMXQqTYE21D5/5_model.png)

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.

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/dhlPk1WGPTrdqc4Pr3RC/6_object.PNG)

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

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/B9J7zFoie5nG9hqPi9dn/7_output.png)

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

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/PzNsY6o3vlMtw1pq2C3B/8_data.PNG)
