Index: /tags/ipp-20130712/pstamp/scripts/pstampparse.pl
===================================================================
--- /tags/ipp-20130712/pstamp/scripts/pstampparse.pl	(revision 36015)
+++ /tags/ipp-20130712/pstamp/scripts/pstampparse.pl	(revision 36016)
@@ -210,4 +210,12 @@
     my $dtime_request_file = gettimeofday() - $start_request_file;
     print "Time to read and parse request file: $dtime_request_file\n";
+}
+
+if (!$rows) {
+    # we got called so a valid pstamp request header was found so we can only assume
+    # that the file is invalid
+    print STDERR "Invalid request file\n";
+    insertFakeJobForRow(undef, 0, $PSTAMP_INVALID_REQUEST);
+    exit 0;
 }
 
