<p>You need to enclose the filename in quotes.</p>
<p>eg:</p>
<pre><code>dumpwallet &quot;C:\output.txt&quot;
</code></pre>
<p>As opposed to:</p>
<pre><code>dumpwallet C:\output.txt      (wrong)
</code></pre>

CC BY-SA 4.0
2020-07-20T18:02:59.957Z
2020-07-20T18:02:59.957Z
jwd
<p>Is anybody familiar with this problem using btc qt debug console?</p>

<p>Would like to dump wallet and sweep into electrum.</p>

CC BY-SA 4.0
2020-01-06T02:56:03.280Z
What is the exact command you're using?
Pieter Wuille
CC BY-SA 4.0
2020-01-06T20:25:50.663Z
Dumpwallet. To a created txt file on my C drive. Don't know what the problem is. What does code -8 mean? Should I use a certain type of txt file? Should I stop syncing my node while doing it? Any help would be great.
requim
CC BY-SA 4.0
2020-01-06T21:04:55.133Z
Well you need to pass the file name to dump to, how are you soecifying that?
Pieter Wuille
CC BY-SA 4.0
2020-01-06T22:42:42.007Z
In the debug console i type Dumpwallet C:\...\...
requim
CC BY-SA 4.0
2020-01-07T14:35:55.227Z
Should I stop syncing? I'm getting a new error now. No longer "code-8"
requim
<bitcoin-core><json-rpc><electrum><full-node>
Cannot open dump wallet file (code-8)
requim
# Cannot open dump wallet file (code-8)

(Asked by: username_0 on 2020-01-05)

Is anybody familiar with this problem using btc qt debug console?

Would like to dump wallet and sweep into electrum.

**Tags:** bitcoin-core, json-rpc, electrum, full-node

> **Comments:**
> **username_1**: What is the exact command you're using?  
> **username_0**: Dumpwallet. To a created txt file on my C drive. Don't know what the problem is. What does code -8 mean? Should I use a certain type of txt file? Should I stop syncing my node while doing it? Any help would be great.  
> **username_1**: Well you need to pass the file name to dump to, how are you soecifying that?  
> **username_0**: In the debug console i type Dumpwallet C:\...\...  
> **username_0**: Should I stop syncing? I'm getting a new error now. No longer "code-8"  

---

## 1 answers

### Answer by username_2 on 2020-07-20. Score: 1

You need to enclose the filename in quotes.
eg:
dumpwallet "C:\output.txt"

As opposed to:
dumpwallet C:\output.txt      (wrong)


---

