Index: APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/HoofdDataGenerator.cls.xml =================================================================== diff -u -r74716 -r74742 --- APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/HoofdDataGenerator.cls.xml (.../HoofdDataGenerator.cls.xml) (revision 74716) +++ APPS/Halux/PPS/Document/impl/common/BatchNaarObjective/HoofdDataGenerator.cls.xml (.../HoofdDataGenerator.cls.xml) (revision 74742) @@ -473,6 +473,13 @@ //Momenteel enkel nog maar volumetrie bij probox. Bij VHoss kan dit ook niet zo worden gebruikt gezien er dan meerdere toeleveringen in 1 PO zitten. If (IsVerpakkingProbox) { Set AantalVolumeEenheden = ..ProductieSequentieItemRepository.GeefAantalGeladenContainersVoorToelevering(Batch.GeefID(), Toelevering.GeefID()) + + If (AantalVolumeEenheden = "") { + Set Exception = ##class(TECH.Exceptions.DataNotFoundException).%New("Aantal volume eenheden kan niet leeg zijn bij batch '" _ Batch.GeefID() _ "'.") + Do ..Logger.ErrorMail("GeefAantalVolumeEenheden", Exception.GeefOmschrijving()) + + Do ##class(TECH.ExceptionHandler).Throw(Exception) + } } Quit AantalVolumeEenheden