Just after saving a case record in a function, within this function, I save a file to file cabinet followed by trying to attach the saved file to a case record (just before the return statement of the function) - but get the record does not exist error. Any idea what's happening here?