The European Commission has rejected bans introduced by Poland and Hungary on Ukrainian grain imports.
The two countries said the measures were necessary to protect their farming sectors from cheap imports.
The ban applies to grains, dairy products, sugar, fruit, vegetables and meats and will be in force until the end of June.
The Commission said it was not up to individual member states to make trade policy.
While the Commission has said that unilateral moves will not be tolerated, it has not yet specified what measures it would take against Poland and Hungary.
"In such challenging times, it is crucial to coordinate and align all decisions within the EU," its spokesperson said in a statement.
Most Ukrainian grain is exported via the Black Sea, but Russia's invasion last year disrupted export routes and resulted in large quantities of the grain ending up in central Europe.
A deal with Russia, brokered by the UN and Turkey, allows Ukraine to continue exporting by sea – but Ukraine accuses Russia of slowing the process with over-zealous inspections.
Poland and Hungary announced the move on Saturday. The decision came after complaints from local farmers who said they were being undercut by cheaper Ukrainian grain flooding their markets.
On Sunday, Polish Economic Development and Technology Minister Waldemar Buda clarified that the ban applied to goods in transit as well as those staying in Poland.
He called for talks with Ukraine to set up a scheme to ensure exports pass through Poland and do not end up on the local market.
Ukraine says the move contradicts bilateral trade agreements.
A statement by Ukraine's Agriculture Ministry said it had "always been sympathetic to the situation in the Polish agricultural sector and responded promptly to various challenges".
"At present, unilateral drastic actions will not accelerate the positive resolution of the situation," it added.
Ministers from Poland and Ukraine are due to meet to discuss the issue in Poland on Monday.
Russia and Ukraine agree to extend grain deal
What is the Ukraine grain deal and is it working?
Putin critic jailed for 25 years in Russia
Explosions and gunfire in Sudan's capital as fighting rages
A simple guide to what's going on in Sudan
'We wish we could go back': Life under Myanmar's military rule
Uganda's failure to jail child rapists
Is India on the cusp of legalising same-sex marriage?
How artificial intelligence is matching drugs to patients
What does pole dancing do to your body? Video
Why Russia cares so much about international sport
The 'ninjas' fighting climate denial on Twitter
The terrible toll on women of Yemen's war
How to talk with children about climate change. Video
The WW1 game that's eerily accurate
Why Gen Z workers are starting on the back foot
How dinosaurs reached 'titanic' sizes
© 2023 BBC. The BBC is not responsible for the content of external sites. Read about our approach to external linking.