this error is saying that the service code for the UPS shipping rate lookup is missing or illegal.
on the pp_confirm page, the shipping code is set by this line:
$Shipping_Parameters["CarrierCode"] = "".($WAGLOBAL_UPS_ShipType) ."";
compare that line against the pp_confirm page that is working.