Try giving yourself some information to work with. It's possible one of your printers does not exist.

 Code:
		For Each $Printer in $Printers
                ? $Printer
				If PriMapState($Printer) = ''
					$RC = AddPrinterConnection($Printer)
                                        ? @serror
				EndIf