Hold up before replacing the EGR. They don't fail all that often. What is the actual code? If it's insufficient flow, then that usually points to the map sensor, although it'll say "EGR insufficient flow". Map reads the change in pressure that is expected when the egr opens.