Trying to upload firmware image using ncm firmware upgrade templates.
Error in logs:
2023-03-15 13:18:19,584 [109] ERROR SolarWinds.NCM.Transfer.DirectTransfer - ErrorMessage: Process could not continue because execution results do not match expected pattern: n5000-uk9.7.3.11.N1.1.bin CommandOutput:
The command steps directly on the switch:

Template command:
copy scp://${SCPServerUserName}:${SCPServerPassword}@10.181.29.52//${NewImageName} ${NewImageSlot}${NewImageName}${CRLF}${CRLF}dir ${NewImageSlot} ${SuccessRegEx:${NewImageName}}
After inputting the copy line, I need to hit enter, enter again for the vrf, and then yes and then enter. but does not seem to be working.
Also seeing another error in the logs if anyone can explain:
2023-03-15 13:18:21,537 [99] ERROR SolarWinds.Cirrus.BusinessLayer.TransferEngine.TransferManager - NCMTransfer StartTransfer IP 10.173.0.51 Error.System.Data.SqlClient.SqlException (0x80131904): Violation of PRIMARY KEY constraint 'PK_TransferResultsID'. Cannot insert duplicate key in object 'dbo.NCM_TransferResults'. The duplicate key value is (ad38f9ef-fe9d-4d83-aa4e-7a60077882d5).