Retirement tax questions

Yes, Code G indicates that this is a nontaxable rollover and that is what drives the program. Contact Fidelity and ask the reasoning for this code. Did you have any after-tax 401k amounts?