diff --git a/datastore/src/main/java/org/jboss/pnc/datastore/DefaultDatastore.java b/datastore/src/main/java/org/jboss/pnc/datastore/DefaultDatastore.java
index <HASH>..<HASH> 100644
--- a/datastore/src/main/java/org/jboss/pnc/datastore/DefaultDatastore.java
+++ b/datastore/src/main/java/org/jboss/pnc/datastore/DefaultDatastore.java
@@ -430,9 +430,13 @@ public class DefaultDatastore implements Datastore {
         BuildRecord latestSuccessfulBuildRecord = buildRecordRepository
                 .getLatestSuccessfulBuildRecord(buildConfigurationAudited.getId(), temporaryBuild);
         if (latestSuccessfulBuildRecord == null) {
-            logger.warn(
-                    "The check should be done once it's known there is a successful BuildRecord. There is no successful BuildRecord for BuildConfigurationAudited {}.",
-                    buildConfigurationAudited.getIdRev());
+            if (!temporaryBuild) { // When building temporary, there might be only persistent builds done before.
+                logger.warn(
+                        "The check should be done once it's known there is a successful BuildRecord. There is no"
+                                + " successful BuildRecord for BuildConfigurationAudited {}.",
+                        buildConfigurationAudited.getIdRev());
+            }
+            return false;
         }
         if (latestSuccessfulBuildRecord.getBuildConfigurationAuditedIdRev()
                 .equals(buildConfigurationAudited.getIdRev())) {
[NCLSUP-<I>] Prevent NPE when checking if rebuild is required