# Download my posts error

**URL:** https://meta.discourse.org/t/download-my-posts-error/28916
**Category:** Support
**Created:** [May 17, 2015, 3:59pm UTC](https://meta.discourse.org/t/download-my-posts-error/28916 "2015-05-17T15:59:37Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![tudorv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tudorv/32/2568_2.png) [@tudorv](https://meta.discourse.org/u/tudorv)
#### Post date: [May 17, 2015, 3:59pm UTC](https://meta.discourse.org/t/download-my-posts-error/28916/1 "2015-05-17T15:59:37Z")

</div>

Continuing the discussion from [ERROR with Download My Posts on v1.3.0.beta9](https://meta.discourse.org/t/error-with-download-my-posts-on-v1-3-0-beta9/28766):

> [@ERROR with Download My Posts on v1.3.0.beta9](https://meta.discourse.org/t/error-with-download-my-posts-on-v1-3-0-beta9/28766/1):
>
> Hi,
> 
> I have the next error when trying to “Download My Posts”, I recently upgrade to the latest version v1.3.0.beta9
> 
> ```
> Job exception: undefined method `category' for nil:NilClass
> a min ago
> !	
> Job exception: Wrapped NoMethodError: undefined method `category' for nil:NilClass
> a min ago
> 
> ```
> 
> The thing is some users are able to do it but not all of them, those who can not leave the above traces in the log
> 
> Is there any setting or config I am missing?
> 
> Thanks in advance

I am still getting this error and my forum runs on Discourse v1.3.0.beta9 +92.

Logs below:

```
Message

Job exception: undefined method `archetype' for nil:NilClass
Share Protect
Backtrace

/var/www/discourse/app/jobs/regular/export_csv_file.rb:150:in `get_user_archive_fields'
/var/www/discourse/app/jobs/regular/export_csv_file.rb:47:in `block in user_archive_export'
/var/www/discourse/app/jobs/regular/export_csv_file.rb:46:in `map'
/var/www/discourse/app/jobs/regular/export_csv_file.rb:46:in `user_archive_export'
/var/www/discourse/app/jobs/regular/export_csv_file.rb:30:in `execute'
/var/www/discourse/app/jobs/base.rb:153:in `block (2 levels) in perform'Share Protect
Env

current_db: default
current_hostname: macforum.ro
job: Jobs::ExportCsvFile
problem_db: default

opts:
  entity: user_archive
  user_id: 1
  current_site_id: default

```

…

```
Message

Job exception: Wrapped NoMethodError: undefined method `archetype' for nil:NilClass
Share Protect
Backtrace

/var/www/discourse/app/jobs/base.rb:178:in `perform'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/processor.rb:75:in `execute_job'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/processor.rb:52:in `block (2 levels) in process'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/chain.rb:127:in `call'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/chain.rb:127:in `block in invoke'
/var/www/discourse/lib/sidekiq/pausable.rb:81:in `call'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/chain.rb:129:in `block in invoke'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/server/active_record.rb:6:in `call'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/chain.rb:129:in `block in invoke'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/server/retry_jobs.rb:74:in `call'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/chain.rb:129:in `block in invoke'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/server/logging.rb:11:in `block in call'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/logging.rb:24:in `with_context'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/server/logging.rb:7:in `call'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/chain.rb:129:in `block in invoke'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/chain.rb:132:in `call'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/middleware/chain.rb:132:in `invoke'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/processor.rb:51:in `block in process'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/processor.rb:98:in `stats'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.2/lib/sidekiq/processor.rb:50:in `process'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `public_send'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:122:in `dispatch'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'Share Protect
Env

retry: false
queue: default
class: Jobs::ExportCsvFile
jid: b7c66b9c58a3d70d4124ef97
enqueued_at: 1431877965.7720158
current_hostname: macforum.ro

args:
  0: [object Object]

```

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 17, 2015, 8:35pm UTC](https://meta.discourse.org/t/download-my-posts-error/28916/2 "2015-05-17T20:35:49Z")

</div>

Anything to do here @techapj?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [May 18, 2015, 3:48am UTC](https://meta.discourse.org/t/download-my-posts-error/28916/3 "2015-05-18T03:48:52Z")

</div>

I am still unable to repro this case where post is not linked to a topic (which seems to be the cause for this error), however I simulated this exact error locally and sent a PR to fix:

[https://github.com/discourse/discourse/pull/3486](https://github.com/discourse/discourse/pull/3486)

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [May 18, 2015, 7:47am UTC](https://meta.discourse.org/t/download-my-posts-error/28916/4 "2015-05-18T07:47:16Z")

</div>

@tudorv can you update your instance to the latest version and verify if it’s working as expected now? (cc @raul_pareja, @tobiaseigen)

---

<div class="post-metadata">

### Author: ![tudorv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tudorv/32/2568_2.png) [@tudorv](https://meta.discourse.org/u/tudorv)
#### Post date: [May 18, 2015, 8:34am UTC](https://meta.discourse.org/t/download-my-posts-error/28916/5 "2015-05-18T08:34:42Z")

</div>

Yes, I’m on v1.3.0.beta9 +98 and it works fine now. Thanks!

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 18, 2015, 8:37am UTC](https://meta.discourse.org/t/download-my-posts-error/28916/6 "2015-05-18T08:37:32Z")

</div>


