Summary
When creating a Custom Connector inside a Power Automate Dataverse Solution using a Swagger 2.0 definition that includes multiple authentication types (OAuth2 + API Key), the exported solution contains an incorrect property name in the generated connectionparameters.json file.
The generated file uses:
However, the correct value should be:
Due to this typo, publishing the connector in Microsoft Partner Center fails with the following error message:
“Looks like this is not an OAuth connector. Kindly uncheck the box to proceed further.”
Steps to Reproduce
-
Create a new Dataverse Solution.
-
Create a Custom Connector in DataVerse.
-
Inside the Custom Connector:
-
Ensure the swagger file has no validation errors and save the connector.
-
Export the Solution as a Managed Solution → a .zip file is generated.
-
Extract the .zip file and navigate to:
Connector/connectionparameters.json.
-
Inside the file, locate the type attribute, which incorrectly appears as:
-
Expected correct value should be:
Actual Result
The exported solution contains:
This causes Partner Center validation to fail.
Expected Result
The exported solution should contain the correct casing:
This should allow the connector to be published as an OAuth connector in Partner Center without errors.
Impact
- Connector cannot be published to Partner Center unless manually corrected.
- Extra steps required for every export.
- Potential confusion for users assuming the connector is not OAuth-compliant.
Suggested Fix
Update the export generator to ensure the correct property name:
- Replace
oAuthSetting → oauthSetting (lowercase o).
Summary
When creating a Custom Connector inside a Power Automate Dataverse Solution using a Swagger 2.0 definition that includes multiple authentication types (OAuth2 + API Key), the exported solution contains an incorrect property name in the generated
connectionparameters.jsonfile.The generated file uses:
However, the correct value should be:
Due to this typo, publishing the connector in Microsoft Partner Center fails with the following error message:
Steps to Reproduce
Create a new Dataverse Solution.
Create a Custom Connector in DataVerse.
Inside the Custom Connector:
Open the Swagger Editor.
Paste a valid Swagger 2.0 definition that contains both OAuth2 and API Key authentication, such as:
Ensure the swagger file has no validation errors and save the connector.
Export the Solution as a Managed Solution → a
.zipfile is generated.Extract the
.zipfile and navigate to:Connector/connectionparameters.json.Inside the file, locate the
typeattribute, which incorrectly appears as:Expected correct value should be:
Actual Result
The exported solution contains:
This causes Partner Center validation to fail.
Expected Result
The exported solution should contain the correct casing:
This should allow the connector to be published as an OAuth connector in Partner Center without errors.
Impact
Suggested Fix
Update the export generator to ensure the correct property name:
oAuthSetting→oauthSetting(lowercaseo).