79662167

Date: 2025-06-11 14:37:18
Score: 0.5
Natty:
Report link

The problem was not in the creation of the rule but during the populating of the data. The values written inside the Vendor column, of the Vendors sheet, were being written by another method with whitespace, so adding a TRIM where I valued the column no longer invalidated the rule and it works.

ws.Cells[c.Value + startRow].Value = string.IsNullOrEmpty(cellValue) ? (object)null : cellValue.Trim();
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: VirtualCom