Migrate/Change aggregate identifier

Hello I have a very trick task to do and the closest question I found here is that -> https://groups.google.com/g/axonframework/c/j3PB2YKuQVQ/m/M2MhuEQzAQAJ

But still doesn’t cover fully my problem

Due some unexpected duplication cases I have to migrate the identifier for a given aggregate. The upscaster doesn’t work in this case because the identifier is not reached by upcaster functions (payload, metadata, revision)

Is there a recommended approach to do it? It should be a regular migration script?

Hi Rogerio,

if a regular migration script is an option, that would be by far the easiest solution. If it isn’t, we’ll have a look at what other options you have :-).

Cheers,