Just put a 9000 mile engine from a 2007 polo 9n3 into a 2004 polo 9n.

The old engine had an egr valve but the new one doesnt so will this bring up the engine management light? if it will what ways do i have of getting round it? shorting the wires? soldering a resister in or just plugging it in and hiding the egr valve in the engine bay somewhere?