Closed orangewolf closed 1 year ago
the error above indicates that a collection was not made from the attached csv.
I imported the file above into our staging site and did not have an issue with the collection. it, along with the 3 images were all created. I did have an issue however with the fileset of the 2nd child work being attached. I think this may be because it's a jpeg image type and the CreateDerivativesJob doesn't like that? although it's weird because the image does show up in the uv for the parent work. :thinking:
will look into that.
collection | parent_work |
---|---|
![]() |
![]() |
we just discussed this during the client meeting. lv does not expect to be using ".jpeg" files, so if that's the cause of this problem they're fine standardizing all files to be ".jpg". I'll change that file locally and retest.
randy/rachel will also test their "hite" and "howard" imports locally to see if they're still getting issues. if so, they will make those csv's and files available to us to test on our staging site.
I checked this morning that there's no diff between our main branch and randy's ss-changes branch, so code diff's shouldn't be the cause of our import differences. (as long as he's pulled since april 18, which was the date of the last code push) (@rtkuehn can you do another code pull of ss-changes
before your testing to make sure you have the latest code?)randy/rachel will also test their "hite" and "howard" imports locally to see if they're still getting issues. if so, they will make those csv's and files available to us to test on our staging site.
I checked this morning that there's no diff between our main branch and randy's ss-changes branch, so code diff's shouldn't be the cause of our import differences. (as long as he's pulled since april 18, which was the date of the last code push) (@rtkuehn can you do another code pull of ss-changes before your testing to make sure you have the latest code?)
I changed the ".jpeg" extension to ".jpg" on the second image, but that didn't work. I then downloaded a new image, saved it as a ".jpg" and attached it to the second child on the csv instead.
all files attachments and model relationships have now been formed
This can be merged with the "Create and Validate" bug (#106) since that has been identified as the source of the problem.This can be merged with the "Create and Validate" bug (#106 (closed)) since that has been identified as the source of the problem.
Updated bulkrax fixed issue
bug
(received this email from randy)
Hi Alisha,
We can now confirm that there's a "undefined method `id' for nil:NilClass" error popping up during the validation process. It occurred with two attempted bulkrax loads this morning. I was able to recreate the error with the enclosed csv/files. Below is the trace we received. Any help would be greatly appreciated.
Thanks, -Randy
file: rhino.zip
importer info
Work Entriesrhino003 1902 Complete 2022-04-19 13:23:40 UTC
rhino002 1901 Complete 2022-04-19 13:23:40 UTC
rhino001 1900 Complete 2022-04-19 13:23:40 UTC
Collection Entries
rhino000 1903 Complete 2022-04-19 13:23:40 UTC Name: rhino_test_collection_2 Admin set: admin_set/default User: rtkueh01@louisville.edu Frequency: PT0S Parser klass: Bulkrax::CsvParser Limit: Errors: Errored at: 2022-04-19 13:23:40 UTC Error: NoMethodError - undefined method `id' for nil:NilClass Parser fields: visibility: open rights_statement: http://rightsstatements.org/vocab/CNE/1.0/ override_rights_statement: 1 file_style: Specify a Path on the Server import_file_path: /home/deploy/Desktop/rhino/rhino_test_collection_2.csv total: 4 Field mapping: {"from"=>["administrative_note"]} {"from"=>["alternative_title"], "split"=>";"} {"from"=>["artificial_collection"], "split"=>";"} {"from"=>["biography_of_contributor"]} {"from"=>["building_date"], "split"=>";"} {"from"=>["cataloguing_note"]} {"from"=>["city"]} {"from"=>["code"], "split"=>";"} {"from"=>["collection_information"], "split"=>";"} {"from"=>["condition"], "split"=>";"} {"from"=>["contributor"], "split"=>";"} {"from"=>["contributor_description"]} {"from"=>["contributor_history"]} {"from"=>["contributor_role"], "split"=>";"} {"from"=>["county"]} {"from"=>["creator"], "split"=>";"} {"from"=>["creator_role"], "split"=>";"} {"from"=>["cultural_context"], "split"=>";"} {"from"=>["data_source"]} {"from"=>["date_original"]} {"from"=>["date_digital"]} {"from"=>["decade"], "split"=>";"} {"from"=>["description"]} {"from"=>["digitization_specification"]} {"from"=>["exhibit_history"]} {"from"=>["duration"]} {"from"=>["format"]} {"from"=>["honoree"], "split"=>";"} {"from"=>["source_identifier"], "source_identifier"=>true} {"from"=>["invoice_information"]} {"from"=>["issue"]} {"from"=>["keyword"], "split"=>";"} {"from"=>["language"], "split"=>";"} {"from"=>["language_script"], "split"=>";"} {"from"=>["license"], "split"=>";"} {"from"=>["location"], "split"=>";"} {"from"=>["location_of_contributor"], "split"=>";"} {"from"=>["location_of_honoree"], "split"=>";"} {"from"=>["material"], "split"=>";"} {"from"=>["measurement"]} {"from"=>["media_type"], "split"=>";"} {"from"=>["mesh"], "split"=>";"} {"from"=>["neighborhood"]} {"from"=>["object_location"]} {"from"=>["operating_area"], "split"=>";"} {"from"=>["ordering_information"]} {"from"=>["ornamentation"], "split"=>";"} {"from"=>["people_named"], "split"=>";"} {"from"=>["people_represented"], "split"=>";"} {"from"=>["photo_comment"]} {"from"=>["place_original"], "split"=>";"} {"from"=>["production"]} {"from"=>["repository"], "split"=>";"} {"from"=>["region"]} {"from"=>["related_image"], "split"=>";"} {"from"=>["related_resource"], "split"=>";"} {"from"=>["resource_date_created"]} {"from"=>["resource_query"], "split"=>";"} {"from"=>["object_type"], "split"=>";"} {"from"=>["rights_statement"], "split"=>";"} {"from"=>["searchable_text"]} {"from"=>["series"]} {"from"=>["source"], "split"=>";"} {"from"=>["story"]} {"from"=>["street"]} {"from"=>["style"], "split"=>";"} {"from"=>["subject"], "split"=>";"} {"from"=>["tab_heading"]} {"from"=>["table_of_contents"]} {"from"=>["technique"], "split"=>";"} {"from"=>["title"], "split"=>";"} {"from"=>["transcription_translation"]} {"from"=>["type_of_honoree"]} {"from"=>["volume"]} {"from"=>["parents"], "split"=>"(?-mix:\\s*[;|]\\s*)", "related_parents_field_mapping"=>true} {"from"=>["children"], "split"=>"(?-mix:\\s*[;|]\\s*)", "related_children_field_mapping"=>true}
error stack trace
Error Trace: ``` bash /home/deploy/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/bundler/gems/bulkrax-846b7eaa2894/app/jobs/bulkrax/import_collection_job.rb:31:in `add_user_to_permission_template!' /home/deploy/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/bundler/gems/bulkrax-846b7eaa2894/app/jobs/bulkrax/import_collection_job.rb:13:in `perform' /home/deploy/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activejob-5.2.7/lib/active_job/execution.rb:39:in `block in perform_now' /home/deploy/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-5.2.7/lib/active_support/callbacks.rb:109:in `block in run_callbacks' /home/deploy/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/sentry-raven-2.13.0/lib/raven/integrations/rails/active_job.rb:13:in `block (2 levels) in included' /home/deploy/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-5.2.7/lib/active_support/callbacks.rb:118:in `instance_exec' /home/deploy/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-5.2.7/lib/active_support/callbacks.rb:118:in `block in run_callbacks' /home/deploy/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/i18n-1.10.0/lib/i18n.rb:323:in `with_locale' /home/deploy/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activejob-5.2.7/lib/active_job/translation.rb:9:in `block (2 levels) in