Prompt template data provider not accessible
Detection
- String:
Data provider id is not accessible
Examples
Error Invoice_Summary Failure to create template: 0hfAa000000AbCd, Caused by: [We couldn't validate the prompt template because something went wrong. Error while executing the following data provider. Data provider id is not accessible]
Resolution
The prompt template uses a data provider (Flow, Apex, related list...) that the target org does not have, or that the deployment user can not run.
- Deploy the Flow or the Apex class of the data provider with the prompt template: retrieve it from your org with the Metadata Retriever of VS Code, commit it and save your User Story: sfdx-hardis adds it to manifest/package.xml
- With delta deployments, an item that did not change in the Pull Request is not deployed: change it in the Pull Request, or turn on useDeltaDeploymentWithDependencies (https://sfdx-hardis.cloudity.com/salesforce-devops-config-delta-deployment/)
- Give the user of the CI/CD deployments access to it