Comments (5)
I'll just add that perhaps the easiest and best solution is to just add to that Warning, some help message like "Your source is missing components referenced in your Package.xml file. Try using force:source:deploy /{file directory}
like force:source:deploy /force-app
" instead.
I think a more important issue is the sfdx does not intelligently handle things like flows well, whereas tools like force-cli and solenopsis determine how to only deploy missing / inactive flows.
from cli.
Why is there different behaviour when retrieving vs. deploying from the same package.xml? My (maybe naive) expectation is that if I have a component in my package.xml
- it is pulled on retrieve (unless not existing, which is a package.xml error)
- It is getting deployed on source:deploy (unless has a deployment problem)
The behaviour should be consistent per metadata component imho
from cli.
@JimBTek Thank you for the feedback, we are tracking this bug in our internal system. Our internal work item is W-5749751, and I have it on our backlog for the summer release. I'll leave this ticket open till we fix it.
from cli.
Interesting thing I found: a typo in your deploy command can produce this error too.
sfdx force:source:deploy -m LightningtComponentBundle:myComponent
Note the extra "T" before "Component". This productes the same error described in the original post. Fixing the metadata name makes the command work.
Just commenting in case someone else has this same issue because of a silly typo. :)
from cli.
This issue has been linked to a new work item: W-9297987
from cli.
Related Issues (20)
- project deploy validate with NoTestRun HOT 5
- sf project deploy logging HOT 3
- INVALID_OPERATION: testLevel of NoTestRun cannot be used in production organizations HOT 6
- latest SFDX command warning issue SFDX_AUTOUPDATE_DISABLE. Please use SF_AUTOUPDATE_DISABLE instead. HOT 9
- When a new class is created, it is invalid posix text file HOT 5
- `sf apex run test` not respecting wait flag HOT 2
- `sf project deploy start` displays error message with "undefined" for invalid --wait flag values HOT 3
- `sf apex run test` --wait allows value -1 but does not respect it HOT 3
- `EPERM: operation not permitted` Error When Updating from 7.190.2 to 7.198.7 HOT 4
- sfdx project retrieve start error while retrieving metadata HOT 20
- Translation-File is not retrieved correctly HOT 8
- [my-command].run() is not a function HOT 13
- Please add pre and post destructive xml changes on sf project deploy validate HOT 4
- package version create stops after 1 second - static resource with mp3 HOT 21
- sf project deploy start --metadata --test-level RunSpecifiedTests --tests doesn't read the --tests when running --dry-run HOT 10
- Deleting a single CustomLabel component deletes the whole CustomLabels.labels-meta.xml file HOT 4
- 2GP Package Version Create Command not working nor giving any error HOT 18
- enable sfdx auth:login:sfdx-url to read the url from stdin HOT 18
- Source conversion failing with multiple large .zip static resources HOT 9
- CustomObjectTranslations and CustomFieldTranslations are not pulled correctly HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.