You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Noticed that if our Excel Template had one bad formula in a cell and ClosedXML attempted to process this cell, the whole report would fail and not further processing is done against the report. It would be great if ClosedXML would log any such errors and simply place, "#ERROR#" or similar in the cell in question and continue to process the report.
and JT3 contained something like this {{item.mynode.isgood.value}}
This would result in the whole report failing as the evaluation of IF({{item.mynode.isgood.value}}, "True", "False") bombs out given that the '{{ }}' expression doesn't evaluate to a True/False value.
Proposed solution (apologies for not cloning the repo and checking in code have SSL issues when cloning):
Within "ClosedXML.Report.RangeTemplate" update the Parse() method as follows:
Hello,
Noticed that if our Excel Template had one bad formula in a cell and ClosedXML attempted to process this cell, the whole report would fail and not further processing is done against the report. It would be great if ClosedXML would log any such errors and simply place, "#ERROR#" or similar in the cell in question and continue to process the report.
For example, I have this formula in my cell:
=IF($CY3="Data Condition", "Data Condition", IF(JT3, "True", "False"))
and JT3 contained something like this {{item.mynode.isgood.value}}
This would result in the whole report failing as the evaluation of IF({{item.mynode.isgood.value}}, "True", "False") bombs out given that the '{{ }}' expression doesn't evaluate to a True/False value.
Proposed solution (apologies for not cloning the repo and checking in code have SSL issues when cloning):
Within "ClosedXML.Report.RangeTemplate" update the Parse() method as follows:
Basically we are catching any such errors and simply adding, "#ERROR#" to the troubled cell and we continue to process/generate the report.
Thanks.
The text was updated successfully, but these errors were encountered: