question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[New Source Plugin] Could not infer a metadata type on botVersion

See original GitHub issue

Summary

Using the force:source:retrieve or force:source:deploy commands with the new Source Plugin (#1057) throws

ERROR running force:source:deploy: C:.…\force-app\core\main\default\bots\AM_SMS_Bot\v1.botVersion-meta.xml: Could not infer a metadata type

Steps To Reproduce:

I haven’t tried to build an isolated project to reproduce this yet. If that is needed please let me know and I can try and distil it from my existing project.

Expected result

Metadata should have deployed or retrieved.

Actual result

Command failed with the above error message

Additional information

SFDX CLI Version(to find the version of the CLI engine run sfdx --version): sfdx-cli/7.108.0 win32-x64 node-v14.17.1

SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core)

@oclif/plugin-autocomplete 0.3.0 (core)
@oclif/plugin-commands 1.3.0 (core)
@oclif/plugin-help 3.2.2 (core)
@oclif/plugin-not-found 1.2.4 (core)
@oclif/plugin-plugins 1.10.0 (core)
@oclif/plugin-update 1.4.0-3 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
@salesforce/sfdx-trust 3.6.0 (core)
alias 1.1.10 (core)
apex 0.2.2 (core)
auth 1.7.0 (core)
config 1.2.9 (core)
custom-metadata 1.0.12 (core)
data 0.4.12 (core)
generator 1.1.7 (core)
limits 1.2.1 (core)
org 1.6.7 (core)
salesforce-alm 52.0.2 (core)
schema 1.0.7 (core)
sfdx-cli 7.108.0 (core)
sfdx-devops 0.4.3
sfdx-heber 0.0.2
sfdx-typegen 0.6.2
sfpowerkit 3.1.6
shane-sfdx-plugins 4.43.0
├─ @mshanemc/sfdx-sosl 1.1.0
└─ @mshanemc/plugin-streaming 1.1.7
source 0.1.22
telemetry 1.2.2 (core)
templates 52.0.0 (core)
user 1.3.0 (core)

OS and version: Windows 10

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
WillieRuemmelecommented, Jul 8, 2021

Thanks for reporting this @aheber we’ve already noticed this and I’m working on a fix now

1reaction
shetzelcommented, Jul 15, 2021

@aheber - good to know. It’s very possible that date could slip based on new bugs found and their fixes. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot convert CustomPageWebLinks from source to metadata
From setup, select "Custom Links" and create a new one; Pull the newly created object locally: sfdx force:source:pull -u scratchOrg; Try to ...
Read more >
Metadata API Developer Guide
Metadata is data that describes other data. To understand how Salesforce defines metadata, contrast business data with Salesforce metadata.
Read more >
Fix sfdx force:source:pull ERROR: Custom metadata type ... is ...
Added a new Custom Metadata record to one of the Custom Metadata Types. ... Thus 'sfdx force:source:pull' will no longer attempt to extract...
Read more >
Lex Models V2 Client - AWS SDK for JavaScript v3
A document type represents an untyped JSON-like value. Not all protocols support document types, and the serialization format of a document type is...
Read more >
Api Meta | PDF | Application Programming Interface - Scribd
Salesforce does not guarantee that an application written against one API ... Use the REST resource deployRequest to move metadata (XML files) between...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found