Witness for note commitment is null on spending from imported Zaddr

thank you bitcartel and arielgabizon,

Well I did a z_exportwallet “filename” and took it out of this generated file.

I then imported the Skey using zcash-cli z_importkey spendingkey

I then tried to send from it to another z_address in that wallet and got the error “Witness for note commitment is null”. -rescan did not change anything to this error.

I then reindexed, as it was taking so long I sent from the first wallet the coin to the z_address in the second wallet directly.

When the second wallet finished reindexing (offline) I stop it, and ran the daemon (online, to synch) and it crashed on startup with the second error (zcashd: wallet/wallet.cpp:659). Luckily I had a backup of the VM in which this wallet was and I could get the coin in the second z_address after synching. The first z_address was empty so I could not try to send again from this copy of the second wallet.