Hello everyone,
I succedded to import basic csv files with predefined columns but trying with custom new columns, the api returns the following error :
{
"status": "error",
"message": "The following property names are invalid: [Street Address, Company Name, Postal Code, Phone Number, Website URL, Company identification number, VAR Number, [MR] Secteur d'activité, Internal Customer ID].",
"correlationId": "85d3e595-a848-4848-8eb4-f7f15c4054df",
"context": {
"invalidProperties": [
"Street Address",
"Company Name",
"Postal Code",
"Phone Number",
"Website URL",
"Company identification number",
"VAR Number",
"[MR] Secteur d'activité",
"Internal Customer ID"
]
},
"category": "VALIDATION_ERROR",
"subCategory": "ImportRequestValidatorError.INVALID_PROPERTY_NAMES"
}
I tried to check the documentation and finding the issue but without success. Here is an example of Street Address column.
Here is my json request.
{
"name": "Association Label Import",
"dateFormat": "DAY_MONTH_YEAR",
"files": [
{
"fileName": "hubspot_sample.csv",
"fileFormat": "CSV",
"fileImportPage": {
"hasHeader": true,
"columnMappings": [
{
"columnObjectTypeId": "0-1",
"columnName": "last_name",
"propertyName": "lastname"
},
{
"columnObjectTypeId": "0-1",
"columnName": "first_name",
"propertyName": "firstname"
},
{
"columnObjectTypeId": "0-1",
"columnName": "phone_number",
"propertyName": "Phone Number"
},
{
"columnObjectTypeId": "0-1",
"columnName": "email",
"propertyName": "email"
},
{
"columnObjectTypeId": "0-2",
"columnName": "internal_customer_id",
"propertyName": "Internal Customer ID"
},
{
"columnObjectTypeId": "0-2",
"columnName": "company_identification_number",
"propertyName": "Company identification number"
},
{
"columnObjectTypeId": "0-1",
"columnName": "company_name",
"propertyName": "Company Name"
},
{
"columnObjectTypeId": "0-1",
"columnName": "street_address",
"propertyName": "Street Address"
},
{
"columnObjectTypeId": "0-2",
"columnName": "VAT_number",
"propertyName": "VAR Number"
},
{
"columnObjectTypeId": "0-1",
"columnName": "City",
"propertyName": "city"
},
{
"columnObjectTypeId": "0-1",
"columnName": "postal_code",
"propertyName": "Postal Code"
},
{
"columnObjectTypeId": "0-2",
"columnName": "secteur_activite",
"propertyName": "[MR] Secteur d'activité"
},
{
"columnObjectTypeId": "0-2",
"columnName": "website_URL",
"propertyName": "Website URL"
}
]
}
}
]
}
The csv data file
last_name,first_name,phone_number,email,internal_customer_id,company_identification_number,company_name,VAT_number,City,postal_code,street_address,secteur_activite,website_URL
ln1,fn1,0123456789,test@test.fr,CC001765,479282999,SASU MARCHANDISES,FR50479289999,Paris,75015,17 RUE CHANTE CLAIR,Autre (précisez),https://www.marchandises.com
CODE
Anyone has an idea ? Thanks.


