Can you try logging the values of your configRecor...
# suitescript
s
Can you try logging the values of your configRecord.id and what is being passed to fieldId