Docs Menu

createStoreicons/link.png

On this page

  • Syntax
  • Parameters
  • Output
  • Example
  • Troubleshoot Errors

The createStore command creates a store in the Atlas Data Lake storage configuration. Click on the tab below to learn more about creating a data store for the data source.

The command prints the following output if it succeeds. If the command fails, see Troubleshoot Errors for recommended solutions.

The following example uses the createStore command to create a new data store called myStore.

If the command fails, it returns one of the following errors.

Reason: A data store with the name specified in createStore already exists.

{
"ok": 0,
"errmsg": "store <store-name> already exists",
"code": 2,
"codeName": "BadValue"
}

Solution: Specify a unique name for the data store.

Reason: The specified provider isn't recognized.

{
"ok": 0,
"errmsg": "unrecognized store provider <storage-provider>",
"code": 2,
"codeName": "BadValue"
}

Solution: Ensure that you specify a valid storage provider.

←  createdrop →
Give Feedback
MongoDB logo
© 2021 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2021 MongoDB, Inc.