Troubleshooting 403 Unauthorized Access and Table Not Found Errors in Azure Data Factory Integration

Hello HubSpot Community,

I’m working on integrating HubSpot data with Azure Data Factory (ADF) and facing two distinct issues that I need assistance with:

  1. Unauthorized Access Error (HTTP Response code: 403): While attempting to retrieve data through an ADF pipeline, I’m receiving an “API Connection Failed (Unauthorized Access)” error. I’ve verified the credentials, updated the access and refresh tokens, and ensured proper permissions, but the issue persists.
  2. Table or View Not Found Error: In another activity within the same pipeline, I’m encountering an error that a specific table or view is not found (Hubspot.Hubspot.ad_campaigns). The reference seems to include a doubled schema or database name, and I’m unsure if this is a misconfiguration on my side or something specific to the HubSpot schema.

Here’s what I’ve tried so far:

  • Refreshed the access and refresh tokens.
  • Checked the OAuth scopes to ensure all necessary permissions.
  • Recreated the linked service in Azure Data Factory.
  • Verified the query and table references.

Despite these efforts, the issues remain unresolved. I’m looking for guidance on the following:

  • How can I troubleshoot the 403 Unauthorized Access error further to understand what might be causing it?
  • How can I verify the correct table or view name for the ad_campaigns object within the HubSpot schema?
  • Is there anything specific to HubSpot’s integration with Azure Data Factory that I need to be aware of to resolve these errors?

Any insights, suggestions, or resources would be greatly appreciated. If additional details are needed, I’m happy to provide them.
Please keep in mind that my ad_campaigns and all other tables I’m trying to access are custom objects within my Hubspot account

Thank you for your assistance!

Hi, @MElbogdady :waving_hand: Welcome to our community. If you haven’t already, I’d suggest making a similar post over on the Microsoft side of things.

Additionally, I’d like to tag in a few of our community champions who may heave relevant experience, hey @johnelmer @Mike_Eastwood do you have any troubleshooting tips you can share with @MElbogdady?

Thank you for taking a look! — Jaycee

Hi @MElbogdady

You may have already looked but are there any clues in your Devloper Account?

Under monitoring you can filter out the 4x errors and investigate from the HubSpot end.

Sorry I don’t have any more helpful advice.

Mike

p.s. Thanks for the mention @Jaycee_Lewis

Here to learn more about HubSpot and share my HubSpot Knowledge. I’m the founder of Webalite a HubSpot Partner Agency based in Wellington, New Zealand and the founder of Portal-iQ the world’s first automated HubSpot Portal Audit that helps you work smarter with HubSpot.