Git Product home page Git Product logo

Comments (5)

JimBTek avatar JimBTek commented on August 15, 2024

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.

st-sfdc avatar st-sfdc commented on August 15, 2024

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

  1. it is pulled on retrieve (unless not existing, which is a package.xml error)
  2. It is getting deployed on source:deploy (unless has a deployment problem)
    The behaviour should be consistent per metadata component imho

from cli.

clairebianchi avatar clairebianchi commented on August 15, 2024

@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.

renatoliveira avatar renatoliveira commented on August 15, 2024

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.

uip-robot-zz avatar uip-robot-zz commented on August 15, 2024

This issue has been linked to a new work item: W-9297987

from cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.