A 997 can be generated for each interchange. A compliance error (e.g. missing required information, indicator w/out data, missing segments, etc.) at the detail segment level will only cause the functional group to be rejected, not the whole interchange...unless, of course, you send only one...