404 Error when Dynamically Retrieving HubSpot Objects by ID

Hi there, we are currently experiencing an issue in n8n cloud when trying to Get HubSpot Objects by ID.
We have a list of IDs, which are all stored in single Items. When iterating over those Items in the HubSpot Node and trying to retrieve the objects for the respective IDs dynamically added to the HubSpot node, we get a 404 error (NodeOperationError: The resource you are requesting could not be found).

The same happens when using an HTTP Request node.
However, when hardcoding IDs directly into the HubSpot/HTTP Request node, no error occurs and we receive the expected response.

When exporting this workflow and using it as-is in another self-hosted n8n instance, we do not get this error either.

We have already tried multiple approaches to reformat and validate the IDs before using them in the query, including:

  • Trimming whitespace

  • Typecasting to string or number

  • Various formatting attempts

None of these methods have resolved the issue.

Error Message:

NodeOperationError: The resource you are requesting could not be found

Please share your workflow

n8n version: 1.113.3