@Shreyas_tm By looking at logs, it seems you are using custom implementation of Forms Portal. And, its failing in saveAttachmentInternal method. And, in Exception you might be throwing FormsPortalException. Would it be possible for you to debug that code base and check why its throwing the exception...