Why do I get error messages regarding 'Profile Agent'?
'Profile Agent' leads to the partner maintenance and the roles you can add there. An agent can have several locations for sea freight and airfreight - one of them needs to be the default location.
Go to Master Data > Partner
Open the partner that seems to cause the errors.
Go to the Roles tab.
Check if the role 'Agent' (General tab) has set locations and if one of them is an Airport/Seaport.
If necessary, add locations using the Add... button.