Daniel Stieglitz created NIFI-13819:
---------------------------------------

             Summary: Provide row number when ExcelReader throws exception when 
it fails to convert a value
                 Key: NIFI-13819
                 URL: https://issues.apache.org/jira/browse/NIFI-13819
             Project: Apache NiFi
          Issue Type: Improvement
            Reporter: Daniel Stieglitz
            Assignee: Daniel Stieglitz


While testing NIFI-13726 it was noticed when using the ExcelReader configured 
with the "Use Starting Row" strategy that the file failed but the message was 

{code:java}
org.apache.nifi.processor.exception.ProcessException: Could not parse incoming 
data
       ....
Caused by: org.apache.nifi.serialization.MalformedRecordException: Read next 
Record from Excel XLSX failed
        at 
org.apache.nifi.excel.ExcelRecordReader.nextRecord(ExcelRecordReader.java:86)
        at 
org.apache.nifi.serialization.RecordReader.nextRecord(RecordReader.java:50)
        at 
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
{code}

which does not point to which row the ExcelReader failed on. It would be 
helpful to include in the exception message which row the reader failed on.
   



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to