pardot / api-docs

29 stars 30 forks source link

Error code 49 should reference the possibility of using an incorrect BU ID #233

Closed baivincent closed 2 years ago

baivincent commented 3 years ago

It appears that using the incorrect Business Unit ID when using Salesforce OAuth will also cause this message to appear: https://developer.pardot.com/kb/error-codes-messages/#error-code-49

While that technically is because of "User is not authorized to perform the requested operation either due to access restrictions", it's not intuitive for a customer to check for the correct BU ID, if for example you may be using Pardot API across multiple Business Units or somehow the Business Unit ID gets updated, it can be confusing for end users.

noshirpatel-salesforce commented 3 years ago

This condition will now result in a distinct error code: https://developer.pardot.com/kb/error-codes-messages/#error-code-201