# Slack import not working in Version 4.3.2 (Docker)

**URL:** <https://forums.rocket.chat/t/slack-import-not-working-in-version-4-3-2-docker/13191>\
**Category:** Community Support\
**Created:** [February 2, 2022, 11:30pm UTC](https://forums.rocket.chat/t/slack-import-not-working-in-version-4-3-2-docker/13191 "2022-02-02T23:30:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimmyJames](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jimmyJames](https://forums.rocket.chat/u/jimmyJames)\
**Post date:** [February 2, 2022, 11:30pm UTC](https://forums.rocket.chat/t/slack-import-not-working-in-version-4-3-2-docker/13191/1 "2022-02-02T23:30:22Z")

</div>

First off, my perfunctory apology if anything is missing, I’m new to RocketChat and this support forum. I’m happy to provide additional information.

### Description

When I upload a zipped export from Slack, I get an error. I’ve tried a few things from “the google”, and I’m not finding a solution.

One of the solutions was to ensure that all users had email address’, so I did that, and imported  
0 Users   
0 Channels   
27432 Messages   
27432 Total

But since there are no channels, I see no messages. I’ll paste the error code from the Logs further down.

### Server Setup Information

- Version of Rocket.Chat Server: 4.3.2
- Operating System: Ubuntu 18.04.5 LTS
- Deployment Method: docker
- Number of Running Instances: 1
- DB Replicaset Oplog: idk what that means
- NodeJS Version:
- MongoDB Version: 4.0.28
- Proxy: nginx
- Firewalls involved: AWS

### Any additional Information

rocketchat\_1 | {“level”:50,“time”:“2022-02-02T21:24:09.932Z”,“pid”:8,“hostname”:“49603428f7bb”,“name”:“Slack Importer”,“err”:{“type”:“Error”,“message”:“object [""] is not a valid ObjectId”,“stack”:“Error: object [""] is not a valid ObjectId\n at serializeObjectId (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/bson/lib/bson/parser/serializer.js:287:11)\n at serializeInto (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/bson/lib/bson/parser/serializer.js:941:17)\n at serializeObject (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/bson/lib/bson/parser/serializer.js:347:18)\n at serializeInto (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/bson/lib/bson/parser/serializer.js:947:17)\n at serializeObject (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/bson/lib/bson/parser/serializer.js:347:18)\n at serializeInto (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/bson/lib/bson/parser/serializer.js:729:17)\n at serializeObject (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/bson/lib/bson/parser/serializer.js:347:18)\n at serializeInto (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/bson/lib/bson/parser/serializer.js:947:17)\n at BSON.serialize (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/bson/lib/bson/bson.js:64:28)\n at Msg.serializeBson (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/core/connection/msg.js:127:22)\n at Msg.makeDocumentSegment (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/core/connection/msg.js:119:33)\n at Msg.toBin (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/core/connection/msg.js:105:25)\n at MessageStream.writeCommand (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/cmap/message\_stream.js:55:28)\n at Connection.write (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/cmap/connection.js:373:26)\n at \_command (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/core/wireprotocol/command.js:125:10)\n at command (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/core/wireprotocol/command.js:28:5)\n at writeCommand (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/core/wireprotocol/write\_command.js:56:3)\n at Object.update (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/core/wireprotocol/index.js:9:5)\n at Connection.update (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/cmap/connection.js:195:8)\n at /app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/core/sdam/server.js:490:13\n at Object.callback (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/cmap/connection\_pool.js:345:7)\n at processWaitQueue (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/cmap/connection\_pool.js:468:23)”},“msg”:“object [""] is not a valid ObjectId”}

---

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [February 3, 2022, 12:56pm UTC](https://forums.rocket.chat/t/slack-import-not-working-in-version-4-3-2-docker/13191/2 "2022-02-03T12:56:06Z")

</div>

Hi and welcome to our forums! Glad to have you here!! 🙂

We just had a pull that fixes the CSV import and also, as I heard, slack imports too in our latest version 4.4.0

> <https://github.com/RocketChat/Rocket.Chat/pull/24090>
>
> \<!-- Your Pull Request name should start with one of the following tags
> \[NEW\]… For new features
> \[IMPROVE\] For an improvement (performance or little improvements) in existing features
> \[FIX\] For bug fixes that affect the end-user
> \[BREAK\] For pull requests including breaking changes
> Chore: For small tasks
> Doc: For documentation
> \--\>
> 
> \<!-- Checklist!!! If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code. 
> - I have read the Contributing Guide - https://github.com/RocketChat/Rocket.Chat/blob/develop/.github/CONTRIBUTING.md#contributing-to-rocketchat doc
> - I have signed the CLA - https://cla-assistant.io/RocketChat/Rocket.Chat
> - Lint and unit tests pass locally with my changes
> - I have added tests that prove my fix is effective or that my feature works (if applicable)
> - I have added necessary documentation (if applicable)
> - Any dependent changes have been merged and published in downstream modules
> \--\>
> 
> \## Proposed changes (including videos or screenshots)
> 
> \<!--
> Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request.
> If it fixes a bug or resolves a feature request, be sure to link to that issue below.
> This description will appear in the release notes if we accept the contribution.
> \--\>
> \- Update use of \`setRealName\` function to \`\_setRealName\`.
> 
> 
> 
> \## Issue(s)
> 
> Closes #24073
> Fixes #23997
> 
> \## Steps to test or reproduce
> 
> 1. Create a CSV file (e.g. \`users.csv\`) with the following content:
> 
> \`\`\`plain
> bradley.hilton,bradley.hilton@example.com,Bradley Hilton
> billy.bob, billy.bob@example.com, Billy Bob Jr.
> graywolf336,graywolf336@example.com,GrayWolf336
> \`\`\`
> 
> 2. Create a ZIP file containing only the CSV file you created in the previous step;
> 
> 3. Go to \*\*Administration \> Import \> Import New File\*\*, then choose \*\*CSV as the Import Type\*\* and upload the \*\*ZIP\*\* file from your computer;
> 
> 4. Click on Import. \*\*\_Expected behavior:\_\*\* 3 users should be displayed with all the info given in the CSV file.
> 
> 5. Click on Start Importing. \*\*\_Expected behavior:\_\*\* all 3 users should be succesfully imported \*\*\_with their corresponding real names\_\*\* (what can be checked in \*\*Administration \> Users\*\*);
> 
> 6. Delete the 3 users and repeat this process using a CSV with a single user. No error should be displayed in the whole process.
> 
> \## Further comments

I suggest you upgrade to latest version and try it out in your staging environment.

Thanks!

---

<div class="post-metadata">

**Author:** ![jimmyJames](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jimmyJames](https://forums.rocket.chat/u/jimmyJames)\
**Post date:** [February 3, 2022, 5:25pm UTC](https://forums.rocket.chat/t/slack-import-not-working-in-version-4-3-2-docker/13191/3 "2022-02-03T17:25:57Z")

</div>

Thanks for the suggestion, I’ve tried it and I’m seeing the same error.  
I have some notes to update your Docker documentation 😃 (but that’s another topic)  
Current RocketChat Version 4.4.0  
I also updated MongoDB to 4.4.12

Here are the three error lines:

rocketchat\_1 | {“level”:50,“time”:“2022-02-03T17:23:18.546Z”,“pid”:9,“hostname”:“697bdfa38d30”,“name”:"",“name”:“Slack Importer”,“err”:{“type”:“errorClass”,“message”:“Forbidden [forbidden]”,“stack”:“Error: Forbidden [forbidden]\n at Object. (packages/jalik:ufs/ufs-store.js:360:12)\n at packages/matb33:collection-hooks/insert.js:16:28\n at Array.forEach ()\n at Object. (packages/matb33:collection-hooks/insert.js:15:22)\n at Object.collection. [as insert] (packages/matb33:collection-hooks/collection-hooks.js:93:21)\n at ns.Collection.insert (packages/mongo/collection.js:552:39)\n at ns.Collection.Mongo.Collection. [as insert] (packages/dispatch\_run-as-user.js:325:19)\n at GridFSStore.Store.self.create (packages/jalik:ufs/ufs-store.js:205:33)\n at FileUploadClass.\_doInsert (app/file-upload/server/lib/FileUpload.js:667:29)\n at FileUploadClass.insert (app/file-upload/server/lib/FileUpload.js:707:15)\n at FileUploadClass.insertSync (packages/meteor.js:311:21)\n at setUserAvatar (app/lib/server/functions/setUserAvatar.ts:95:27)\n at \_setUsername (app/lib/server/functions/setUsername.js:69:4)\n at saveUserIdentity (app/lib/server/functions/saveUserIdentity.js:32:8)\n at ImportDataConverter.updateUser (app/importer/server/classes/ImportDataConverter.ts:260:4)\n at ImportDataConverter.insertUser (app/importer/server/classes/ImportDataConverter.ts:283:8)\n at app/importer/server/classes/ImportDataConverter.ts:346:26\n at Array.forEach ()\n at ImportDataConverter.convertUsers (app/importer/server/classes/ImportDataConverter.ts:310:9)\n at app/importer/server/classes/ImporterBase.js:205:20\n at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1257:12)\n at packages/meteor.js:555:25”,“isClientSafe”:true,“error”:“forbidden”,“reason”:“Forbidden”,“errorType”:“Meteor.Error”},“msg”:“Forbidden [forbidden]”}  
rocketchat\_1 | {“level”:50,“time”:“2022-02-03T17:23:18.659Z”,“pid”:9,“hostname”:“697bdfa38d30”,“name”:"",“name”:“Slack Importer”,“err”:{“type”:“errorClass”,“message”:“Forbidden [forbidden]”,“stack”:“Error: Forbidden [forbidden]\n at Object. (packages/jalik:ufs/ufs-store.js:360:12)\n at packages/matb33:collection-hooks/insert.js:16:28\n at Array.forEach ()\n at Object. (packages/matb33:collection-hooks/insert.js:15:22)\n at Object.collection. [as insert] (packages/matb33:collection-hooks/collection-hooks.js:93:21)\n at ns.Collection.insert (packages/mongo/collection.js:552:39)\n at ns.Collection.Mongo.Collection. [as insert] (packages/dispatch\_run-as-user.js:325:19)\n at GridFSStore.Store.self.create (packages/jalik:ufs/ufs-store.js:205:33)\n at FileUploadClass.\_doInsert (app/file-upload/server/lib/FileUpload.js:667:29)\n at FileUploadClass.insert (app/file-upload/server/lib/FileUpload.js:707:15)\n at FileUploadClass.insertSync (packages/meteor.js:311:21)\n at setUserAvatar (app/lib/server/functions/setUserAvatar.ts:95:27)\n at \_setUsername (app/lib/server/functions/setUsername.js:69:4)\n at saveUserIdentity (app/lib/server/functions/saveUserIdentity.js:32:8)\n at ImportDataConverter.updateUser (app/importer/server/classes/ImportDataConverter.ts:260:4)\n at ImportDataConverter.insertUser (app/importer/server/classes/ImportDataConverter.ts:283:8)\n at app/importer/server/classes/ImportDataConverter.ts:346:26\n at Array.forEach ()\n at ImportDataConverter.convertUsers (app/importer/server/classes/ImportDataConverter.ts:310:9)\n at app/importer/server/classes/ImporterBase.js:205:20\n at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1257:12)\n at packages/meteor.js:555:25”,“isClientSafe”:true,“error”:“forbidden”,“reason”:“Forbidden”,“errorType”:“Meteor.Error”},“msg”:“Forbidden [forbidden]”}  
rocketchat\_1 | {“level”:50,“time”:“2022-02-03T17:23:18.664Z”,“pid”:9,“hostname”:“697bdfa38d30”,“name”:"",“name”:“Slack Importer”,“err”:{“type”:“Error”,“message”:“object [”"] is not a valid ObjectId",“stack”:“Error: object [”"] is not a valid ObjectId\n at serializeObjectId (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/bson/lib/bson/parser/serializer.js:287:11)\n at serializeInto (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/bson/lib/bson/parser/serializer.js:941:17)\n at serializeObject (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/bson/lib/bson/parser/serializer.js:347:18)\n at serializeInto (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/bson/lib/bson/parser/serializer.js:947:17)\n at serializeObject (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/bson/lib/bson/parser/serializer.js:347:18)\n at serializeInto (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/bson/lib/bson/parser/serializer.js:729:17)\n at serializeObject (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/bson/lib/bson/parser/serializer.js:347:18)\n at serializeInto (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/bson/lib/bson/parser/serializer.js:947:17)\n at BSON.serialize (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/bson/lib/bson/bson.js:64:28)\n at Msg.serializeBson (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/core/connection/msg.js:127:22)\n at Msg.makeDocumentSegment (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/core/connection/msg.js:119:33)\n at Msg.toBin (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/core/connection/msg.js:105:25)\n at MessageStream.writeCommand (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/cmap/message\_stream.js:55:28)\n at Connection.write (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/cmap/connection.js:373:26)\n at \_command (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/core/wireprotocol/command.js:125:10)\n at command (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/core/wireprotocol/command.js:28:5)\n at writeCommand (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/core/wireprotocol/write\_command.js:56:3)\n at Object.update (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/core/wireprotocol/index.js:9:5)\n at Connection.update (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/cmap/connection.js:195:8)\n at /app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/core/sdam/server.js:490:13\n at Object.callback (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/cmap/connection\_pool.js:345:7)\n at processWaitQueue (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/cmap/connection\_pool.js:468:23)"},“msg”:“object [”"] is not a valid ObjectId"}

---

<div class="post-metadata">

**Author:** ![jimmyJames](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jimmyJames](https://forums.rocket.chat/u/jimmyJames)\
**Post date:** [February 3, 2022, 7:06pm UTC](https://forums.rocket.chat/t/slack-import-not-working-in-version-4-3-2-docker/13191/4 "2022-02-03T19:06:31Z")

</div>

I needed to get it to work, so I installed RocketChat version 3.18.5, and was able to import from the Slack export.  
I’ll upgrade my instance to latest once I do a little data clean up.

---

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [February 4, 2022, 1:34pm UTC](https://forums.rocket.chat/t/slack-import-not-working-in-version-4-3-2-docker/13191/5 "2022-02-04T13:34:13Z")

</div>

Hi Jimmy. Thanks for your input on this.

I have forwarded it to our team!

---

<div class="post-metadata">

**Author:** ![IARI](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/iari/32/3404_2.png) [@IARI](https://forums.rocket.chat/u/IARI)\
**Post date:** [February 4, 2022, 10:25pm UTC](https://forums.rocket.chat/t/slack-import-not-working-in-version-4-3-2-docker/13191/6 "2022-02-04T22:25:46Z")

</div>

I keep seeing what seems like the same error, [posted on open.rocket.chat](https://open.rocket.chat/channel/support?msg=Da7xXGzrbFxycGLph).  
[For reference, heres another post about this](https://forums.rocket.chat/t/slack-import-error-meteor-userid/12395)

I am on Docker, Mongo 5.0.5, RocketChat 4.4.0

Most imports fail for me.  
I tried to manually craft a lot of different Versions of the .zip containing the exported files.

When the zip only contains users.json with a few users it imports these successfully - but sometimes that fails too. With messages there’s almost always errors.  
But I’ve also had one channel imported without errors and messages just not show up afterwards multiple times.

---

<div class="post-metadata">

**Author:** ![matheus.barbosa](https://avatars.discourse-cdn.com/v4/letter/m/c77e96/32.png) [@matheus.barbosa](https://forums.rocket.chat/u/matheus.barbosa)\
**Post date:** [February 23, 2022, 9:23pm UTC](https://forums.rocket.chat/t/slack-import-not-working-in-version-4-3-2-docker/13191/7 "2022-02-23T21:23:54Z")

</div>

Hey @jimmyJames , thanks for pointing this issue and providing the error logs!  
[This PR](https://github.com/RocketChat/Rocket.Chat/pull/24585) should fix this issue. Feel free to comment there if the issue persists.
