I trying to deploy my package while validating changes salesforce given this error "Lightning Page Property 'itemInstances' not valid in version 47.0" do you guys have any insight for these king of errors. Please share if you got any solution for these. Thanks in advance.
SFDX Lightning Page Deployment Issues Property 'itemInstances' not valid in version 47.0 [duplicate]
-
7Does this answer your question? Property 'itemInstances' and 'processOrder' not valid in version 48.0 error when deploying in Production, even though Production is 49.0– Ysr ShkSep 14, 2020 at 12:47
-
1More related questions- How can I change the version of a Flexipage through SFDX?, Property 'componentInstances' not valid and Metadata Deploy and Push fails on Flexipage componentInstances– RaulSep 14, 2020 at 13:25
-
2As per documentation, itemInstances is available in API 49.0 or later (developer.salesforce.com/docs/atlas.en-us.api_meta.meta/…)– VinaySep 14, 2020 at 13:42
-
@Vinay That would be good as an answer, I think.– Derek FSep 14, 2020 at 15:38
2 Answers
As per documentation itemInstances is available in API 49.0 or later. Try using 49 version.
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>New Opportunity Page</fullName>
<types>
-------
-------
</types>
<version>49.0</version>
</Package>
Thanks,
If you're using the Metadata API to deploy, you need to update your package.xml to indicate version 49.0
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
your types here...
<version>49.0</version>
</Package>
-
I try this but still got the same error, just for a fix I used <version>46.0</version> in package XML file.– PunitOct 1, 2020 at 10:02