You need an end cap.
The 1769-ECR is the right-side end cap, which should be appropriate for your installation unless you used a right-to-right bus extension cable.
RA got tired enough of explaining this that they started including 1769-ECR end caps with the 1769-L2 series controllers, but your 1769-L31 comes from an era when you had to buy all the components separately.