Signrawtransaction is not working on bitcoin core V0.17.1 I am having trouble signing a transaction on bitcoin core since it appears signrawtransaction no longer works.

I get the following error message :

signrawtransaction is deprecated and will be fully removed in v0.18. To use signrawtransaction in v0.17, restart bitcoind with -deprecatedrpc=signrawtransaction.
Projects should transition to using signrawtransactionwithkey and signrawtransactionwithwallet before upgrading to v0.18 (code -32)


Any advice on what to do? tahnks in advance!
As the error message says, signrawtransaction is deprecated. Stop using it. Instead use signrawtransactionwithwallet (if the transaction you are signing uses keys from your wallet) or signrawtransactionwithkey (if you are specifying keys on the command line).