You sure about the rejection code? Doesnt seem to come up in any lists of reject codes.
Where did the capital gains on Line 13 come from? 1099-DIV or a K-1? Did you enter them on the 1099 or K-1 worksheet and they populated on Sch D? or did you enter them directly on the Sch D?