You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pushing a genAiPromptTemplate retrieved from a Sandbox Org into a Scratch Org deploys successfully and causes no errors.
Actual result
The deployment to a Scratch Org fails with the following error : force-app\main\default\genAiPromptTemplates\Profil_Consommateur_Case.genAiPromptTemplate-meta.xml Error parsing file: 'DYW2v9UcOjEUClCiohijaAqJsFnmRY0EcHEQpp0ghTg=_1' is not a valid value for the type xsd:int (3:82)
Additional information
When creating a Scratch Org to push metadata that was retrieved from a Sandbox Org, an XML difference in the metadata definition of the genAiPromptTemplate object between Sandbox & Scratch Org causes an error to occur.
Recently, the XML for the genAiPromptTemplate object changed, with a hash now being contained in the versionIdentifier and activeVersion tags. Previously, versionIdentifier was versionNumber with an integer value.
The Prompt Template XML is as follows :
<?xml version="1.0" encoding="UTF-8"?>
<GenAiPromptTemplatexmlns="http://soap.sforce.com/2006/04/metadata">
<activeVersion>DYW2v9UcOjEUClCiohijaAqJsFnmRY0EcHEQpp0ghTg=_1</activeVersion>
<createdInVersion>63.0</createdInVersion>
<developerName>Profil_Consommateur_Case</developerName>
<masterLabel>Profil Consommateur Case</masterLabel>
<relatedEntity>Case</relatedEntity>
<templateVersions>
<content>Instructions :
"""
Your role is to create a consumer profile based on the aggregated data from the prior conversations with said customer.
From the data, you will extract the following key points, explained in a concise (aim for a little under the length of a tweet per section) and clear manner :
1. Products of interest : Here you will list the categories of products the user has mentioned, while listing each individual product per category as well. Double-check that you didn't accidentally list the same product twice, and make sure you list every product you picked up. Empty categories or repetition are to be avoided at all costs, keep it clear and to the point. If the client is interested in free products / samples, mention it here as well.
2. Recurring feedback : Here, you will summarize the common pain points and topics around which the user's questions or feedback revolve. You may mention the product again, but the point of this section is rather "what about these products concerns the consumer?".
3. Possible health implications : Here, you will suggest, based on the age and the content of the conversations, whether the consumer is likely to have a health complication. Do not hesitate to admit if you don't have enough to go off of in this one, and only make a suggestion if you feel justified in it.
4. Consumer tone : Here, you are tasked with gauging what the user is looking for, and whether they have specific, noteworthy temperaments or tones that persisted throughout previous interactions. If they have been respectful, no need to specify, simply do so if you feel the consumer has a slightly odd or abnormal tone, expression, or expectation (such as writing excessive emails asking for free products, a prevailing sense of authority when speaking, etc.)
This list will be prefaced by "Profil du Consommateur [Consumer Name], [Consumer age] ans". Skip the age description if it is not given.
"""
Data :
"""
{!$Flow:ProfilConsommateurEinstein.Prompt}
"""
</content>
<inputs>
<apiName>objectToSummarize</apiName>
<definition>SOBJECT://Case</definition>
<referenceName>Input:Case</referenceName>
<required>true</required>
</inputs>
<primaryModel>sfdc_ai__DefaultGPT4Omni</primaryModel>
<status>Published</status>
<templateDataProviders>
<definition>flow://ProfilConsommateurEinstein</definition>
<parameters>
<definition>SOBJECT://Case</definition>
<isRequired>true</isRequired>
<parameterName>objectToSummarize</parameterName>
<valueExpression>{!$Input:Case}</valueExpression>
</parameters>
<referenceName>Flow:ProfilConsommateurEinstein</referenceName>
</templateDataProviders>
<versionIdentifier>DYW2v9UcOjEUClCiohijaAqJsFnmRY0EcHEQpp0ghTg=_1</versionIdentifier>
</templateVersions>
<type>einstein_gpt__recordSummary</type>
<visibility>Global</visibility>
</GenAiPromptTemplate>
can you run the deploy command with --dev-debug and provide the stack trace?
just so I'm understanding, the activeVersion field used to be a number, but now, when you retrieve it, it's this hash? does this happen when retrieving in metadata format?
I've reached out to the metadata owning team to see what's going on, this doesn't match what's documented in their metadata documentation
Expected result
Pushing a genAiPromptTemplate retrieved from a Sandbox Org into a Scratch Org deploys successfully and causes no errors.
Actual result
The deployment to a Scratch Org fails with the following error :
force-app\main\default\genAiPromptTemplates\Profil_Consommateur_Case.genAiPromptTemplate-meta.xml Error parsing file: 'DYW2v9UcOjEUClCiohijaAqJsFnmRY0EcHEQpp0ghTg=_1' is not a valid value for the type xsd:int (3:82)
Additional information
When creating a Scratch Org to push metadata that was retrieved from a Sandbox Org, an XML difference in the metadata definition of the genAiPromptTemplate object between Sandbox & Scratch Org causes an error to occur.
Recently, the XML for the genAiPromptTemplate object changed, with a hash now being contained in the
versionIdentifier
andactiveVersion
tags. Previously,versionIdentifier
wasversionNumber
with an integer value.The Prompt Template XML is as follows :
System Information
Diagnostics
✅ pass - salesforcedx plugin isn’t installed
✅ pass - you don't have any linked plugins
✅ pass - [@salesforce/plugin-trust] can ping: https://registry.npmjs.org
✅ pass - [@salesforce/plugin-trust] can ping: https://registry.yarnpkg.com
✅ pass - [@salesforce/plugin-trust] can ping: https://registry.npmjs.org/
✅ pass - using latest or latest-rc CLI version
✅ pass - can access: https://test.salesforce.com
✅ pass - [@salesforce/plugin-deploy-retrieve] sourceApiVersion matches apiVersion
❌ warn - [@salesforce/plugin-deploy-retrieve] default target DevHub max apiVersion matches default target org max apiVersion
❌ warn - [@salesforce/plugin-deploy-retrieve] sourceApiVersion matches default target org max apiVersion
✅ pass - can access: https://appexchange.salesforce.com/services/data
✅ pass - can access: https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-win32-x64-buildmanifest
✅ pass - [@salesforce/plugin-auth] CLI supports v2 crypto
✅ pass - [@salesforce/plugin-auth] CLI using stable v1 crypto
The text was updated successfully, but these errors were encountered: