Hub
  • Software
  • Blog
  • Forum
  • Events
  • Documentation
  • About KNIME
  • KNIME Hub
  • paolotamag
  • Spaces
  • Public
  • Storing_Data_Files_inside_the_Workflow_Data_Area
WorkflowWorkflow

Storing a Data File inside the Workflow Data Area

Relative path Wrong file path Attach data Store data inside Export local workflow
+3

Last edited: 

Drag & drop
Like
Download workflow
Copy short link
Workflow preview
In order to export/deploy/share your workflow accessing data from a file (CSV/XLS/TSV/..) you have to attach the data to the workflow. This is the equivalent of using relative paths (for example "../folder_name/file_name.csv"). There are different ways to do this. In this example we use the Workflow Data Area settings in the new File Handling nodes. When adopting this strategy your workflow will not need to be reconfigured when the reader nodes fail as the file path is wrong on someone else's system. Anyone downloading your workflow will be able to open and execute on the fly regardless if the workflow was shared from : - KNIME Server - KNIME Hub - an email via the .knwf or .knar format - ... and so on ---- Other legacy ways to do this: - same approach of this example but using KNIME URL relative path ("knime://knime.workflow/data/file_name.csv") and/or - (outside of KNIME Analytics Platform) locate with your file system the workflow inside the workspace, open the folder with the workflow name, placing the “file_name.csv” in the “data” folder (or create such a folder if it is not already there). Then read via settings “Relative to:” and “Workflow Data Area” or KNIME URL (knime://knime.workflow/data/file_name.csv)

External resources

  • "Relative To:" File Handling Nodes Setting - KNIME Documentation - KAP 4.4

Used extensions & nodes

Created with KNIME Analytics Platform version 4.4.1
  • Go to item
    KNIME Base nodes Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.4.1

  1. Go to item
  2. Go to item
  3. Go to item

Legal

By using or downloading the workflow, you agree to our terms and conditions.

Discussion
Discussions are currently not available, please try again later.

KNIME
Open for Innovation

KNIME AG
Hardturmstrasse 66
8005 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • E-Learning course
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • KNIME Open Source Story
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more on KNIME Server
© 2022 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Credits