Eclipse to SFDX migration

It is always cumbersome to move between IDE and also keep track of new enhancements. Hence i thought i throw some light on few items to take care when migrating your code from eclipse folder structure to SFDX deployments.

List of errors that you may encounter:

null is not a supported form factor.

If you face this error, then it is because of below reasons:

  • You have used Lightning Record page as override for a standard / custom object.
<actionOverrides>
     <actionName>View</actionName>
     <content>YourLightningComponent</content>
     <skipRecordTypeSelect>false</skipRecordTypeSelect>
     <type>LightningComponent</type>
</actionOverrides>
  • You accidentally removed <formfactor>Large</formfactor> tag from the App page meta.xml

Property ‘pageTemplate’ not valid in version 45.0

This is because of your flexipages a.k.a App / Record Pages have the below line which is no longer valid in new release.

<pageTemplate>flexipage:recordHomeTemplateDesktop</pageTemplate>

If you find the above line in your flexipage meta.xml, then replace it with the below one and you should be good to deploy.

<template>
       <name>flexipage:recordHomeTemplateDesktop</name>
</template>

Property ‘tab’ not valid in version 45.0

This error occurs due to the same kind of tag as explained above for ‘pageTemplate’. But the error will occur due to your app-meta.xml file having the below line in bold:

<?xml version=”1.0″ encoding=”UTF-8″?>
<CustomApplication xmlns=”http://soap.sforce.com/2006/04/metadata“>
     <defaultLandingTab>standard-home</defaultLandingTab>
     <description>Start Here</description>
     <formFactors>Large</formFactors>
     <label>Force.com</label>
     <tab>standard-Chatter</tab>
</CustomApplication>

If you find the above highlighted line in your xml file, then replace <tab> with <tabs> which should fix your issue.

Hope your deployments go through smoothly with the above tips.

Published by Sunil Madana

Passionate about Salesforce Platform with 4+ Years of experience as Administrator, Developer and Consultant. Happy to share my experiences with all. Worked for different industries types and have working knowledge on building complex and generic lightning components. #trailheadlover and always love to try new features released on Salesforce platform and helps others with the same.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.