Failed to synchronize cargo data.
Cannot synchronize cargo itinerary. Non-commercial data for port, cannot be changed.
Unable to update CP terms for trade unit.
The error you are receiving means the itinerary row is locked for a specified port. This can be due to the vessel sailed from the port or you have port or bunker expenses linked to it.