Hello Microsoft Team,
I believe I have found a reproducible issue with the Azure Data Factory native HubSpot Connector (v2).
I have spent several days investigating this issue and created a minimal reproducible example. Before opening a paid support request, I would like to confirm whether this is a known connector limitation, a bug, or if there is any supported workaround.
Environment
Native HubSpot Connector (v2)
Azure SQL Database
Copy Activity
AutoResolve Integration Runtime
Problem
The Copy Activity fails when the HubSpot contact property notes_next_activity_date contains an empty string ("").
The pipeline reads all HubSpot records successfully but fails before writing any rows into Azure SQL Database.
Error
Failure happened on 'Sink' side.
Column 'notes_next_activity_date' contains an invalid value ''.
String was not recognized as a valid DateTime.
Couldn't store <> in notes_next_activity_date Column.
Expected type is DateTime.
Copy Activity Statistics
Rows Read: 1315
Rows Copied: 0
This indicates the connector successfully retrieves all HubSpot contacts but fails during internal type conversion.
HubSpot API Response
For multiple contacts, HubSpot returns:
"notes_next_activity_date": ""
The HubSpot property metadata reports:
type = datetime
fieldType = date
hubspotDefined = true
I created a completely new Azure Data Factory pipeline and reproduced the issue with the smallest possible configuration.
I tested:
New pipeline
New HubSpot dataset
New Azure SQL dataset
New SQL table (Auto Create)
No ForEach activity
No dynamic parameters
No metadata-driven pipeline
No imported mapping
Auto Mapping
Default Type Conversion
Custom DateTime Format (yyyy-MM-ddTHH:mm:ss.fffZ)
Every test produced exactly the same result.
Observation
It appears the native HubSpot connector attempts to convert:
"" -> DateTime
instead of treating the empty string as NULL.
Because the exception occurs before any rows are written to SQL Server, it appears the failure happens during the connector's internal type conversion rather than during SQL insertion.
My Questions
Is this a known issue with the Azure Data Factory HubSpot Connector v2?
Is this expected behavior?
Is there any supported way to treat empty strings ("") returned by HubSpot as NULL for DateTime fields?
Is there any connector configuration, mapping option, or Copy Activity setting that can resolve this without switching to the REST connector?
I would appreciate confirmation from the Azure Data Factory engineering team or anyone who has encountered the same behavior.
Thank you.Hello Microsoft Team,
I believe I have found a reproducible issue with the Azure Data Factory native HubSpot Connector (v2).
I have spent several days investigating this issue and created a minimal reproducible example. Before opening a paid support request, I would like to confirm whether this is a known connector limitation, a bug, or if there is any supported workaround.
Environment
Azure Data Factory
Native HubSpot Connector (v2)
Azure SQL Database
Copy Activity
AutoResolve Integration Runtime
Problem
The Copy Activity fails when the HubSpot contact property notes_next_activity_date contains an empty string ("").
The pipeline reads all HubSpot records successfully but fails before writing any rows into Azure SQL Database.
Error
Failure happened on 'Sink' side.
Column 'notes_next_activity_date' contains an invalid value ''.
String was not recognized as a valid DateTime.
Couldn't store <> in notes_next_activity_date Column.
Expected type is DateTime.
Copy Activity Statistics
Rows Read: 1315
Rows Copied: 0
This indicates the connector successfully retrieves all HubSpot contacts but fails during internal type conversion.
HubSpot API Response
For multiple contacts, HubSpot returns:
"notes_next_activity_date": ""
The HubSpot property metadata reports:
type = datetime
fieldType = date
hubspotDefined = true
I created a completely new Azure Data Factory pipeline and reproduced the issue with the smallest possible configuration.
I tested:
New pipeline
New HubSpot dataset
New Azure SQL dataset
New SQL table (Auto Create)
No ForEach activity
No dynamic parameters
No metadata-driven pipeline
No imported mapping
Auto Mapping
Default Type Conversion
Custom DateTime Format (yyyy-MM-ddTHH:mm:ss.fffZ)
Every test produced exactly the same result.
Observation
It appears the native HubSpot connector attempts to convert:
"" -> DateTime
instead of treating the empty string as NULL.
Because the exception occurs before any rows are written to SQL Server, it appears the failure happens during the connector's internal type conversion rather than during SQL insertion.
My Questions
Is this a known issue with the Azure Data Factory HubSpot Connector v2?
Is this expected behavior?
Is there any supported way to treat empty strings ("") returned by HubSpot as NULL for DateTime fields?
Is there any connector configuration, mapping option, or Copy Activity setting that can resolve this without switching to the REST connector?
I would appreciate confirmation from the Azure Data Factory engineering team or anyone who has encountered the same behavior.
Thank you.