view · edit · sidebar · attach · print · history

BAGxml changes and errors

01.11.2011 Debug SL-Update (XML)

Error

  • ch.ODDB.org Report - Error: SL-Update (XML) - 01/11/2011
Plugin: ODDB::BsvXmlPlugin
Error: TypeError
Message: Symbol as array index
@report: {:generic_type=>:unknown, :name_descr=>"Plv ", :pharmacode_bag=>"3817150", :swissmedic_no5_bag=>"00000", :deductible=>:deductible_g, :atc_class=>"V06DF", :name_base=>"Alth\303\251ra"}
Backtrace:
(druby://thinpower:51803) /var/www/oddb.org/src/plugin/swissindex.rb:245:in `[]'
(druby://thinpower:51803) /var/www/oddb.org/src/plugin/swissindex.rb:245:in `load_ikskey'
(druby://thinpower:51803) /usr/lib64/ruby/1.8/drb/drb.rb:1555:in `call'

Cause

  • The return value of SwissindexPharma#search_item becomes an Array not Hash
  • because there are two products with same Pharmacode but different Ean-Code

Solution

  • We take the higher Ean-Code

Commit

This is a screen-shot from Refdata showing the cause for the error. One Pharmacode, two EAN-Codes. Ugly. Attach:Athéra.jpg Δ

view · edit · sidebar · attach · print · history
Page last modified on November 02, 2011, at 09:22 AM