Are you supplying all the parameters?
Usage: wallet_dump_private_key <input> Reveals the private key corresponding to an account, public key, or address Reveals the private key corresponding to an account, public key, or address Parameters: input (string, required): an account name, public key, or address (quoted hash of public key) Returns: string aliases: dump_private_key, dumpprivkey