Skip to main content

I am trying to pull Salesforce project using CLI, I am getting this error:

command: % sf project retrieve previewError (UnsupportedBundleTypeError): Unsupported Bundle Type: GenAiFunctionWarning: Unable to find type GenAiPluginInstructionDef in the registry

I added

*.GenAiPluginInstructionDef**/GenAiPluginInstructionDef/**GenAiPluginInstructionDef/*

to my .forceignore file but it's not working, the error is still generated when I try to preview the metadata.

I understand this metadata type represents agent Topic: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_genaiplugininstructiondef.htm

This metadata is not support as per this source: https://github.com/forcedotcom/source-deploy-retrieve/blob/main/METADATA_SUPPORT.md

GenAiPluginInstructionDef ❌ Not supported, but support could be added

How can I work on a project and retrieve the project metadata when the project involves a topic? I get it that the topic will have to be recreated manually but still I want to retrieve everything else related to agentforce like flows etc.

 

I believe the only way to pull the project is to use manifest and specify what I need to be pulled. Please correct me if I am wrong. 

 

EDIT: 

For anyone who encounters this error, the answer is:

  • Run this CLI command:
% sf project generate manifest --from-org YourOrgAlias

Review the generated manifest, duplicate it, and manually select the required metadata types and delete the types you don't need.

  • Then you can retrieve the metadata by running
% sf project retrieve start --manifest myCustomManifest.xml

@* Salesforce Developers *

 

  

 

#Salesforce Developer

1 respuesta
  1. 22 ene 2025, 10:55

    Hello @Akash Jagdish Gawai

    I sort of answered myself in the EDIT of the original post. For anyone who encounters this issue: 

     

    • Run this CLI command:
    % sf project generate manifest --from-org YourOrgAlias

    Review the generated manifest, duplicate it, and manually

    select the required metadata types and delete the types you don't need. 

     

    • Then you can retrieve the metadata by running
    % sf project retrieve start --manifest myCustomManifest.xml

     

    I followed this process and after manually selecting the metadata types in the manifest and generating a project based on the manifest I was able to pull it. So that's it..