The issue is related to this line dRow["NewColumn"] = entry.MachineName; where the entry.MachineName returns as NULL. (Debugged on my side)
Unfortunately, By Design the returned values of the MachineName
and MachineIP are always NULL for Privacy concerns.
Besides the above issue, There is a bit syntax issue related to this line
DataRow dRow = dtAudit....