Cannot retrieve Connected App from sandbox with preauthorized permission set name defined #634
Labels
area:auth
Authorization Experience
owned by another team
The Salesforce CLI team does not own this work but will pass on the information to the correct team.
Summary
Connected Apps with a preauthorized permission set defined are throwing an error when pulled via SFDX CLI. If I remove the preauthorization the metadata will pull down successfully. Also, if I add in the preauthorization by hand to the metadata file in my SFDX project and try to push to another sandbox through SFDX CLI (both source and metadata formats) it will create the connected app fine but will not configure the preauthorization correctly for the permission set.
Steps To Reproduce:
Expected result
Connected App metadata should be pulled into the SFDX project with proper configuration similar to a Connected App without preauthorized permission set defined.
Actual result
An error message is displayed: Metadata API received improper input. Please ensure file name and capitalization is correct. Load of metadata from db failed for metadata of type:ConnectedApp and file name:MyCustomConnectedApp.. No metadata is pulled into SFDX project.
Additional information
SFDX CLI Version(to find the version of the CLI engine run sfdx --version):
sfdx-cli/7.74.1
SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core)
@oclif/plugin-autocomplete 0.2.0
@oclif/plugin-commands 1.3.0 (core)
@oclif/plugin-not-found 1.2.4 (core)
@oclif/plugin-plugins 1.9.0 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/analytics 0.22.0
@salesforce/lwc-dev-server 1.0.10 (link)
├─ @oclif/plugin-help 2.2.3 (link)
└─ @oclif/plugin-update 1.3.9 (link)
@salesforce/sfdx-trust 3.4.3 (core)
alias 1.1.1 (core)
analytics 1.12.1 (core)
config 1.1.8 (core)
generator 1.1.3 (core)
salesforcedx 49.10.0 (core)
├─ @salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
├─ apex 0.0.9 (core)
├─ custom-metadata 1.0.10 (core)
├─ templates 49.9.1 (core)
└─ salesforce-alm 49.11.0 (core)
sfdx-cli 7.74.1 (core)
OS and version:
Windows 10 win32-x64 node-v10.16.0
The text was updated successfully, but these errors were encountered: