I tested various combinations (empty string/valid string) of state and org_unit. No combination led to failing 'hammer ping'. There was no error message for empty state value (as mentioned in original bug 1964037) VERIFIED with Satellite 6.12.4 SNAP2.0 @RHEL8.7
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Satellite 6.12.4 Async Update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:2052