Giter Site home page Giter Site logo

matse / datashift Goto Github PK

View Code? Open in Web Editor NEW

This project forked from autotelik/datashift

0.0 0.0 0.0 230.02 MB

Comprehensive Excel and CSV import/export tools. Shift data between ActiveRecord databases, applications, and projects like Spree

Home Page: www.autotelik.co.uk

License: Other

Ruby 100.00%

datashift's People

Contributors

arr-ee avatar matse avatar swrobel avatar

Watchers

 avatar  avatar

datashift's Issues

undefined local variable or method `insistent_find_by_list'

be thor datashift_spree:load:products -d -v -i lib/assets/SpreeProductsWithImageUrls.xls
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
Verbose Mode
DataShift::Product starting upload from file: lib/assets/SpreeProductsWithImageUrls.xls



Loading from Excel file: lib/assets/SpreeProductsWithImageUrls.xls
["sku", "name", "price"]
["sku", "name", "shipping_category", "description", "available_on", "price", "cost_price", "product_properties", "taxons", "variants", "images"]
Dummy Run - Changes will be rolled back
Failed to process row [1] (["DEMO_001", "Demo Product for AR Loader", "default", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Categories>Paintings|Brand>WaterColour", "mime_type:jpeg,PDF,PNG", "https://raw.githubusercontent.com/autotelik/datashift_spree/master/spec/fixtures/images/DEMO_001_ror_bag.jpeg"])
#<NameError: undefined local variable or method `insistent_find_by_list' for #<DataShift::Populator:0x000000081b33e0>>
/home/user/.rvm/gems/ruby-2.1.1/bundler/gems/datashift-b423d76875ef/lib/datashift/populator.rb:165:in `insistent_belongs_to'
/home/user/.rvm/gems/ruby-2.1.1/bundler/gems/datashift-b423d76875ef/lib/datashift/populator.rb:88:in `assign'
/home/user/.rvm/gems/ruby-2.1.1/bundler/gems/datashift-b423d76875ef/lib/loaders/loader_base.rb:342:in `process'
/home/user/.rvm/gems/ruby-2.1.1/bundler/gems/datashift_spree-6c5290fa4fe9/lib/loaders/spree/product_loader.rb:178:in `process'
/home/user/.rvm/gems/ruby-2.1.1/bundler/gems/datashift-b423d76875ef/lib/loaders/excel_loader.rb:125:in `block (3 levels) in perform_excel_load'
/home/user/.rvm/gems/ruby-2.1.1/bundler/gems/datashift-b423d76875ef/lib/loaders/excel_loader.rb:113:in `each'
/home/user/.rvm/gems/ruby-2.1.1/bundler/gems/datashift-b423d76875ef/lib/loaders/excel_loader.rb:113:in `block (2 levels) in perform_excel_load'
/home/user/.rvm/gems/ruby-2.1.1/gems/spreadsheet-0.9.7/lib/spreadsheet/worksheet.rb:147:in `block in each'
/home/user/.rvm/gems/ruby-2.1.1/gems/spreadsheet-0.9.7/lib/spreadsheet/worksheet.rb:146:in `upto'
/home/user/.rvm/gems/ruby-2.1.1/gems/spreadsheet-0.9.7/lib/spreadsheet/worksheet.rb:146:in `each'
/home/user/.rvm/gems/ruby-2.1.1/gems/spreadsheet-0.9.7/lib/spreadsheet/excel/worksheet.rb:47:in `each'
/home/user/.rvm/gems/ruby-2.1.1/bundler/gems/datashift-b423d76875ef/lib/loaders/excel_loader.rb:84:in `each_with_index'
/home/user/.rvm/gems/ruby-2.1.1/bundler/gems/datashift-b423d76875ef/lib/loaders/excel_loader.rb:84:in `block in perform_excel_load'
/home/user/.rvm/gems/ruby-2.1.1/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
/home/user/.rvm/gems/ruby-2.1.1/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/database_statements.rb:221:in `within_new_transaction'
/home/user/.rvm/gems/ruby-2.1.1/gems/activerecord-4.0.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
/home/user/.rvm/gems/ruby-2.1.1/gems/activerecord-4.0.4/lib/active_record/transactions.rb:209:in `transaction'
/home/user/.rvm/gems/ruby-2.1.1/bundler/gems/datashift-b423d76875ef/lib/loaders/excel_loader.rb:82:in `perform_excel_load'
/home/user/.rvm/gems/ruby-2.1.1/bundler/gems/datashift-b423d76875ef/lib/loaders/loader_base.rb:114:in `perform_load'
/home/user/.rvm/gems/ruby-2.1.1/bundler/gems/datashift_spree-6c5290fa4fe9/lib/loaders/spree/spree_base_loader.rb:54:in `perform_load'
/home/user/.rvm/gems/ruby-2.1.1/bundler/gems/datashift_spree-6c5290fa4fe9/lib/loaders/spree/product_loader.rb:57:in `perform_load'
/home/user/.rvm/gems/ruby-2.1.1/bundler/gems/datashift_spree-6c5290fa4fe9/lib/thor/spree/products_images.thor:66:in `products'
/home/user/.rvm/gems/ruby-2.1.1/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
/home/user/.rvm/gems/ruby-2.1.1/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
/home/user/.rvm/gems/ruby-2.1.1/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
/home/user/.rvm/gems/ruby-2.1.1/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
/home/user/.rvm/gems/ruby-2.1.1/gems/thor-0.19.1/lib/thor/runner.rb:36:in `method_missing'
/home/user/.rvm/gems/ruby-2.1.1/gems/thor-0.19.1/lib/thor/command.rb:29:in `run'
/home/user/.rvm/gems/ruby-2.1.1/gems/thor-0.19.1/lib/thor/command.rb:126:in `run'
/home/user/.rvm/gems/ruby-2.1.1/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
/home/user/.rvm/gems/ruby-2.1.1/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
/home/user/.rvm/gems/ruby-2.1.1/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
/home/user/.rvm/gems/ruby-2.1.1/gems/thor-0.19.1/bin/thor:6:in `<top (required)>'
/home/user/.rvm/gems/ruby-2.1.1/bin/thor:23:in `load'
/home/user/.rvm/gems/ruby-2.1.1/bin/thor:23:in `<main>'
/home/user/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
/home/user/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
Excel loading stage complete - Dummy run so Rolling Back.

Processing Summary Report
>>>>>>>>>>>>>>>>>>>>>>>>>
Processed total of 1 entry
0 objects were succesfully processed.
WARNING : Check logs : 1 rows contained errors and 1 records NOT created.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.