Azure / Azure/logicapps

Unable to add Dataverse Connector via Service Principal

Open
#1,421 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
ABAP
Stars
424
Forks
320
Avg merge
14h 41m
Merged PRs (30d)
1

Description

### Severity

1 - Critical (Blocking production)

### Describe the Bug with repro steps

For a logic app, when adding a Dataverse action and adding a new connection via Service principal, I get the below error.

> Failed to create connection: {"error":{"code":"BadRequest","message":"{\"Code\":\"BadRequest\",\"Message\":\"Input parameters are invalid. See details for more information. Details:errorCode: InvalidOptionParameterValue. Message: Parameter 'token:grantType' has value:\\r\\n\\r\\ncode\\r\\n\\r\\nBut only accepts the following values:\\r\\nclient_credentials\\r\\n\",\"Target\":null,\"Details\":[{\"Message\":\"Input parameters are invalid. See details for more information. Details:errorCode: InvalidOptionParameterValue. Message: Parameter 'token:grantType' has value:\\r\\n\\r\\ncode\\r\\n\\r\\nBut only accepts the following values:\\r\\nclient_credentials\\r\\n\"},{\"Code\":\"BadRequest\"},{\"ErrorEntity\":{\"ExtendedCode\":\"14022\",\"MessageTemplate\":\"Input parameters are invalid. See details for more information. Details:{0}\",\"Parameters\":[\"errorCode: InvalidOptionParameterValue. Message: Parameter 'token:grantType' has value:\\r\\n\\r\\ncode\\r\\n\\r\\nBut only accepts the following values:\\r\\nclient_credentials\\r\\n\"],\"Code\":\"BadRequest\",\"Message\":\"Input parameters are invalid. See details for more information. Details:errorCode: InvalidOptionParameterValue. Message: Parameter 'token:grantType' has value:\\r\\n\\r\\ncode\\r\\n\\r\\nBut only accepts the following values:\\r\\nclient_credentials\\r\\n\"}}],\"Innererror\":null}"}}

I have tried on multiple tenants and have the same issue. The App Registration is set up correctly with Dynamics CRM user_impersonation permissions.

### What type of Logic App Is this happening in?

Consumption (Portal)

### Are you experiencing a regression?

_No response_

### Which operating system are you using?

Windows

### Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

### Workflow JSON

```json

```

### Screenshots or Videos

_No response_

### Environment

Chrome/Edge

### Additional context

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Consumption Logic App flow described in the issue: add a Dataverse action, create a Service Principal connection, and inspect the returned validation error. Compare the submitted token:grantType with the accepted client_credentials value. Done means the connection can be created successfully across the reported tenants; no repository file or test is named.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
authentication, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.