diff --git a/java-retail/samples/interactive-tutorials/src/main/java/product/ImportProductsGcs.java b/java-retail/samples/interactive-tutorials/src/main/java/product/ImportProductsGcs.java index 4501ae840ec4..163224666199 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/product/ImportProductsGcs.java +++ b/java-retail/samples/interactive-tutorials/src/main/java/product/ImportProductsGcs.java @@ -44,6 +44,10 @@ public static void main(String[] args) throws IOException, InterruptedException String branchName = String.format( "projects/%s/locations/global/catalogs/default_catalog/branches/0", projectId); + // To check error handling, use an invalid catalog in request + // branchName = + // String.format("projects/%s/locations/global/catalogs/invalid_catalog/branches/default_branch", projectId); + String gcsBucket = String.format("gs://%s", System.getenv("BUCKET_NAME")); String gcsErrorBucket = String.format("%s/errors", gcsBucket); String gcsProductsObject = "products.json";