An error occurred importing the selected file with "XML ContextObject"

Report ID:2133728640
导入文献失败

[JavaScript Error: "XML Parsing Error: no root element found
Location: https://gxy1932582@stu.xjtu.edu.cn:****@dav.jianguoyun.com/dav/zotero/
Line Number 1, Column 1:" {file: "https://gxy1932582@stu.xjtu.edu.cn:****@dav.jianguoyun.com/dav/zotero/" line: 1}]

[JavaScript Error: "TypeError: NetworkError when attempting to fetch resource." {file: "chrome://zotero/content/fileInterface.js" line: 394}]

[JavaScript Error: "XML Parsing Error: syntax error
Location: moz-nullprincipal:{d12a1761-cd5a-43c2-b99b-41bc581cce0f}
Line Number 1, Column 1:" {file: "moz-nullprincipal:{d12a1761-cd5a-43c2-b99b-41bc581cce0f}" line: 1 column: 1 source: "FN Clarivate Analytics Web of Science"}]

[JavaScript Error: "XML Parsing Error: syntax error
Location: moz-nullprincipal:{1cf9574e-01a3-453b-8a00-3de75b45b27f}
Line Number 1, Column 1:" {file: "moz-nullprincipal:{1cf9574e-01a3-453b-8a00-3de75b45b27f}" line: 1 column: 1 source: "FN Clarivate Analytics Web of Science"}]

[JavaScript Error: "XML Parsing Error: syntax error
Location: moz-nullprincipal:{60e3601f-8022-4bdc-9456-80341c979045}
Line Number 1, Column 1:" {file: "moz-nullprincipal:{60e3601f-8022-4bdc-9456-80341c979045}" line: 1 column: 1 source: "FN Clarivate Analytics Web of Science"}]

[JavaScript Error: "XML Parsing Error: syntax error
Location: moz-nullprincipal:{af8087dc-5642-4136-b76a-107740545e32}
Line Number 1, Column 1:" {file: "moz-nullprincipal:{af8087dc-5642-4136-b76a-107740545e32}" line: 1 column: 1 source: "FN Clarivate Analytics Web of Science"}]

[JavaScript Error: "XML Parsing Error: syntax error
Location: moz-nullprincipal:{ba123774-c0df-4d5d-932d-15459178cea3}
Line Number 1, Column 1:" {file: "moz-nullprincipal:{ba123774-c0df-4d5d-932d-15459178cea3}" line: 1 column: 1 source: "FN Clarivate Analytics Web of Science"}]

[JavaScript Error: "DOMParser error: loading data into data store failed" {file: "chrome://zotero/content/xpcom/translate/src/translation/translate.js" line: 2771}]

[JavaScript Error: "Error: DOMParser error: loading data into data store failed" {file: "chrome://zotero/content/xpcom/translate/src/translation/translate.js" line: 2771}]

version => 6.0.26, platform => Win32, oscpu => Windows NT 10.0; WOW64, locale => en-US, appName => Zotero, appVersion => 6.0.26, extensions => Zutilo Utility for Zotero (3.10.0, extension), DOI Manager (1.4.2, extension), Zotero Citation Counts Manager (1.3.0, extension), Markdown Here (2.13.4, extension), ZoteroQuickLook (1.4.6, extension), Mdnotes for Zotero (0.2.3, extension), ZoteroPreview (0.1.6, extension), ZotFile (5.1.2, extension), Zotero PDF Preview (0.3.7, extension), Zotero IF (1.4.8, extension), Notero (0.4.6, extension), Jasminum (0.2.6, extension), Zotero LibreOffice Integration (6.0.4.SA.6.0.26, extension), Zotero Word for Windows Integration (6.0.3.SA.6.0.26, extension), Zotero Clear Field (0.0.1, extension), Del Item With Attachment (0.1.06, extension), Zotero PDF Translate (1.0.22, extension), Zotero Tag (0.3.0, extension), Zotero Better Notes (1.0.4, extension), Zotero Save with Tag (0.1.1, extension, disabled), Better BibTex for Zotero (6.7.79, extension, disabled)
  • We always need an example URL.
  • 比如这一个,我复制到剪贴板导入同样提示错误(txt格式,原url:https://www.webofscience.com/wos/alldb/full-record/WOS:000418983300011(overlay:export/exp)):

    FN Clarivate Analytics Web of Science
    VR 1.0
    PT J
    AU Sato, Yoichi
    Shinozaki, Keisuke
    Sawada, Kenichiro
    Sugita, Hiroyuki
    Mitsuda, Kazuhisa
    Yamasaki, Noriko Y.
    Nakagawa, Takao
    Tsunematsu, Shoji
    Otsuka, Kiyomi
    Kanao, Kenichi
    Yoshida, Seiji
    Narasaki, Katsuhiro
    TI Outgas analysis of mechanical cryocoolers for long lifetime
    SO CRYOGENICS
    VL 88
    BP 70
    EP 77
    DI 10.1016/j.cryogenics.2017.10.001
    DT Article
    PD DEC 2017
    PY 2017
    RI Mitsuda, Kazuhisa/C-2649-2008; Yamasaki, Noriko Y./C-2252-2008
    OI Yamasaki, Noriko Y./0000-0003-4885-5537
    TC 8
    ZR 0
    ZA 0
    Z8 0
    ZS 0
    ZB 0
    Z9 8
    SN 0011-2275
    EI 1879-2235
    DA 2018-01-11
    UT WOS:000418983300011
    ER

    EF

    我从web of science批量导出文献,格式选过ris,txt,ciw,都不行,导入文件会提示:“An error occurred importing the selected file with "XML ContextObject”。包括我从zotero导出一篇文献为bib格式,再重新导入进去,也不能成功,会创建空的分类文件夹。
  • 跟升级了win11系统又退回win10有关系吗
  • Hi,

    我尝试了您给出的“从剪贴板导入”的例子,但我无法复现您的问题。如果您在使用自己的 WebDAV 服务,请检查一下它是否正常运行?因为我看到错误日志中有

    [JavaScript Error: "TypeError: NetworkError when attempting to fetch resource." {file: "chrome://zotero/content/fileInterface.js" line: 394}]
  • 这次报错是这样:
    报告ID:142188169

    [JavaScript Error: "XML Parsing Error: syntax error
    Location: moz-nullprincipal:{9d3aace0-b8a4-46ec-a336-31da3635df64}
    Line Number 1, Column 1:" {file: "moz-nullprincipal:{9d3aace0-b8a4-46ec-a336-31da3635df64}" line: 1 column: 1 source: "FN Clarivate Analytics Web of Science"}]

    [JavaScript Error: "XML Parsing Error: syntax error
    Location: moz-nullprincipal:{ba950b39-e840-4e0e-9fae-d6654e83634b}
    Line Number 1, Column 1:" {file: "moz-nullprincipal:{ba950b39-e840-4e0e-9fae-d6654e83634b}" line: 1 column: 1 source: "FN Clarivate Analytics Web of Science"}]

    [JavaScript Error: "DOMParser error: loading data into data store failed" {file: "chrome://zotero/content/xpcom/translate/src/translation/translate.js" line: 2771}]

    [JavaScript Error: "Error: DOMParser error: loading data into data store failed" {file: "chrome://zotero/content/xpcom/translate/src/translation/translate.js" line: 2771}]

    [JavaScript Error: "XML Parsing Error: syntax error
    Location: moz-nullprincipal:{9e5ec210-3db0-4a30-b5f9-3f76db8165dd}
    Line Number 1, Column 1:" {file: "moz-nullprincipal:{9e5ec210-3db0-4a30-b5f9-3f76db8165dd}" line: 1 column: 1 source: "FN Clarivate Analytics Web of Science"}]

    [JavaScript Error: "XML Parsing Error: syntax error
    Location: moz-nullprincipal:{1f6b7340-81ed-4b13-965c-5b0806a82296}
    Line Number 1, Column 1:" {file: "moz-nullprincipal:{1f6b7340-81ed-4b13-965c-5b0806a82296}" line: 1 column: 1 source: "FN Clarivate Analytics Web of Science"}]

    [JavaScript Error: "XML Parsing Error: syntax error
    Location: moz-nullprincipal:{1e86b873-3255-4a83-9333-35b52bc08395}
    Line Number 1, Column 1:" {file: "moz-nullprincipal:{1e86b873-3255-4a83-9333-35b52bc08395}" line: 1 column: 1 source: "FN Clarivate Analytics Web of Science"}]

    [JavaScript Error: "XML Parsing Error: syntax error
    Location: moz-nullprincipal:{0f9c07e9-9a93-49fa-a1fd-41e4d4004832}
    Line Number 1, Column 1:" {file: "moz-nullprincipal:{0f9c07e9-9a93-49fa-a1fd-41e4d4004832}" line: 1 column: 1 source: "FN Clarivate Analytics Web of Science"}]

    [JavaScript Error: "XML Parsing Error: syntax error
    Location: moz-nullprincipal:{08246b94-906a-42b0-8151-381fbefbf29f}
    Line Number 1, Column 1:" {file: "moz-nullprincipal:{08246b94-906a-42b0-8151-381fbefbf29f}" line: 1 column: 1 source: "FN Clarivate Analytics Web of Science"}]

    [JavaScript Error: "DOMParser error: loading data into data store failed" {file: "chrome://zotero/content/xpcom/translate/src/translation/translate.js" line: 2771}]

    [JavaScript Error: "Error: DOMParser error: loading data into data store failed" {file: "chrome://zotero/content/xpcom/translate/src/translation/translate.js" line: 2771}]

    [JavaScript Error: "XML Parsing Error: syntax error
    Location: moz-nullprincipal:{627d0fc5-599f-4769-951f-a5f615caa2d7}
    Line Number 1, Column 1:" {file: "moz-nullprincipal:{627d0fc5-599f-4769-951f-a5f615caa2d7}" line: 1 column: 1 source: "FN Clarivate Analytics Web of Science"}]

    [JavaScript Error: "XML Parsing Error: syntax error
    Location: moz-nullprincipal:{2eeb0790-1a61-42e6-98bc-544eb35e2d3c}
    Line Number 1, Column 1:" {file: "moz-nullprincipal:{2eeb0790-1a61-42e6-98bc-544eb35e2d3c}" line: 1 column: 1 source: "FN Clarivate Analytics Web of Science"}]

    [JavaScript Error: "XML Parsing Error: syntax error
    Location: moz-nullprincipal:{afa699dc-d3d7-447c-9787-a1edbce70067}
    Line Number 1, Column 1:" {file: "moz-nullprincipal:{afa699dc-d3d7-447c-9787-a1edbce70067}" line: 1 column: 1 source: "FN Clarivate Analytics Web of Science"}]

    [JavaScript Error: "XML Parsing Error: syntax error
    Location: moz-nullprincipal:{4cebac7d-259c-487a-8f6d-635827580291}
    Line Number 1, Column 1:" {file: "moz-nullprincipal:{4cebac7d-259c-487a-8f6d-635827580291}" line: 1 column: 1 source: "FN Clarivate Analytics Web of Science"}]

    [JavaScript Error: "XML Parsing Error: syntax error
    Location: moz-nullprincipal:{5e359e2e-8025-437d-aadd-1abb08667f3e}
    Line Number 1, Column 1:" {file: "moz-nullprincipal:{5e359e2e-8025-437d-aadd-1abb08667f3e}" line: 1 column: 1 source: "FN Clarivate Analytics Web of Science"}]

    [JavaScript Error: "DOMParser error: loading data into data store failed" {file: "chrome://zotero/content/xpcom/translate/src/translation/translate.js" line: 2771}]

    [JavaScript Error: "Error: DOMParser error: loading data into data store failed" {file: "chrome://zotero/content/xpcom/translate/src/translation/translate.js" line: 2771}]

    [JavaScript Error: "XML Parsing Error: syntax error
    Location: moz-nullprincipal:{bf98850c-e534-41f6-9d37-8a8f772fb881}
    Line Number 1, Column 1:" {file: "moz-nullprincipal:{bf98850c-e534-41f6-9d37-8a8f772fb881}" line: 1 column: 1 source: "FN Clarivate Analytics Web of Science"}]

    [JavaScript Error: "XML Parsing Error: syntax error
    Location: moz-nullprincipal:{a6390168-fa70-4b5b-a431-f928cb3044f1}
    Line Number 1, Column 1:" {file: "moz-nullprincipal:{a6390168-fa70-4b5b-a431-f928cb3044f1}" line: 1 column: 1 source: "FN Clarivate Analytics Web of Science"}]

    [JavaScript Error: "XML Parsing Error: syntax error
    Location: moz-nullprincipal:{a2f63304-adc5-4eaf-8a7c-57fc68c04d91}
    Line Number 1, Column 1:" {file: "moz-nullprincipal:{a2f63304-adc5-4eaf-8a7c-57fc68c04d91}" line: 1 column: 1 source: "FN Clarivate Analytics Web of Science"}]

    [JavaScript Error: "XML Parsing Error: syntax error
    Location: moz-nullprincipal:{d2981865-fa9f-49fd-a137-981d9dbca468}
    Line Number 1, Column 1:" {file: "moz-nullprincipal:{d2981865-fa9f-49fd-a137-981d9dbca468}" line: 1 column: 1 source: "FN Clarivate Analytics Web of Science"}]

    [JavaScript Error: "XML Parsing Error: syntax error
    Location: moz-nullprincipal:{d835e9ba-d106-4371-827e-3b6639e947b7}
    Line Number 1, Column 1:" {file: "moz-nullprincipal:{d835e9ba-d106-4371-827e-3b6639e947b7}" line: 1 column: 1 source: "FN Clarivate Analytics Web of Science"}]

    [JavaScript Error: "DOMParser error: loading data into data store failed" {file: "chrome://zotero/content/xpcom/translate/src/translation/translate.js" line: 2771}]

    [JavaScript Error: "Error: DOMParser error: loading data into data store failed" {file: "chrome://zotero/content/xpcom/translate/src/translation/translate.js" line: 2771}]

    version => 6.0.26, platform => Win32, oscpu => Windows NT 10.0; WOW64, locale => zh-CN, appName => Zotero, appVersion => 6.0.26, extensions => Zutilo Zotero 工具箱 (3.10.0, extension), DOI Manager (1.4.2, extension), Zotero Citation Counts Manager (1.3.0, extension), Markdown Here (2.13.4, extension), ZoteroQuickLook (1.4.6, extension), Mdnotes for Zotero (0.2.3, extension), ZoteroPreview (0.1.6, extension), ZotFile (5.1.2, extension), Zotero PDF Preview (0.3.7, extension), Zotero IF (1.4.8, extension), Notero (0.4.6, extension), Jasminum (0.2.6, extension), Zotero LibreOffice Integration (6.0.4.SA.6.0.26, extension), Zotero Word for Windows Integration (6.0.3.SA.6.0.26, extension), Zotero Clear Field (0.0.1, extension), Del Item With Attachment (0.1.06, extension), Zotero PDF Translate (1.0.22, extension), Zotero Tag (0.3.0, extension), Zotero Better Notes (1.0.4, extension), Zotero Save with Tag (0.1.1, extension, disabled), Better BibTex for Zotero (6.7.79, extension, disabled)

  • 我导入了一个txt文本,然后报了上述错误,webdev验证服务器正常,文本文件内容为:
    FN Clarivate Analytics Web of Science
    VR 1.0
    PT J
    AU Sato, Y
    Shinozaki, K
    Sawada, K
    Sugita, H
    Mitsuda, K
    Yamasaki, NY
    Nakagawa, T
    Tsunematsu, S
    Otsuka, K
    Kanao, K
    Yoshida, S
    Narasaki, K
    AF Sato, Yoichi
    Shinozaki, Keisuke
    Sawada, Kenichiro
    Sugita, Hiroyuki
    Mitsuda, Kazuhisa
    Yamasaki, Noriko Y.
    Nakagawa, Takao
    Tsunematsu, Shoji
    Otsuka, Kiyomi
    Kanao, Kenichi
    Yoshida, Seiji
    Narasaki, Katsuhiro
    TI Outgas analysis of mechanical cryocoolers for long lifetime
    SO CRYOGENICS
    RI Mitsuda, Kazuhisa/C-2649-2008; Yamasaki, Noriko Y./C-2252-2008
    OI Yamasaki, Noriko Y./0000-0003-4885-5537
    SN 0011-2275
    EI 1879-2235
    PD DEC
    PY 2017
    VL 88
    BP 70
    EP 77
    DI 10.1016/j.cryogenics.2017.10.001
    UT WOS:000418983300011
    ER

    EF
  • 我使用另一台电脑,同样的同步设置,可以导入
  • 我找到问题了,开启了beter bibtex for zotero插件后就可以导入了
  • edited June 15, 2023
    这里的问题和 XML ContextObject import translator 无关。错误出现在 Web of Science Tagged 这个 import translator. 它出错后自动 fallback 到其他文件类型的转换器,这当然不会成功,所以最终看到的是 XML ContextObject 的错误,因为它是最后的尝试。

    Web of Science Tagged 格式的导入出现问题在最后一行 EF[空格]. 如果没有行尾的空格字符,导入是没有问题的。

    这个导入转换器的容错能力可能不够强。接下来我会尝试排除这个问题。非常感谢你的反馈!
  • 我做了一些更正: https://github.com/zotero/translators/pull/3053

    更新后的转换器可以处理您遇到的“行尾空格”问题,但目前我不清楚这是不是您使用过程中故障的唯一来源。

    如果您能继续关注、提供反馈或者测试,将会带来很大帮助。谢谢指教。
  • 目前禁用了插件beter bibtex for zotero后,也能够正常导入之前的测试txt文件了,后续我在使用中会再做些测试,感谢你们的高效运维!
  • <3

    WoS tagged format 这个转换器还有别的问题。我有空的时候会继续修改。
  • Hello

    这个转换器目前已经更新,Zotero Connector 应可以自动获取并使用它。如果没有更新,请进入 Zotero Connector 的设置 -> Advanced -> Update translators.
Sign In or Register to comment.