GAIAEH-271 Create Document exception error fixed
view document logic fixed to handle the encryption logic