Help Center/ Data Replication Service/ Troubleshooting/ Failure Cases/ Real-Time Migration from MongoDB to DDS/ Full Migration Error: not authorized on riskevaluation to execute command {***}
Updated on 2022-09-21 GMT+08:00

Full Migration Error: not authorized on riskevaluation to execute command {***}

Scenarios

During real-time MongoDB-to-DDS migration, an error is reported during full migration. The log information is as follows: service DATAMOVE failed, cause by: apply event=[type=table_data, batch_index_in_shard=1, table_schema=***, table_name=***, record_num=2720] occur error, msg=Command failed with error 13 (Unauthorized):'not authorized on riskevaluation to execute command {***}.

Possible Causes

  • The migration account used by DRS does not have the write permission on the destination database.

Solution

Grant the destination database write permission to the DRS migration account. For details, see the MongoDB official documents or DDS user guide.