【问题标题】:7127 code error - Zoho Reports Bulk Import API7127 代码错误 - Zoho Reports 批量导入 API
【发布时间】:2015-07-15 15:26:51
【问题描述】:

我需要帮助。使用 Zoho Report 批量导入 API 操作时出现以下错误:

代码错误 7127 - 100 超出了列的最大长度

此错误的任何解决方案?

要导入的文件类型:CSV 我使用 cURL 和 PHP 进行 POST 请求。

谢谢!

【问题讨论】:

    标签: php curl report zoho


    【解决方案1】:

    解决了。 CSV 文件出错。

    我的问题在这里:

    $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'CSV');
    $objWriter->setDelimiter(','); // here the problem
    $objWriter->setEnclosure(''); // here the problem
    $objWriter->setLineEnding("\r\n");
    $objWriter->setSheetIndex(0);
    

    解决办法:

    $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'CSV');
    $objWriter->setDelimiter(';'); // here the change
    $objWriter->setEnclosure('"'); // here the change
    $objWriter->setLineEnding("\r\n");
    $objWriter->setSheetIndex(0);
    

    问候

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-01-10
      • 2014-08-15
      • 2012-09-30
      • 2014-07-31
      • 2016-08-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多