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.

Document Deployment Fails

See original GitHub issue

Summary

Deploying Documents via the CLI fails with the message The DocumentFolder named Folder_Name/Document_Name was not found in the workspace.

Steps To Reproduce:

  1. Ensure a Document Folder named MyFolder exists in the source environment, with a Document named MyDocument.txt inside.
  2. Using the following package.xml, perform a force:source:retrieve
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
  <types>
    <name>Document</name>
    <members>MyFolder</members>
    <members>MyFolder/MyDocument.txt</members>
  </types>
  <version>46.0</version>
</Package>
  1. Using the same manifest, attempt to deploy the Document and Folder.

Expected result

The Document and Folder were deployed.

Actual result

You receive the error message The DocumentFolder named MyFolder/MyDocument.txt was not found in the workspace.

Additional information

Feel free to attach a screenshot.

SFDX CLI Version(to find the version of the CLI engine run sfdx --version): 7.15.3

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

OS and version: Windows 10 Pro

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
clairebianchicommented, Jul 26, 2019

If you remove the file extension (.txt) it should work. Deploy does not take the file extension

0reactions
mshanemccommented, Jun 1, 2021

is fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What to do if your IT deployment fails | Ricoh USA
And if your applications were built onsite, make sure your documentation is thorough enough to describe any in-house architectures that were used. There...
Read more >
How to avoid the top 5 manual Deployment Failures by ...
Here are five common manual deployment failures and how they could have been avoided using automation tools like BuildMaster.
Read more >
Application deployment problems - IBM
You might encounter problems when deploying, installing, or promoting applications. This topic suggests ways to resolve the problems.
Read more >
Troubleshooting failed or hanging tasks - Octopus Deploy
A guide for troubleshooting tasks that fail unexpectedly or are unresponsive.
Read more >
Deployment Error Messages - Micro Focus
The deployment program that deploys services to Enterprise Server writes its messages to a file called deploylog.txt. This file is stored on the...
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