Make sure you have installed barcode 3 of 9 font format in your production environment, and the reboot is required after installing the font.
A barcode in Code 39 requires the characters * at the beginning and end of the barcode value. Ensure that there are no extra spaces or characters in the value you're encoding.
Regards,
Zoe Hui
If the answer is helpful, please click "Accept Answer" and upvote it.