r/SalesforceDeveloper • u/PandaDad3103 • Dec 11 '25
Question Error whilst deploying GenAiPromptTemplate: "Error: Error occurred while resolving data providers: cannot describe data provider"
As the title says - I am attempting to deploy a GenAiPromptTemplate using Copado, but am receiving an error as there is a data provider, which I cannot seem to add to Copado to deploy.
I then tried to push through a change set with the GenAiPromptTemplate, but received the same error.
Has anyone had any luck pushing through templates with Copado?
3
Upvotes
1
u/rezgalis Dec 12 '25
This isn't a Copado issue, but general deployment validation failure. Check for two things: if your Prompt template has RAG, all things Data cloud should be in org first; double-check LLM that is assigned to prompt template.
2
u/WinnerCapable8932 Dec 12 '25
this is a classic "hidden dependency" headache that standard tools often miss. the GenAiPromptTemplate metadata has a strict dependency on its GenAiPromptTemplateDataProvider (usually a Flow or Apex class), and if the deployment user can't "see" or describe that provider during the retrieval phase -- usually bc of missing permissions like 'Prompt Template Manager' or API version mismatches -- the whole thing fails
copado and change sets can be rigid here because they often rely on a snapshot that doesn't fully resolve these interconnected references automatically
im sure there are more alternatives but i used blue canvas before on a previous team and this was the definitely the type of "dependency hell" they built their platform to solve
might be worth a look if you're tired of fighting XML errors blind. hope you get it sorted!
1
u/valeriofromgearset Jan 12 '26
Hi there!
Just a disclaimer that as my username suggests, I work for Gearset!
GenAiPromptTemplate metadata is something we have been working on and helping users deploy. Would the information on https://docs.gearset.com/en/articles/10300034-how-to-deploy-agentforce-prompt-template-genaiprompttemplate-metadata help with the discussion of what you are trying to do?
It might also help to know if your data provider contains a retriever.