In AddReturn we check that the branch for a return exists and force to the userenv if it does not. In SIP we accept the incoming field from CP in a 93 message with no checking. This can create a strange situation where holds are marked as 'In transit' To recreate: 1 - Place a hold for a patron on an item in your catalog 2 - Use the sip cli emulator with a bad location code to check in that item perl misc/sip_cli_emulator.pl -a localhost -p 6001 -su term1 -sp term1 -l CLP -m checkin --item TESTER 3 - Note the typoed 'CLP' instead of 'CPL' 4 - Check the hold in the staff client - it is in transit