I recently returned from Portugal after flying TAP, and tried requesting a miles credit on United, and got this message. I'm not sure why it wouldn't qualify.
Denied. The ticket number you entered is for travel that is not eligible for MileagePlus mileage credit or Premier® qualifying credit.