Hi,
We have a situation that I’m a little mystified by: we’re using the import API to update a custom object and associate it with a company. We include a CSV file for both in our import request. For most records this works successfully: the object is updated and the association is created/updated. However, for about 1% of records, the association is not created.
This is how our
fileInputs
look from the import details (other column mappings elided):
"fileImports": [
{
"columnDelimiter": null,
"estimatedLineCount": 2081,
"fileFormat": "CSV",
"charset": "UTF-8",
"fileId": ...,
"pages": [
{
"columnMappings": [
{
"columnObjectType": null,
"columnObjectTypeId": "0-2",
"toColumnObjectTypeId": null,
"engagementType": null,
"columnName": "product_account_to_company",
"propertyName": null,
"ignored": false,
"idColumnType": "HUBSPOT_OBJECT_ID",
"columnType": "HUBSPOT_OBJECT_ID",
"foreignKeyType": null,
"associationLabels": null,
"associationIdentifierColumn": true,
"skipIfKnownColumn": false,
"marketingEventSubmissionType": null
}
],
"hasHeader": true
}
]
},
{
"columnDelimiter": null,
"estimatedLineCount": 2101,
"fileFormat": "CSV",
"charset": "UTF-8",
"fileId": ...,
"pages": [
{
"columnMappings": [
{
"columnObjectType": null,
"columnObjectTypeId": "2-15776061",
"toColumnObjectTypeId": null,
"engagementType": null,
"columnName": "hs_object_id",
"propertyName": null,
"ignored": false,
"idColumnType": "HUBSPOT_OBJECT_ID",
"columnType": "HUBSPOT_OBJECT_ID",
"foreignKeyType": null,
"associationLabels": null,
"associationIdentifierColumn": false,
"skipIfKnownColumn": false,
"marketingEventSubmissionType": null
},
{
"columnObjectType": null,
"columnObjectTypeId": "2-15776061",
"toColumnObjectTypeId": null,
"engagementType": null,
"columnName": "product_account_to_company",
"propertyName": null,
"ignored": false,
"idColumnType": null,
"columnType": "STANDARD",
"foreignKeyType": {
"associationCategory": "USER_DEFINED",
"associationTypeId": 25
},
"associationLabels": null,
"associationIdentifierColumn": false,
"skipIfKnownColumn": false,
"marketingEventSubmissionType": null
},
...
],
"hasHeader": true
}
]
}
],
I noticed there’s a toColumnObectTypeId in the payload that I don’t see documented. Maybe I should be setting something for that in the payload?
Has anyone run into something similar? Suggestions on how to handle this?
Thanks,
Nathan