Hi Greg,
To set the Duration, you need to put the 'H' (or 'D' etc) in the 'setDurationType' column, and not in the 'setDurationUnit' column. Not very intuitive but it works for me! When doing this, it automatically sets the Planned Hours to the same as the Duration, which may be fine for you.
I ...