load('loadMovieDetailsDataset.js') shows some error

MongoDB Enterprise Cluster0-shard-0:PRIMARY> load(‘loadMovieDetailsDataset.js’)
2020-04-04T12:16:30.312+0530 E QUERY [js] uncaught exception: Error: drop failed: {
“operationTime” : Timestamp(1585982791, 1),
“ok” : 0,
“errmsg” : “not authorized on video to execute command { drop: “movieDetails”, lsid: { id: UUID(“a189dd8b-f90e-4221-975b-303ca933d94d”) }, $clusterTime: { clusterTime: Timestamp(1585982601, 1), signature: { hash: BinData(0, C6B7D36DCE43B65CDB3A0C199F3DF773611EE28B), keyId: 6763648209215553537 } }, $db: “video” }”,
“code” : 13,
“codeName” : “Unauthorized”,
“$clusterTime” : {
“clusterTime” : Timestamp(1585982791, 1),
“signature” : {
“hash” : BinData(0,“yS4JFwqlSczzerHflCQm/Qy/rFY=”),
“keyId” : NumberLong(“6763648209215553537”)
}
}
} :
_getErrorWithCode@src/mongo/shell/utils.js:25:13
DBCollection.prototype.drop@src/mongo/shell/collection.js:696:15
@loadMovieDetailsDataset.js:2:1
@(shell):1:1
2020-04-04T12:16:30.313+0530 E QUERY [js] Error: error loading js file: loadMovieDetailsDataset.js :
@(shell):1:1
MongoDB Enterprise Cluster0-shard-0:PRIMARY>

What connect string you used to connect to DB?
Error clearly says drop failed unauthorized on video DB

Please connect to your Sandbox cluster

Hi @Ashwin_13149,

I hope you found @Ramachandra_37567’s response helpful.

Please let us know if you are still facing any issue.

~ Shubham