# Problem with Slack Import

**URL:** <https://forums.rocket.chat/t/problem-with-slack-import/1277>\
**Category:** Community Support\
**Created:** [June 12, 2018, 1:46pm UTC](https://forums.rocket.chat/t/problem-with-slack-import/1277 "2018-06-12T13:46:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pglimos](https://avatars.discourse-cdn.com/v4/letter/p/a87d85/32.png) [@pglimos](https://forums.rocket.chat/u/pglimos)\
**Post date:** [June 12, 2018, 1:46pm UTC](https://forums.rocket.chat/t/problem-with-slack-import/1277/1 "2018-06-12T13:46:37Z")

</div>

Hi!

I have the most recent snap installation of Rocket Chat - 0.61 and I wanted to import Slack data.  
While users and channels are imported without any problems, the process stops at 1500/84000 and messages are not imported.  
Importing ends with success status. This is what is in the logs.

```
[34mI20180612-08:29:27.660(2) Exception in callback of async function: Error: File exceeds allowed size of -1 B. [error-file-too-large] at Filter.validateFileUpload [as onCheck] (/snap/rocketchat-server/1273/programs/server/packages/rocketchat_file-upload.js:122:13) at Filter.check (/snap/rocketchat-server/1273/programs/server/packages/jalik_ufs.js:595:53) at FileUploadClass.insert (/snap/rocketchat-server/1273/programs/server/packages/rocketchat_file-upload.js:640:14) at res.on.Meteor.bindEnvironment (/snap/rocketchat-server/1273/programs/server/packages/rocketchat_importer.js:391:19) at runWithEnvironment (packages/meteor.js:1238:24)  
[34mI20180612-08:29:28.358(2) rocketchat_logger rocketchat_logger.js:278 e[31mSlack Importer ➔ error TypeError: Cannot read property '_id' of undefined at Object.createWithTypeRoomIdMessageAndUser (/snap/rocketchat-server/1273/programs/server/packages/rocketchat_lib.js:8010:19) at msgs.messages.forEach.message (/snap/rocketchat-server/1273/programs/server/packages/rocketchat_importer-slack.js:558:52) at Array.forEach (<anonymous>:null:null) at Object.keys.forEach.date (/snap/rocketchat-server/1273/programs/server/packages/rocketchat_importer-slack.js:458:29) at Array.forEach (<anonymous>:null:null) at DDPCommon.MethodInvocation.Meteor.runAsUser (/snap/rocketchat-server/1273/programs/server/packages/rocketchat_importer-slack.js:456:38) at packages/dispatch_run-as-user.js:211:14 at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1186:12) at Object.Meteor.runAsUser (packages/dispatch_run-as-user.js:210:33) at Object.keys.forEach.channel (/snap/rocketchat-server/1273/programs/server/packages/rocketchat_importer-slack.js:442:18) at Array.forEach (<anonymous>:null:null) at Meteor.defer (/snap/rocketchat-server/1273/programs/server/packages/rocketchat_importer-slack.js:440:36) at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1186:12) at packages/meteor.js:502:25 at runWithEnvironment (packages/meteor.js:1238:24) 

```

I have tried reinstalling, exporting slack data again, nothing works.  
Do you have any pointers what can be the problem?

---

<div class="post-metadata">

**Author:** ![aaron.ogle](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/aaron.ogle/32/15_2.png) [@aaron.ogle](https://forums.rocket.chat/u/aaron.ogle)\
**Post date:** [June 12, 2018, 6:54pm UTC](https://forums.rocket.chat/t/problem-with-slack-import/1277/2 "2018-06-12T18:54:25Z")

</div>

You say 61 we are on 0.65.1 typo? Just checking before diving too far into it 🙂

---

<div class="post-metadata">

**Author:** ![pglimos](https://avatars.discourse-cdn.com/v4/letter/p/a87d85/32.png) [@pglimos](https://forums.rocket.chat/u/pglimos)\
**Post date:** [June 12, 2018, 9:33pm UTC](https://forums.rocket.chat/t/problem-with-slack-import/1277/3 "2018-06-12T21:33:46Z")

</div>

Yeah, it’s a typo. Sorry.  
Rocket.Chat Version: 0.65.1

---

<div class="post-metadata">

**Author:** ![aaron.ogle](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/aaron.ogle/32/15_2.png) [@aaron.ogle](https://forums.rocket.chat/u/aaron.ogle)\
**Post date:** [June 13, 2018, 4:43am UTC](https://forums.rocket.chat/t/problem-with-slack-import/1277/4 "2018-06-13T04:43:44Z")

</div>

I’m not that familiar with slack import, but maybe try setting the file size limit super high during the import?

---

<div class="post-metadata">

**Author:** ![bradley.hilton](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/bradley.hilton/32/30_2.png) [@bradley.hilton](https://forums.rocket.chat/u/bradley.hilton)\
**Post date:** [June 13, 2018, 8:58pm UTC](https://forums.rocket.chat/t/problem-with-slack-import/1277/5 "2018-06-13T20:58:52Z")

</div>

That’s actually set when the import runs, according to the logic it was supposed to bypass the upload limit. @rodrigo.nascimento here is yet again another item of this, it needs to be fixed. [https://github.com/RocketChat/Rocket.Chat/issues/10278](https://github.com/RocketChat/Rocket.Chat/issues/10278)

---

<div class="post-metadata">

**Author:** ![aaron.ogle](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/aaron.ogle/32/15_2.png) [@aaron.ogle](https://forums.rocket.chat/u/aaron.ogle)\
**Post date:** [June 13, 2018, 9:49pm UTC](https://forums.rocket.chat/t/problem-with-slack-import/1277/6 "2018-06-13T21:49:24Z")

</div>

@pglimos please add your details here: [https://github.com/RocketChat/Rocket.Chat/issues/10278](https://github.com/RocketChat/Rocket.Chat/issues/10278) when this bug is closed it _should_ be resolved

---

<div class="post-metadata">

**Author:** ![rstockm](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/rstockm/32/284_2.png) [@rstockm](https://forums.rocket.chat/u/rstockm)\
**Post date:** [June 14, 2018, 8:31am UTC](https://forums.rocket.chat/t/problem-with-slack-import/1277/7 "2018-06-14T08:31:00Z")

</div>

+1 here - our import from Slack stopped after 3/4 of the channels.  
It’s too late for us now hence we already used the empty channels and reimporting/merging is not an option?

---

<div class="post-metadata">

**Author:** ![bradley.hilton](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/bradley.hilton/32/30_2.png) [@bradley.hilton](https://forums.rocket.chat/u/bradley.hilton)\
**Post date:** [June 14, 2018, 3:04pm UTC](https://forums.rocket.chat/t/problem-with-slack-import/1277/8 "2018-06-14T15:04:10Z")

</div>

Did it stop with the same error as above or a different error?
