Index: trunk/ippTools/src/pzgetexp.c
===================================================================
--- trunk/ippTools/src/pzgetexp.c	(revision 17550)
+++ trunk/ippTools/src/pzgetexp.c	(revision 17572)
@@ -192,5 +192,6 @@
             "   SElECT"
             "       incoming.*,"
-            "       NULL"
+            "       NULL,"
+            "       0"
             "   FROM incoming"
             "   LEFT JOIN summitExp"
Index: trunk/ippTools/src/pzgetimfiles.c
===================================================================
--- trunk/ippTools/src/pzgetimfiles.c	(revision 17550)
+++ trunk/ippTools/src/pzgetimfiles.c	(revision 17572)
@@ -94,4 +94,9 @@
 
     if (exitStatus != 0) {
+        // mark the summitExp row as faulted
+        if (!p_psDBRunQuery(config->dbh, "UPDATE summitExp SET fault = 123 WHERE exp_name = '%s' AND camera = '%s' AND telescope = '%s'", filesetid, camera, telescope)) {
+            psError(PS_ERR_UNKNOWN, false, "database error");
+        }
+
         psError(PS_ERR_UNKNOWN, true, "%s failed with exit status %d",
             FILESET_LS_CMD, exitStatus);
Index: trunk/ippTools/src/pztool.c
===================================================================
--- trunk/ippTools/src/pztool.c	(revision 17550)
+++ trunk/ippTools/src/pztool.c	(revision 17572)
@@ -212,4 +212,5 @@
             "   AND pzDownloadExp.camera IS NULL"
             "   AND pzDownloadExp.telescope IS NULL"
+            "   AND summitExp.fault = 0"
         );
 
