Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Error "Unexpected file found in package directory "blacklistedConsumers" #1059

Closed
asagarwal opened this issue Jun 23, 2021 · 3 comments

Comments

@asagarwal
Copy link

asagarwal commented Jun 23, 2021

Hi, I am trying to deploy the following in package.xml. This is just a simple Apex Class

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata"> <types> <members>AA_SampleClass</members> <name>ApexClass</name> </types> <version>52.0</version> </Package>

But when trying to deploy it through the following command, I am getting the error. The command is

sfdx force:source:deploy -x manifest/package.xml

And the error I am getting is

ERROR running force:source:deploy: Unexpected file found in package directory: c:\salesforce\force-app\main\default\blacklistedConsumers\BlacklistedConsumer155969236210464.blacklistedConsumer-meta.xml

The thing is I am not even deploying what it is complaining about. And when I try to deploy it manually from VS Code, by right clicking on package.xml and choosing ‘SFDX: Deploy Source in Manifest to Org’, it works fine. Any pointers will greatly be appreciated

@WillieRuemmele
Copy link
Member

Hi @asagarwal have you tried the new source beta? Try it with those new commands, it should hopefully fix this bug!

@asagarwal
Copy link
Author

asagarwal commented Jun 26, 2021

Hi @WillieRuemmele, I haven't tried the new source beta but was able to find a workaround. Just added the following line in .forceignore file and didn't get the error any more

force-app/main/default/blacklistedConsumers

@WillieRuemmele
Copy link
Member

oh ok great! If you have time, check out the new beta commands. I'll close this issue for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants