fix and issue in error logging

Function was logging "dataset" instead of "table", also no need to get
"fieldValues" with changes to getFieldValues