I had a similar problem with W2 transfer from federal to state. I was able to delete the CA form 540, save, exit, and restart, then go through the state process again (it had all my data, just click through). This time it created the 540 correctly and I was able to file electronically.