Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error importing measures bundle for 2023 #214

Open
adrianlfns opened this issue Sep 21, 2023 · 0 comments
Open

Error importing measures bundle for 2023 #214

adrianlfns opened this issue Sep 21, 2023 · 0 comments

Comments

@adrianlfns
Copy link

Hello,

I'm trying to import the measure bundle version 2023,

I'm using the command:
bundle exec rake pophealth:download_update_install version=2023 RAILS_ENV=production

The commands reaches and 86% completion for importing the measure bundle and fails with the following error. Any ideas will be appreciated.

Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
/usr/local/rvm/gems/ruby-2.6.3/gems/bson-4.9.2/lib/bson/string.rb:49:in `encode'
/usr/local/rvm/gems/ruby-2.6.3/gems/bson-4.9.2/lib/bson/string.rb:49:in `put_string'
/usr/local/rvm/gems/ruby-2.6.3/gems/bson-4.9.2/lib/bson/string.rb:49:in `to_bson'
/usr/local/rvm/gems/ruby-2.6.3/gems/bson-4.9.2/lib/bson/hash.rb:42:in `put_hash'
/usr/local/rvm/gems/ruby-2.6.3/gems/bson-4.9.2/lib/bson/hash.rb:42:in `to_bson'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/protocol/serializers.rb:358:in `serialize'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/protocol/message.rb:306:in `block in serialize_fields'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/protocol/message.rb:294:in `each'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/protocol/message.rb:294:in `serialize_fields'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/protocol/message.rb:183:in `serialize'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/server/connection_base.rb:201:in `serialize'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/server/connection_base.rb:144:in `deliver'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/server/connection.rb:405:in `deliver'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/server/connection_base.rb:135:in `dispatch'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/operation/shared/executable.rb:58:in `block in dispatch_message'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/server/connection_pool.rb:571:in `with_connection'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/server.rb:422:in `with_connection'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/operation/shared/executable.rb:55:in `dispatch_message'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/operation/insert/command.rb:37:in `get_result'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/operation/shared/executable.rb:29:in `block (3 levels) in do_execute'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/operation/shared/response_handling.rb:87:in `add_server_diagnostics'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/operation/shared/executable.rb:28:in `block (2 levels) in do_execute'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/operation/shared/response_handling.rb:43:in `add_error_labels'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/operation/shared/executable.rb:27:in `block in do_execute'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/operation/shared/response_handling.rb:73:in `unpin_maybe'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/operation/shared/executable.rb:26:in `do_execute'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/operation/shared/executable_no_validate.rb:25:in `execute'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/operation/shared/write.rb:47:in `execute'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/collection.rb:548:in `block (2 levels) in insert_one'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/retryable.rb:293:in `legacy_write_with_retry'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/retryable.rb:202:in `write_with_retry'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/collection.rb:537:in `block in insert_one'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/client.rb:962:in `with_session'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongo-2.12.1/lib/mongo/collection.rb:535:in `insert_one'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongoid-6.4.5/lib/mongoid/query_cache.rb:182:in `insert_one_with_clear_cache'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongoid-6.4.5/lib/mongoid/persistable/creatable.rb:81:in `insert_as_root'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongoid-6.4.5/lib/mongoid/persistable/creatable.rb:27:in `block in insert'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongoid-6.4.5/lib/mongoid/persistable/creatable.rb:120:in `block (2 levels) in prepare_insert'
/usr/local/rvm/gems/ruby-2.6.3/gems/activesupport-5.2.4.3/lib/active_support/callbacks.rb:132:in `run_callbacks'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongoid-6.4.5/lib/mongoid/interceptable.rb:132:in `run_callbacks'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongoid-6.4.5/lib/mongoid/persistable/creatable.rb:119:in `block in prepare_insert'
/usr/local/rvm/gems/ruby-2.6.3/gems/activesupport-5.2.4.3/lib/active_support/callbacks.rb:98:in `run_callbacks'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongoid-6.4.5/lib/mongoid/interceptable.rb:132:in `run_callbacks'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongoid-6.4.5/lib/mongoid/persistable/creatable.rb:118:in `prepare_insert'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongoid-6.4.5/lib/mongoid/persistable/creatable.rb:23:in `insert'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongoid-6.4.5/lib/mongoid/persistable/savable.rb:23:in `save'
/usr/local/rvm/gems/ruby-2.6.3/gems/mongoid-6.4.5/lib/mongoid/persistable/savable.rb:44:in `save!'
/home/pophealth/popHealth/lib/cql_bundle_importer.rb:153:in `save_extracted_measure'
/home/pophealth/popHealth/lib/cql_bundle_importer.rb:137:in `block (2 levels) in unpack_and_store_measures'
/home/pophealth/popHealth/lib/cql_bundle_importer.rb:136:in `each'
/home/pophealth/popHealth/lib/cql_bundle_importer.rb:136:in `block in unpack_and_store_measures'
/home/pophealth/popHealth/lib/cql_bundle_importer.rb:125:in `each'
/home/pophealth/popHealth/lib/cql_bundle_importer.rb:125:in `each_with_index'
/home/pophealth/popHealth/lib/cql_bundle_importer.rb:125:in `unpack_and_store_measures'
/home/pophealth/popHealth/lib/cql_bundle_importer.rb:30:in `block in import'
/usr/local/rvm/gems/ruby-2.6.3/gems/rubyzip-1.3.0/lib/zip/file.rb:114:in `open'
/home/pophealth/popHealth/lib/cql_bundle_importer.rb:23:in `import'
/home/pophealth/popHealth/contrib/measure_dates.rb:77:in `import_bundle'
/home/pophealth/popHealth/lib/tasks/pophealth.rake:196:in `block (2 levels) in <top (required)>'
/usr/local/rvm/gems/ruby-2.6.3/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.6.3/bin/ruby_executable_hooks:24:in `eval'
/usr/local/rvm/gems/ruby-2.6.3/bin/ruby_executable_hooks:24:in `<main>'
Tasks: TOP => pophealth:download_update_install
(See full trace by running task with --trace)

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant