# خطأ في الترحيل مع question2answer.rb

**URL:** <https://meta.discourse.org/t/migration-error-with-question2answer-rb/110601>\
**Category:** Migration\
**Created:** [4 مارس 2019، 8:26ص UTC](https://meta.discourse.org/t/migration-error-with-question2answer-rb/110601 "2019-03-04T08:26:58Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![Ankhamax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ankhamax/32/52785_2.png) [@Ankhamax](https://meta.discourse.org/u/Ankhamax)\
**Post date:** [6 مارس 2019، 12:37م UTC](https://meta.discourse.org/t/migration-error-with-question2answer-rb/110601/20 "2019-03-06T12:37:39Z")

</div>

In the recent attempt to migrate small data from my old forum resulted in the following error when I used [modified importer script]([https://gist.github.com/[Communiteq](https://www.communiteq.com)](https://gist.github.com/%5BCommuniteq%5D(https://www.communiteq.com)) (formerly DiscourseHosting)/769eff2014d5482f0ab776de03dc3349) provided by @RGJ.

```
Loading existing groups...

Loading existing users...

Loading existing categories...

Loading existing posts...

Loading existing topics...

importing users

**Traceback** (most recent call last):

11: from script/import_scripts/question2answer.rb:601:in `&lt;main&gt;'

10: from /var/www/discourse/script/import_scripts/base.rb:47:in `perform'

9: from script/import_scripts/question2answer.rb:70:in `execute'

8: from script/import_scripts/question2answer.rb:89:in `import_users'

7: from /var/www/discourse/script/import_scripts/base.rb:881:in `batches'

6: from /var/www/discourse/script/import_scripts/base.rb:881:in `loop'

5: from /var/www/discourse/script/import_scripts/base.rb:882:in `block in batches'

4: from script/import_scripts/question2answer.rb:106:in `block in import_users'

3: from /var/www/discourse/script/import_scripts/base.rb:247:in `create_users'

2: from /var/www/discourse/script/import_scripts/base.rb:247:in `each'

1: from /var/www/discourse/script/import_scripts/base.rb:278:in `block in create_users'

/var/www/discourse/script/import_scripts/base.rb:866:in `print_status': **undefined method `to_f' for #&lt;Mysql2::Result:0x000056370b7c1f80&gt; (**  **NoMethodError** **)**

**Did you mean? to_s**

**to_a**

**to_h**

```

I wonder what seems to be causing this error? 😕

---

_[View the full topic](https://meta.discourse.org/t/migration-error-with-question2answer-rb/110601)._
