PDF417 codes can become dense quickly. A code that looks acceptable in the editor can scan poorly after compression, printing, or resizing. The safest setup is to test the longest realistic payload, export a completed PDF, and scan it at the final physical size with the same devices the workflow will use.
Leave enough white space around the code, avoid placing it where the page will be folded or stamped, and keep the field large enough for the payload. If scan quality is weak, reduce the encoded data, increase the field area, or move long record details behind a QR URL and keep PDF417 for the values the scanner truly needs offline.