Skip to content
Autana Business Partners

How to load a file in memory in Pentaho (without stepping on what we already have in memory)

Published on 1 min read

David Fernandez

Hello Pentahomaniacs!

Surely at some point in your journeys with Pentaho you will have encountered the problem of loading a file into memory and, when trying, you have found in the transformation a very useful step called "load file content in memory"; However, this step if it is not properly configured will step on everything we have in memory until that moment and will replace it with the content of the file.

But don't worry, it has a very simple solution, you just have to load the content in a variable defined above.

Within the configuration of the step (by clicking twice on it), in the "File" tab, in the "Dynamic Filename" section you must check the check called "Filename is defined in a field?" and select a variable that you have loaded before with the address of the file in question. In addition, in this way you will be saving the content of this file as a column of a row, which is very useful to make transformations that perform several actions with several rows.

And that's it, from now on you can load all the files in memory you want without any problem.

Until the next Pentahomaniacs!

Updated on

Tags

← Back to the blog

  • Data Management

    Optimization of energy consumption

    Discover how the optimization of energy consumption reduces costs and environmental impact. Learn to analyze data, simulate scenarios, and implement energy-saving strategies.

    Read article

  • Analytics

    Talent retention in the digital age: how analytics can help

    Learn how talent retention in the digital age benefits from analytics. Discover how data helps reduce turnover and retain your top employees.

    Read article

  • Success Stories

    Proyect Sourcing Optimization

    In the digital age, Project Sourcing Optimization has become essential for companies aiming to enhance their purchasing processes. By integrating data-driven decision-making and…

    Read article