I have faced a similar issue but it was related to...
# suitescript
n
I have faced a similar issue but it was related to the has subrecord API.