Error when setting up OneIM db in a SQL always on availability group

I have followed the guide https://docs.oneidentity.com/bundle/one-identity-manager_installation_9.3/page/sources/install/oneim/howtosqlalwaysonconfiguration.htm

When I come to the step Compile the database, I'm getting an error  "The database created from another database.... Do you want to create a new database ID now?"

If I select "OK" then I'm getting a new error:

"Database error 1468: The operation cannot be performed on database "OneIM" because it is involved in a database mirroring session or an availibility group...."

Does Anyone have had the same issue?  What should I do to get this fixed?