Index: /trunk/ippToPsps/config/settings.xml
===================================================================
--- /trunk/ippToPsps/config/settings.xml	(revision 38082)
+++ /trunk/ippToPsps/config/settings.xml	(revision 38083)
@@ -65,5 +65,5 @@
       <memory>32</memory>
     </loader>
-    <loader mach="stcsi02">
+    <loader mach="stsci02">
       <name>ipptopsps2_scratch</name>
       <host>stsci02</host>
Index: /trunk/ippToPsps/jython/forcedwarpbatch.py
===================================================================
--- /trunk/ippToPsps/jython/forcedwarpbatch.py	(revision 38082)
+++ /trunk/ippToPsps/jython/forcedwarpbatch.py	(revision 38083)
@@ -332,8 +332,13 @@
             raise
         self.logger.infoPair("need to cull"," nulls objid")
+        rowCountBefore = self.scratchDb.getRowCount("ForcedWarpMeasurement")
         results= self.scratchDb.reportAndDeleteRowsWithNULLS("ForcedWarpMeasurement", "objID")
-
-
-
+        rowCountAfter =  self.scratchDb.getRowCount("ForcedWarpMeasurement")
+        self.logger.infoPair("row count of ForcedWarpMeasurement",rowCountBefore)
+        self.logger.infoPair("row count of ForcedWarpMeasurement after cull of null objID", rowCountAfter)
+        if rowCountAfter == 0:
+            self.skipBatch = True
+            self.logger.infoPair ("skip this batch, it is bad")
+            return False
 #        self.generateRandomIDs()
 
Index: /trunk/ippToPsps/jython/stackbatch.py
===================================================================
--- /trunk/ippToPsps/jython/stackbatch.py	(revision 38082)
+++ /trunk/ippToPsps/jython/stackbatch.py	(revision 38083)
@@ -526,4 +526,8 @@
             return True
 
+        if self.scratchDb.getRowCount(filter+"SkyChip_xfit") <=0 :
+            self.logger.infoPair("no extended source information, trying to skip",filter)
+            return True
+
         header  = self.headerSet[filter]
 
@@ -656,4 +660,9 @@
             self.logger.infoPair("no stack data for filter" , filter) 
             return True
+
+        if self.scratchDb.getRowCount(filter+"SkyChip_xsrc") <=0 :
+            self.logger.infoPair("no extended source information, trying to skip",filter)
+            return True
+
 
         header  = self.headerSet[filter]
