server icon indicating copy to clipboard operation
server copied to clipboard

You cannot import this much data at once.

Open githubtar opened this issue 3 years ago • 9 comments

Steps To Reproduce

Try to import 3 MB file or more: Log in to Bitwarden through the web interface at vault.bitwarden.com. Go to Tools, then Import Data. Select Roboform CSV from the drop down list labelled "Select the format of the input file". Click "Browse" and navigate to where you have the Roboform CSV export saved. Click on "Import Data".

Expected Result

It would walk on any size file

Actual Result

There was a problem with the data you tried to import. Please resolve the errors listed below in your source file and try again.

You cannot import this much data at once.

Screenshots or Videos

No response

Additional Context

No response

Operating System

Windows

Operating System Version

No response

Web Browser

Chrome

Browser Version

No response

Build Version

web interface at vault.bitwarden.com

githubtar avatar Jan 15 '22 02:01 githubtar

Hi @githubtar,

  1. Can you please attach a screenshot that shows the error message you're encountering when you attempt to import that file?
  2. Do you know how many vault items, or lines, that file contains?

Thank you in advance,

SergeantConfused avatar Jan 15 '22 15:01 SergeantConfused

  1. You cannot import this much data at once.

  2. 17,900

githubtar avatar Jan 15 '22 17:01 githubtar

Hi @githubtar,

We currently only supports importing 2000 items at a time. This is primarily to minimize the load on our services and to ensure the whole import succeeds. As a current work around I would suggest splitting the import into chunks of 2000.

Hinton avatar Jan 18 '22 09:01 Hinton

I'm sure not the only one with this issue. Would it be possible to fix?

githubtar avatar Jan 18 '22 15:01 githubtar

We're also having this problem as of 1/9/2023. Only 4k logins. When we split import, it starts duplicating the folders... totally not helpful :(

RobWiddick avatar Jan 09 '23 22:01 RobWiddick

For reference, here are our current cloud-hosted limits:

Individual vault import: https://github.com/bitwarden/server/blob/master/src/Api/Controllers/CiphersController.cs#L237-L242

Organizational vault import: https://github.com/bitwarden/server/blob/master/src/Api/Controllers/CiphersController.cs#L254-L259

@RobWiddick The 4k logins don't seem to be the issue here, so maybe it's the amount of collections or collectionRelationships. If you are able to split your import by folders/collection, it won't create duplicates.

djsmith85 avatar Jan 10 '23 10:01 djsmith85

Hi @djsmith85 thank you! I didn't think we had that many collections - I will dig into the collections and then split that way, thank you for the tip!

RobWiddick avatar Jan 10 '23 13:01 RobWiddick