Earlier, we were able to change the function, add new function to the canister.
Now, if i change the function. I am not able to upgrade the canister but only can reinstall the canister which causes complete data loss. Is it a new change in the dfx 0.11.1 ?
Getting the below error.
Error: Failed to install wasm module to canister ‘salesforce_canister’.
Caused by: Failed to install wasm module to canister ‘salesforce_canister’.
Failed to install wasm in canister ‘xxx-uaaaa-aaaah-xxxx-cai’.
Failed to install wasm.
The Replica returned an error: code 5, message: “Canister xxx-uaaaa-aaaah-xxxx-cai trapped explicitly: IDL error: variant or record tag out of order”
Caused by: Failed to install wasm module to canister ‘prod_finance’.
Failed to install wasm in canister ‘6s6yi-xxxxx-xxxx-qc6iq-cai’.
Failed to install wasm.
The Replica returned an error: code 5, message: “Canister 6s6yi-xxxx-xxxx-qc6iq-cai trapped explicitly: IDL error: variant or record tag out of order”
tried stepping through the versions to see where it shows up
DFX_VERSION=0.9.3; no issue
DFX_VERSION=0.10.1; no issue deploying after upgrade but had to use --clean
DFX_VERSION=0.11.2; now issue shows up…
dfx upgrade; 0.12.0 same issue