Learning Agr

Hello together. I would have asked a question about a splinter 2.2 diesel from 2012. The car got the Agr valve renewed. Mil lamp was on and there were bugs Agr valve switched off and Agr def. Drinne. (I can’t say exactly error text since I first went to the car after that). Didn’t delete and Agr valve was renewed(shei.. work). Then we started the car, mil flashes now only and the error p040000 agr flow is faulty. The engine does not have a load pressure (max 2.1 bar) and exhaust gas counter pressure (max 2.6 bar) is still fully in use. Does the new agr valve have to be learned at daimler? Or did someone have such a fall?