Zend_Gdata_Spreadsheets 给出“命名空间错误”;关于插入数据?

发布于 2024-08-23 03:13:03 字数 1104 浏览 2 评论 0原文

我正在尝试在我的 Google 电子表格中插入一行。虽然其他功能(例如计算行数、列数等)可以正常工作;插入一行会出现“命名空间错误”

An exception of type DOMException was thrown, but did not get caught during the execution of the request. You will find information provided by the exception along with a stack trace below.

Stack Trace
   1. at exception origin in ...\library\Zend\Gdata\App\Base.php line 220
   2. at Zend_Gdata_App_Base->getDOM([object DOMDocument], 1, NULL)
      in ...\library\Zend\Gdata\Spreadsheets\Extension\Custom.php line 64
   3. at Zend_Gdata_Spreadsheets_Extension_Custom->getDOM([object DOMDocument])
      in ...\library\Zend\Gdata\Spreadsheets\ListEntry.php line 77
   4. at Zend_Gdata_Spreadsheets_ListEntry->getDOM()
      in ...\library\Zend\Gdata\App\Base.php line 329
   5. at Zend_Gdata_App_Base->saveXML()
      in ...\library\Zend\Gdata\Spreadsheets.php line 336
   6. at Zend_Gdata_Spreadsheets->insertRow(array('xxx', 'xxx', 'Normal', 'Lease', 'xxx', 'test', 'test'), '0Aoxxx2c')  

I'm trying to insert a row in my Google spreadsheet. While other functions like counting rows, columns etc work fine; inserting a row gives me 'Namespace Error'.

An exception of type DOMException was thrown, but did not get caught during the execution of the request. You will find information provided by the exception along with a stack trace below.

Stack Trace
   1. at exception origin in ...\library\Zend\Gdata\App\Base.php line 220
   2. at Zend_Gdata_App_Base->getDOM([object DOMDocument], 1, NULL)
      in ...\library\Zend\Gdata\Spreadsheets\Extension\Custom.php line 64
   3. at Zend_Gdata_Spreadsheets_Extension_Custom->getDOM([object DOMDocument])
      in ...\library\Zend\Gdata\Spreadsheets\ListEntry.php line 77
   4. at Zend_Gdata_Spreadsheets_ListEntry->getDOM()
      in ...\library\Zend\Gdata\App\Base.php line 329
   5. at Zend_Gdata_App_Base->saveXML()
      in ...\library\Zend\Gdata\Spreadsheets.php line 336
   6. at Zend_Gdata_Spreadsheets->insertRow(array('xxx', 'xxx', 'Normal', 'Lease', 'xxx', 'test', 'test'), '0Aoxxx2c')  

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

放我走吧 2024-08-30 03:13:03

我知道这篇文章是不久前发布的,但我想无论如何我都会发布它,希望能节省其他人的时间和麻烦。

我也遇到了同样的问题,经过大量调试后发现,这是由于 XML 格式错误造成的。

如果您传递的键值中包含空格,则会触发此错误。

我通过删除所有可能给 XML 解析器带来麻烦的字符来解决这个问题。

希望有帮助。

I know this post is from a while back, but I figured I'd post anyway in the hopes of saving someone else time and headaches.

I was having this same problem and after a lot of debugging it turns out that it happens due to malformed XML.

If you're passing Key values with spaces in them, it will trigger this error.

I solved it by removing all the characters that might give the XML parser trouble.

Hope that helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文