After having tests at the Aberdeen Royal Infirmary, she was discharged and went back to Balmoral, the Queen’s summer residence. She is now resting privately.
The palace said a number engagements had been forced to be cancelled.
"As a precaution, on the advice of doctors, The Princess will not undertake the planned visit to Botswana and Mozambique at the end of the month.
"HRH The Duke of York will now undertake this visit," a spokesman said.