I understand you're encountering the error: "Directory synchronization is enabled for this directory, but has not yet taken effect" while transitioning from one tenant to another using Microsoft Entra Connect Sync Agent.
This error typically indicates that the initial sync process is still pending or incomplete, even though directory sync has been enabled. where AD sync is removed from one tenant and re-established in another.
It takes a period of time up to 72 hours to re-enable and effect the sync, some time it takes few hours.
Wait for the period of the time and see if issue is fixed.
A similar issue is posted by other community member here.
Hope this helps. If you still do not see enough information to isolate the issue, please let me know in the comment section.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.