You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hop.apache.org by "leehaut (via GitHub)" <gi...@apache.org> on 2026/09/21 12:44:41 UTC

[I] [Bug]: CSV Input Verify reports errors when the filename comes from a previous transform (hop)

leehaut opened a new issue, #8500:
URL: https://github.com/apache/hop/issues/8500

   ### Apache Hop version?
   
   2.20.0
   
   ### Java version?
   
   openjdk 21
   
   ### Operating system
   
   Windows
   
   ### What happened?
   
   
   ## What happened?
   
   CSV Input can read the filename from an upstream field. When the transform has a hop from a previous transform:
   
   - the dialog switches from a filename text box to a **Filename field** dropdown
   - at runtime the transform reads each incoming row’s field as a file path
   
   **Verify this pipeline (F7)** still treats any incoming hop as a configuration error. A valid “filename from field” pipeline therefore shows two ERROR remarks, even though the dialog and execution match.
   
   Observed Problems text (ERROR severity; the wording itself does not say “error”):
   ```text
   Transform is connected to previous one
   receiving 1 fieldsTransform is receiving info from other transforms.
   ```
   
   ## Steps to reproduce
   
   1. Create a pipeline: **Generate rows** → **CSV Input** → (optional Dummy).
   2. In Generate rows: add one String field, e.g. `csv_path`, with a CSV file path.
   3. Open CSV Input: the dialog should show **Filename field** (not a static filename). Set it to `csv_path` and map the CSV columns.
   4. Press **Verify this pipeline (F7)**.
   
   ## Expected behavior
   
   F7 should treat incoming hops as valid when a filename field is configured. It should check that the filename field exists in the previous row meta, not report “receiving input” as an error.
   
   When there is **no** previous transform, F7 may still warn/error if a static filename is missing.
   
   ## Actual behavior
   
   `CsvInputMeta.check()` always marks incoming fields/hops as `TYPE_RESULT_ERROR`:
   
   ```java
   // plugins/transforms/textfile/.../csvinput/CsvInputMeta.java
   if (prev == null || prev.isEmpty()) {
     cr = new CheckResult(ICheckResult.TYPE_RESULT_OK, /* NotReceivingFields */);
   } else {
     cr = new CheckResult(ICheckResult.TYPE_RESULT_ERROR, /* TransformRecevingData */);
   }
   if (input.length > 0) {
     cr = new CheckResult(ICheckResult.TYPE_RESULT_ERROR, /* TransformRecevingData2 */);
   } else {
     cr = new CheckResult(ICheckResult.TYPE_RESULT_OK, /* NoInputReceivedFromOtherTransforms */);
   }
   
   ### Issue Priority
   
   Priority: 3
   
   ### Issue Component
   
   Component: Hop Gui


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: CSV Input Verify reports errors when the filename comes from a previous transform (hop)

Posted by "leehaut (via GitHub)" <gi...@apache.org>.
leehaut commented on issue #8500:
URL: https://github.com/apache/hop/issues/8500#issuecomment-5760688164

   .take-issue


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: CSV Input Verify reports errors when the filename comes from a previous transform (hop)

Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva closed issue #8500: [Bug]: CSV Input Verify  reports errors when the filename comes from a previous transform
URL: https://github.com/apache/hop/issues/8500


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org