You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

解决VSCode中SF全量元数据检索的GenAiPromptTemplate权限不足问题

Fix for INSUFFICIENT_ACCESS Error on GenAiPromptTemplate Metadata Retrieve

Root Cause

GenAiPromptTemplate is a metadata type tied to Salesforce's AI features (e.g., Einstein GPT), not a standard object. Even with Modify All Data and View All Data permissions, specific permissions for this metadata type are required to retrieve it via the API.

Resolution Steps

  1. Assign the AI Prompts Permission Set

    • Go to Setup → Users → Permission Sets.
    • Find the AI Prompts permission set (automatically created when Einstein GPT features are enabled in your org).
    • Click Assign, select your admin user from the list, and save the assignment.
  2. Verify Critical Permissions

    • Confirm your admin profile has Customize Application enabled (check via Setup → Profiles → [Your Admin Profile] → System Permissions).
    • Double-check that API Enabled is still active (you noted this is already enabled, but rule out accidental changes).
  3. Retry the Retrieve Command

    • After updating permissions, run the command again:
      sfdx force:source:retrieve -x manifest/package.xml -u vscodeOrg
      

Alternative: Exclude GenAiPromptTemplate (If Unneeded)

If you don't require this metadata type, modify your package.xml to remove the <types> entry for GenAiPromptTemplate, then re-run the retrieve command.

内容的提问来源于stack exchange,提问作者Carolyn Cordeiro

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.15 02:05:56