Repositoryexception while updating documents in master repository