Tanzu Hub Fails to Read the Input CSV for a Repository Group
search cancel

Tanzu Hub Fails to Read the Input CSV for a Repository Group

book

Article ID: 426937

calendar_today

Updated On:

Products

VMware Tanzu Platform - Hub

Issue/Introduction

The repository group has an error status similar to one of the following errors

  • Error fetching or parsing repository CSV input.
  • Required column 'Repository Url' is missing from CSV headers

Environment

Tanzu Hub v10.3.x

Cause

This is caused by a malformed CSV file 

Resolution

You are likely missing the CSV headers (Repository URL, Branch, etc. at the top of the file) or some other required field in the CSV. The following is an example of a correct CSV file based on the template provided by Tanzu Hub:

Repository Url Branch Subfolder App Name Business Criticality Business App Business App Technical Owner Business App Business Owner Cost
https://github.com/spring-cloud-services-samples/acme-fitness-store main apps/acme-assist Assist High Acme Fitness [email protected] [email protected] High
https://github.com/cloudfoundry-samples/spring-music     Spring Music Medium Spring Music [email protected] [email protected] Low

 

The raw CSV text of the above example looks like the following:

~ % cat ExampleInput.csv
Repository Url,Branch,Subfolder,App Name,Business Criticality,Business App,Business App Technical Owner,Business App Business Owner,Cost
https://github.com/spring-cloud-services-samples/acme-fitness-store,main,apps/acme-assist,Assist,High,Acme Fitness,[email protected],[email protected],High
https://github.com/cloudfoundry-samples/spring-music,,,Spring Music,Medium,Spring Music,[email protected],[email protected],Low