You need to sign in to do that
Don't have an account?
Genoud
Converting project from Metadata to SFDX with RecordType referencing GlobalValueSet causing reference error on push
hello everyone,
I converted my project from metadata to sfdx. When I push, I have this error
How to solve this issue?
Thanks
I converted my project from metadata to sfdx. When I push, I have this error
Global Picklist 'GlobalValueSetName' is not allowed as record type picklist. Field name should be specified instead (8906:25)Here is The RecordType Metadata from metadata API.
<recordTypes> <fullName>RecordTypeName</fullName> <active>true</active> <description>RecordType Description</description> <label>RecordTypeLAbel</label> <picklistValues> <picklist>GlobalValueSetName</picklist> <!-- In SFDX I need to put here the field name for this to work. --> <values> <fullName>Value1</fullName> <default>true</default> </values> <values> <fullName>Value2</fullName> <default>false</default> </values> <values> <fullName>Value3</fullName> <default>false</default> </values> </picklistValues> </recordTypes>I need to replace the GlobalValueSetName in the converted project with the associated CustomField Name before push. This is time consuming as there are many occurences.
How to solve this issue?
Thanks
Raj Vakati
Change your package.xml as shown below and then retrieve it. I dnt see any issues
Raj Vakati
Xiukai Ning
Genoud, were you able to solve the problem? I'm experiencing the same issue, and couldn't get around it unless I replace the global value set name with the field name.