Dear @AmosJoseph
I can’t run your code because the data is missing. However, after a quick look, I suspect you have the same problem as in this post, namely an invalid mFile: Errors in retrieving the m-file handle for a developed PCE metamodel - #7 by styfen.schaer
Best regards
Styfen