fix of a bug related the saving of the file and improvement of the exception adding Error output parameter on the action.