Skip to content

[Bug] pac code add-data-source fails with Connection Reference #266

@chrispiasecki

Description

@chrispiasecki

Describe the bug

The pac code add-data-source command fails when specifying a connection reference, solutionid, and api id. It works as expected when using the connection id / api id combination instead.

Steps to Reproduce

  1. Create an auth profile in pac CLI with a user that has system admin / global admin
  2. Run the command pac code add-data-source -a shared_office365 -cr tot_Office365Outlook -s 952a1bd3-24d7-42c3-a44b-61bac7cfc35f
  3. See error

Expected behavior

The Office 365 Outlook connector models should be generated.

Actual behavior

An HTTP 400 error is returned.

Screenshots or Error Messages

Error during CLI execution: Error: Failed to resolve connection ID for reference 'tot_Office365Outlook' in solution '952a1bd3-24d7-42c3-a44b-61bac7cfc35f'

Environment information

  • PAC CLI Version: 2.4.1+g3799f3e (.NET Framework 4.8.9221.0)
  • Office 365 Outlook connection reference added to a solution

Metadata

Metadata

Assignees

Labels

Fix rolling outWe start the rollout with the fix for this issue.bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions