[
https://issues.apache.org/jira/browse/NIFI-14509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Philipp Korniets updated NIFI-14509:
------------------------------------
Description:
If Starting Row in Excel reader is set to use flowfile attribute and attribute
is missing
ExcelReader throws an error message
{code:java}
java.lang.NumberFormatException: For input string: ""
at
java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
at java.base/java.lang.Integer.parseInt(Integer.java:672)
at java.base/java.lang.Integer.parseInt(Integer.java:778)
at
org.apache.nifi.attribute.expression.language.StandardPropertyValue.asInteger(StandardPropertyValue.java:88){code}
Of course we can use
{code:java}
${startRow:isNull():ifElse(1,${startRow})}{code}
But it would be nice to go back to defaults if attribute is missing.
was:
If Starting Row in Excel reader is set to use flowfile attribute and attribute
is missing
ExcelReader throws an error message
Issue Type: Bug (was: New Feature)
> ExcelReader - Starting Row default value
> ----------------------------------------
>
> Key: NIFI-14509
> URL: https://issues.apache.org/jira/browse/NIFI-14509
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Reporter: Philipp Korniets
> Priority: Minor
>
> If Starting Row in Excel reader is set to use flowfile attribute and
> attribute is missing
> ExcelReader throws an error message
> {code:java}
> java.lang.NumberFormatException: For input string: ""
> at
> java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
> at java.base/java.lang.Integer.parseInt(Integer.java:672)
> at java.base/java.lang.Integer.parseInt(Integer.java:778)
> at
> org.apache.nifi.attribute.expression.language.StandardPropertyValue.asInteger(StandardPropertyValue.java:88){code}
> Of course we can use
> {code:java}
> ${startRow:isNull():ifElse(1,${startRow})}{code}
> But it would be nice to go back to defaults if attribute is missing.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)