{"action":"created","issue":{"url":"https://api.github.com/repos/CSSIP-AIR/PatentsView-API/issues/26","repository_url":"https://api.github.com/repos/CSSIP-AIR/PatentsView-API","labels_url":"https://api.github.com/repos/CSSIP-AIR/PatentsView-API/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/CSSIP-AIR/PatentsView-API/issues/26/comments","events_url":"https://api.github.com/repos/CSSIP-AIR/PatentsView-API/issues/26/events","html_url":"https://github.com/CSSIP-AIR/PatentsView-API/issues/26","id":225227041,"number":26,"title":"Problem with include_subentity_total_counts option","user":{"login":"crew102","id":11220793,"avatar_url":"https://avatars1.githubusercontent.com/u/11220793?v=3","gravatar_id":"","url":"https://api.github.com/users/crew102","html_url":"https://github.com/crew102","followers_url":"https://api.github.com/users/crew102/followers","following_url":"https://api.github.com/users/crew102/following{/other_user}","gists_url":"https://api.github.com/users/crew102/gists{/gist_id}","starred_url":"https://api.github.com/users/crew102/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crew102/subscriptions","organizations_url":"https://api.github.com/users/crew102/orgs","repos_url":"https://api.github.com/users/crew102/repos","events_url":"https://api.github.com/users/crew102/events{/privacy}","received_events_url":"https://api.github.com/users/crew102/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-04-29T02:12:47Z","updated_at":"2017-05-05T20:02:41Z","closed_at":null,"body":"Greetings -\r\n\r\nI'm seeing strange behavior from the API when I set `include_subentity_total_counts` equal to true and ask for a large set of fields. Specifically, I am getting a 404 error that says \"Field name is invalid: rawinventor_key_id,\" when I did not include `rawinventor_key_id` in my field list. \r\n\r\nThe two calls shown below differ only in that the first call has `include_subentity_total_counts` set to false, while the second has it set to true. The first call succeeds and the second call throws the 404 error I mentioned. \r\n\r\nFirst call (does not return an error. `include_subentity_total_counts` set to false):\r\n\r\n```\r\nPOST /api/patents/query HTTP/1.1\r\nHost: www.patentsview.org\r\nCache-Control: no-cache\r\nPostman-Token: 92c96fdd-eecf-a546-4ff2-56557d3ff250\r\n\r\n{\"q\":{\"patent_number\":\"5116621\"},\"f\":[\"app_country\",\"app_date\",\"app_number\",\"app_type\",\"appcit_app_number\",\"appcit_category\",\"appcit_date\",\"appcit_kind\",\"appcit_sequence\",\"assignee_city\",\"assignee_country\",\"assignee_first_name\",\"assignee_first_seen_date\",\"assignee_id\",\"assignee_last_name\",\"assignee_last_seen_date\",\"assignee_lastknown_city\",\"assignee_lastknown_country\",\"assignee_lastknown_latitude\",\"assignee_lastknown_location_id\",\"assignee_lastknown_longitude\",\"assignee_lastknown_state\",\"assignee_latitude\",\"assignee_location_id\",\"assignee_longitude\",\"assignee_organization\",\"assignee_sequence\",\"assignee_state\",\"assignee_total_num_inventors\",\"assignee_total_num_patents\",\"assignee_type\",\"cited_patent_category\",\"cited_patent_date\",\"cited_patent_kind\",\"cited_patent_number\",\"cited_patent_sequence\",\"cited_patent_title\",\"citedby_patent_category\",\"citedby_patent_date\",\"citedby_patent_kind\",\"citedby_patent_number\",\"citedby_patent_title\",\"cpc_category\",\"cpc_first_seen_date\",\"cpc_group_id\",\"cpc_group_title\",\"cpc_last_seen_date\",\"cpc_section_id\",\"cpc_sequence\",\"cpc_subgroup_id\",\"cpc_subgroup_title\",\"cpc_subsection_id\",\"cpc_subsection_title\",\"cpc_total_num_assignees\",\"cpc_total_num_inventors\",\"cpc_total_num_patents\",\"govint_contract_award_number\",\"govint_org_id\",\"govint_org_level_one\",\"govint_org_level_three\",\"govint_org_level_two\",\"govint_org_name\",\"govint_raw_statement\",\"inventor_city\",\"inventor_country\",\"inventor_first_name\",\"inventor_first_seen_date\",\"inventor_id\",\"inventor_last_name\",\"inventor_last_seen_date\",\"inventor_lastknown_city\",\"inventor_lastknown_country\",\"inventor_lastknown_latitude\",\"inventor_lastknown_location_id\",\"inventor_lastknown_longitude\",\"inventor_lastknown_state\",\"inventor_latitude\",\"inventor_location_id\",\"inventor_longitude\",\"inventor_sequence\",\"inventor_state\",\"inventor_total_num_patents\",\"ipc_action_date\",\"ipc_class\",\"ipc_classification_data_source\",\"ipc_classification_value\",\"ipc_first_seen_date\",\"ipc_last_seen_date\",\"ipc_main_group\",\"ipc_section\",\"ipc_sequence\",\"ipc_subclass\",\"ipc_subgroup\",\"ipc_symbol_position\",\"ipc_total_num_assignees\",\"ipc_total_num_inventors\",\"ipc_version_indicator\",\"nber_category_id\",\"nber_category_title\",\"nber_first_seen_date\",\"nber_last_seen_date\",\"nber_subcategory_id\",\"nber_subcategory_title\",\"nber_total_num_assignees\",\"nber_total_num_inventors\",\"nber_total_num_patents\",\"patent_abstract\",\"patent_average_processing_time\",\"patent_date\",\"patent_firstnamed_assignee_city\",\"patent_firstnamed_assignee_country\",\"patent_firstnamed_assignee_id\",\"patent_firstnamed_assignee_latitude\",\"patent_firstnamed_assignee_location_id\",\"patent_firstnamed_assignee_longitude\",\"patent_firstnamed_assignee_state\",\"patent_firstnamed_inventor_city\",\"patent_firstnamed_inventor_country\",\"patent_firstnamed_inventor_id\",\"patent_firstnamed_inventor_latitude\",\"patent_firstnamed_inventor_location_id\",\"patent_firstnamed_inventor_longitude\",\"patent_firstnamed_inventor_state\",\"patent_id\",\"patent_kind\",\"patent_num_cited_by_us_patents\",\"patent_num_claims\",\"patent_num_combined_citations\",\"patent_num_foreign_citations\",\"patent_num_us_application_citations\",\"patent_num_us_patent_citations\",\"patent_number\",\"patent_processing_time\",\"patent_title\",\"patent_type\",\"patent_year\",\"rawinventor_first_name\",\"rawinventor_last_name\",\"uspc_first_seen_date\",\"uspc_last_seen_date\",\"uspc_mainclass_id\",\"uspc_mainclass_title\",\"uspc_sequence\",\"uspc_subclass_id\",\"uspc_subclass_title\",\"uspc_total_num_assignees\",\"uspc_total_num_inventors\",\"uspc_total_num_patents\",\"wipo_field_id\",\"wipo_field_title\",\"wipo_sector_title\",\"wipo_sequence\"],\"o\":{\"include_subentity_total_counts\":false,\"matched_subentities_only\":true,\"page\":1,\"per_page\":25},\"s\":{}}\r\n```\r\n\r\nSecond call (returns an error. `include_subentity_total_counts` set to true):\r\n\r\n```\r\nPOST /api/patents/query HTTP/1.1\r\nHost: www.patentsview.org\r\nCache-Control: no-cache\r\nPostman-Token: b15853b5-da8a-1804-1661-71fc1cc46d6e\r\n\r\n{\"q\":{\"patent_number\":\"5116621\"},\"f\":[\"app_country\",\"app_date\",\"app_number\",\"app_type\",\"appcit_app_number\",\"appcit_category\",\"appcit_date\",\"appcit_kind\",\"appcit_sequence\",\"assignee_city\",\"assignee_country\",\"assignee_first_name\",\"assignee_first_seen_date\",\"assignee_id\",\"assignee_last_name\",\"assignee_last_seen_date\",\"assignee_lastknown_city\",\"assignee_lastknown_country\",\"assignee_lastknown_latitude\",\"assignee_lastknown_location_id\",\"assignee_lastknown_longitude\",\"assignee_lastknown_state\",\"assignee_latitude\",\"assignee_location_id\",\"assignee_longitude\",\"assignee_organization\",\"assignee_sequence\",\"assignee_state\",\"assignee_total_num_inventors\",\"assignee_total_num_patents\",\"assignee_type\",\"cited_patent_category\",\"cited_patent_date\",\"cited_patent_kind\",\"cited_patent_number\",\"cited_patent_sequence\",\"cited_patent_title\",\"citedby_patent_category\",\"citedby_patent_date\",\"citedby_patent_kind\",\"citedby_patent_number\",\"citedby_patent_title\",\"cpc_category\",\"cpc_first_seen_date\",\"cpc_group_id\",\"cpc_group_title\",\"cpc_last_seen_date\",\"cpc_section_id\",\"cpc_sequence\",\"cpc_subgroup_id\",\"cpc_subgroup_title\",\"cpc_subsection_id\",\"cpc_subsection_title\",\"cpc_total_num_assignees\",\"cpc_total_num_inventors\",\"cpc_total_num_patents\",\"govint_contract_award_number\",\"govint_org_id\",\"govint_org_level_one\",\"govint_org_level_three\",\"govint_org_level_two\",\"govint_org_name\",\"govint_raw_statement\",\"inventor_city\",\"inventor_country\",\"inventor_first_name\",\"inventor_first_seen_date\",\"inventor_id\",\"inventor_last_name\",\"inventor_last_seen_date\",\"inventor_lastknown_city\",\"inventor_lastknown_country\",\"inventor_lastknown_latitude\",\"inventor_lastknown_location_id\",\"inventor_lastknown_longitude\",\"inventor_lastknown_state\",\"inventor_latitude\",\"inventor_location_id\",\"inventor_longitude\",\"inventor_sequence\",\"inventor_state\",\"inventor_total_num_patents\",\"ipc_action_date\",\"ipc_class\",\"ipc_classification_data_source\",\"ipc_classification_value\",\"ipc_first_seen_date\",\"ipc_last_seen_date\",\"ipc_main_group\",\"ipc_section\",\"ipc_sequence\",\"ipc_subclass\",\"ipc_subgroup\",\"ipc_symbol_position\",\"ipc_total_num_assignees\",\"ipc_total_num_inventors\",\"ipc_version_indicator\",\"nber_category_id\",\"nber_category_title\",\"nber_first_seen_date\",\"nber_last_seen_date\",\"nber_subcategory_id\",\"nber_subcategory_title\",\"nber_total_num_assignees\",\"nber_total_num_inventors\",\"nber_total_num_patents\",\"patent_abstract\",\"patent_average_processing_time\",\"patent_date\",\"patent_firstnamed_assignee_city\",\"patent_firstnamed_assignee_country\",\"patent_firstnamed_assignee_id\",\"patent_firstnamed_assignee_latitude\",\"patent_firstnamed_assignee_location_id\",\"patent_firstnamed_assignee_longitude\",\"patent_firstnamed_assignee_state\",\"patent_firstnamed_inventor_city\",\"patent_firstnamed_inventor_country\",\"patent_firstnamed_inventor_id\",\"patent_firstnamed_inventor_latitude\",\"patent_firstnamed_inventor_location_id\",\"patent_firstnamed_inventor_longitude\",\"patent_firstnamed_inventor_state\",\"patent_id\",\"patent_kind\",\"patent_num_cited_by_us_patents\",\"patent_num_claims\",\"patent_num_combined_citations\",\"patent_num_foreign_citations\",\"patent_num_us_application_citations\",\"patent_num_us_patent_citations\",\"patent_number\",\"patent_processing_time\",\"patent_title\",\"patent_type\",\"patent_year\",\"rawinventor_first_name\",\"rawinventor_last_name\",\"uspc_first_seen_date\",\"uspc_last_seen_date\",\"uspc_mainclass_id\",\"uspc_mainclass_title\",\"uspc_sequence\",\"uspc_subclass_id\",\"uspc_subclass_title\",\"uspc_total_num_assignees\",\"uspc_total_num_inventors\",\"uspc_total_num_patents\",\"wipo_field_id\",\"wipo_field_title\",\"wipo_sector_title\",\"wipo_sequence\"],\"o\":{\"include_subentity_total_counts\":true,\"matched_subentities_only\":true,\"page\":1,\"per_page\":25},\"s\":{}}\r\n```"},"comment":{"url":"https://api.github.com/repos/CSSIP-AIR/PatentsView-API/issues/comments/299562396","html_url":"https://github.com/CSSIP-AIR/PatentsView-API/issues/26#issuecomment-299562396","issue_url":"https://api.github.com/repos/CSSIP-AIR/PatentsView-API/issues/26","id":299562396,"user":{"login":"CSSIP","id":5891791,"avatar_url":"https://avatars1.githubusercontent.com/u/5891791?v=3","gravatar_id":"","url":"https://api.github.com/users/CSSIP","html_url":"https://github.com/CSSIP","followers_url":"https://api.github.com/users/CSSIP/followers","following_url":"https://api.github.com/users/CSSIP/following{/other_user}","gists_url":"https://api.github.com/users/CSSIP/gists{/gist_id}","starred_url":"https://api.github.com/users/CSSIP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CSSIP/subscriptions","organizations_url":"https://api.github.com/users/CSSIP/orgs","repos_url":"https://api.github.com/users/CSSIP/repos","events_url":"https://api.github.com/users/CSSIP/events{/privacy}","received_events_url":"https://api.github.com/users/CSSIP/received_events","type":"User","site_admin":false},"created_at":"2017-05-05T20:02:41Z","updated_at":"2017-05-05T20:02:41Z","body":"Hi Chris, I am sorry for not being too responsive on the issues you post. We are busy adding a bunch of new data fields to the API, which involves updating the reporting DB as well. The API code on GitHub is exactly what runs on the server. And I concur about rawinventor_key_id.\r\n\r\nFrom: Chris Baker [mailto:notifications@github.com]\r\nSent: Friday, May 05, 2017 3:58 PM\r\nTo: CSSIP-AIR/PatentsView-API <PatentsView-API@noreply.github.com>\r\nCc: Subscribed <subscribed@noreply.github.com>\r\nSubject: Re: [CSSIP-AIR/PatentsView-API] Problem with include_subentity_total_counts option (#26)\r\n\r\n\r\nYeah, that's what I'm thinking too (re: rawinventor_key_id).\r\n\r\n—\r\nYou are receiving this because you are subscribed to this thread.\r\nReply to this email directly, view it on GitHub<https://github.com/CSSIP-AIR/PatentsView-API/issues/26#issuecomment-299561319>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AFnmz1NOpNu8RX5K31-Pkrsy7DMXr_noks5r239cgaJpZM4NMHkO>.\r\n"}}
{"actor":{"display_login":"CSSIP"}}