So based on your advise I made following changes: -
So not I am not getting any error. After this action I want to save the file to my dataset as follows:
Thanks Vijay