Skip to content

Could not infer a metadata type , error while trying to deploy decomposedPermissionSetBeta2 #6315

@pranayjswl007

Description

@pranayjswl007

Summary

For decomposed permission set, when we try to save it via VSCode, it errors out with
Could not infer a metadata type

Steps To Reproduce:

  1. Try deploying a decomposed permission set. A decomposed permission set has subfolders like objects instead of a single permissionSet.xml file . eg this folder(https://github.com/pranayjswl007/decomposePermissionSet/tree/main/force-app/main/default/permissionsets/account_admin)
  2. Save on a folder is not supported by vscode extension , thus it errors out with Could not infer metadata type

Expected result

Vscode should be able to deploy permission set folder , as its able to do for objects

Actual result

18:04:56.915 Starting SFDX: Deploy This Source to Org

/force-app/main/default/permissionsets/account_admin/objectSettings/Account.objectSettings-meta.xml: Could not infer a metadata type

Additional information

Image

Salesforce Extension Version in VS Code: 63.14.1

Salesforce CLI Version: 2.89.8-c2dbd99

OS and version: Mac os 15.5 (24F74)

VS Code version:

Version: 1.100.2
Commit: 848b80aeb52026648a8ff9f7c45a9b0a80641e2e
Date: 2025-05-14T21:47:40.416Z (1 wk ago)
Electron: 34.5.1
ElectronBuildId: 11369351
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0

Most recent version of the extensions where this was working: No idea

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions