When New Record Lighting page is activated as Opportunity Org default on a scratch org, and Oppotunity.object file was not present in the source directoy this error is thrown upon source:pull command. ERROR running force:source:pull: Entity of type 'CustomApplication' named 'Opportunity' cannot be found
Opportunity.object file created, with new lighting page as view action override.
error ERROR running force:source:pull: Entity of type 'CustomApplication' named 'Opportunity' cannot be found
SFDX CLI Version(to find the version of the CLI engine run sfdx --version): 27
SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core)
OS and version: w10
Note the workaround suggested here: just create the custom app that the CLI expects. Go to Setup > Apps > App Manager, click New Lightning App, and create the app named (in this case) Opportunity.
A better way is to grab the id of the custom app using
sfdx force:data:soql:query -q "Select Id, MemberName From SourceMember Where MemberType = 'CustomApplication'" -t
Then delete the source member with
fdx force:data:record:delete -s SourceMember -i <id retrieved above> -t
You can also add an entry to the forceignore.
The syntax is very confusing (IMO) and getting the correct case (as entries are case sensitive) is tricky. I _think_ this is what's needed;
Opportunity.CustomApplication
Note the workaround suggested here: just create the custom app that the CLI expects. Go to Setup > Apps > App Manager, click New Lightning App, and create the app named (in this case) Opportunity.
This worked great for me. You can also delete the created apps in your project folder then push back to the org and it will remove the created apps and the error will not reoccur on your next pull.
The workaround also solved the problem for me. After pulling down the code, I deleted the new app in the UI and did another pull.
...I stand corrected. I still had to manually modify the metadata to get subsequent pushes to work.
You can also subscribe to the related Known Issue.
The only way I found to work around this was to create a new scratch org and push the working source to and NOT create an override lightning page in the scratch org. I use DX for doing trailhead development for fun and practice so not a big deal. My company is starting at DX pilot this month and I'm disappointed that this issue is taking so long to address. I'm a DX advocate but this would have hit us hard.
What an annoying bug...
Thanks for sharing workarounds!
I hope the fix comes around quickly.
I was able to workaround this issue with .forceignore, although it took some trial and error to find the right syntax. Opportunity.app works, even though it should be Opportunity.CustomApplication based on the DX Dev docs.
Hi, Same SFDX GIT topic/pull error but different in that I am getting an error on a report folder/report. ERROR running force:source:pull: "Entity type Report' named 'Communities_Reports_2_0/M_Member_Logins' cannot be found."
I have validated that the report folder and report exist in my scratch org as well as in production. This folder/report was installed as part of the appexchange Community 2.0 dashboard.
Any suggestions would be very much appreciated.
The work around for updating .forceignore fixed the issue for me on removing the error from the pull however it does not accomplish the task of adding the change of the selected page to our source which has to be done manually.
If you want to fix the issue manually you can create the object file if it doesn't exist or update an existing file.
Example object meta-data file:
<?xml version="1.0" encoding="UTF-8"?>
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
<actionOverrides>
<actionName>View</actionName>
<comment>This is my override for the page for the Account object</comment>
<content>Account_Record_Page</content>
<formFactor>Large</formFactor>
<skipRecordTypeSelect>false</skipRecordTypeSelect>
<type>Flexipage</type>
</actionOverrides>
</CustomObject>
I just ran into this in a brand new scratch org with a single custom Lightning App added as a placeholder for new dev work.
Spun up a new project and had the same problem with something named "AppBrand" of type "CustomApplication".
Added it to the .forceignore as "AppBrand.CustomApplication" to no effect, changed it to "AppBrand.app" did work however.
I also have a Scratch Org with nothing else there. I created only one Lightning App and when I ran force:source:pull I got this error.
Starting SFDX: Pull Source from Default Scratch Org and Override Conflicts
11:52:41.801 sfdx force:source:pull --forceoverwrite
ERROR running force:source:pull: Entity of type 'CustomApplication' named 'AppBrand' cannot be found
11:52:54.742 sfdx force:source:pull --forceoverwrite
ended with exit code 1
@shetzel do you know if there is a work item for this?
@AllanOricil
I was able to workaround this issue following.
AppBrand.app to .forceignore
Most helpful comment
A better way is to grab the id of the custom app using
sfdx force:data:soql:query -q "Select Id, MemberName From SourceMember Where MemberType = 'CustomApplication'" -tThen delete the source member with
fdx force:data:record:delete -s SourceMember -i <id retrieved above> -t