braini75 / msproject_import

Redmine-Plugin: XML-Task-Importer for MS Project
9 stars 11 forks source link

First import fails #19

Open jpmoralesingenian opened 7 years ago

jpmoralesingenian commented 7 years ago

Importing a Gantter exported file with just two issues we get

ActiveRecord::RecordNotFound (Couldn't find Issue with id=0):
  activerecord (3.2.13) lib/active_record/relation/finder_methods.rb:343:in `find_one'
  activerecord (3.2.13) lib/active_record/relation/finder_methods.rb:314:in `find_with_ids'
  activerecord (3.2.13) lib/active_record/relation/finder_methods.rb:107:in `find'
  activerecord (3.2.13) lib/active_record/querying.rb:5:in `__send__'
  activerecord (3.2.13) lib/active_record/querying.rb:5:in `find'
  plugins/msproject_import/app/views/msproj_imp/import_results.html.erb:2:in `_plugins_msproject_import_app_views_msproj_imp_import_results_html_erb___1077115315_70246440291240'

And no issues are created. Redmine version 2.3.1.stable Ruby version 1.8.7 (x86_64-linux) Rails version 3.2.13 Environment production Database adapter MySQL proyecto.xml