function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Som_11Som_11 

Getting an error for flexipage while pushing the code to scratch org

Hi all,
Getting an error for flexipage while pushing the code to scratch Org. Can anyone help.User-added image Error is : Account_Record_Page.flexipage-meta.xml  Component [flexipage:visualforcePage] attribute [pageName]: Visualforce page [CreditMeterGraphicVF] not available for use on mobile devices. The Error Screen shot is attached.
 
SwethaSwetha (Salesforce Developers) 
HI Somesh,
Is the checkbox "Available for Lightning Experience, Lightning Communities, and the mobile app" checked on the VF page? Thanks
Som_11Som_11
Hi Swetha, Yes It is Checked, Its done by one other team member in Scratch Org only, Its visible also, when trying to push source to my scratch Org getting an above error.
Abhishek BansalAbhishek Bansal
Hi Somesh,

Please make sure the visualforce page CreditMeterGraphicVF is made avaiable for mobile. 
Go to the VF page and make sure this checkbox is checked
User-added image
Let me know if this works for you.

Thanks,
Abhishek Bansal.
Som_11Som_11
Hi Abhishek,
Yes Its Checked only.
SwethaSwetha (Salesforce Developers) 
What is the sourceApiVersion mentioned in sfdx-project.json file? Can you try with "sourceApiVersion": "48.0" and see if that fixes the issue. Thanks
SwethaSwetha (Salesforce Developers) 
@Somesh, Have you been able to check the sourceApiVersion ?
Kim Horton 10Kim Horton 10
For someone else that might be having this issue - the fix I used is to add:
<availableInTouch>true</availableInTouch>
to the VF page-meta.xml file.

<ApexPage xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>52.0</apiVersion>
    <availableInTouch>true</availableInTouch>
    <label>pageName</label>
</ApexPage>