E5071C Saving Cal Settings

I've written a script that remotely carries out a full 4 port calibration (those measurements that the manual says are required as a minimum). However when I use the 'SENS1:CORR:COLL:SAVE' cammand to calulate the correction factors and save them to memory I get a 'Calibration type not defined error' , what am I doing wrong?:?

Check out the following link. It discusses everything that needs to be used for calibrating the ENA remotely. The first item is selecting the correct calibration type. This is done prior to measuring any calibration standards. If you are doing this, then you might try posting the portion of your code that is setting up the calibration, measuring the standards, and saving the calibration.