The reason for that is the salesorder document number in the sourced dropdownlist list contains “#”. When we try topass that as URL it gets trimmed at #.
The solution is to pass the internal id or remove the # symbol before passing it as a parameter.