1

上传包含大约 1300 条记录的文件时收到错误消息。问题是我看不到哪条记录有问题,甚至看不到哪个字段。我在appspot.com 的日志屏幕中没有得到任何相关信息,错误的输出如下所示。有没有办法在不必手动分解数据的情况下找出哪个记录​​有问题 - 一个 cvs 文件?

这是错误日志:

[DEBUG    2012-04-30 12:27:03,932 bulkloader.py] [WorkerThread-9] [151-160] Transferred 10 entities in 1.2 seconds
[DEBUG    2012-04-30 12:27:03,933 adaptive_thread_pool.py] [WorkerThread-9] WorkerThread: exiting
[ERROR    2012-04-30 12:27:03,933 adaptive_thread_pool.py] Error in WorkerThread-8: tag should be a string; received None (a NoneType):
[DEBUG    2012-04-30 12:27:03,933 adaptive_thread_pool.py] Traceback (most recent call last):
  File "/local/scratch/btd1y09/google_appengine/google/appengine/tools/adaptive_thread_pool.py", line 176, in WorkOnItems
    status, instruction = item.PerformWork(self.__thread_pool)
  File "/local/scratch/btd1y09/google_appengine/google/appengine/tools/bulkloader.py", line 764, in PerformWork
    transfer_time = self._TransferItem(thread_pool)
  File "/local/scratch/btd1y09/google_appengine/google/appengine/tools/bulkloader.py", line 933, in _TransferItem
    self.content = self.request_manager.EncodeContent(self.rows)
  File "/local/scratch/btd1y09/google_appengine/google/appengine/tools/bulkloader.py", line 1394, in EncodeContent
    entity = loader.create_entity(values, key_name=key, parent=parent)
  File "/local/scratch/btd1y09/google_appengine/google/appengine/ext/bulkload/bulkloader_config.py", line 445, in create_entity
    entity = self.dict_to_entity(input_dict, self.bulkload_state)
  File "/local/scratch/btd1y09/google_appengine/google/appengine/ext/bulkload/bulkloader_config.py", line 147, in dict_to_entity
    self.__run_import_transforms(input_dict, instance, bulkload_state_copy)
  File "/local/scratch/btd1y09/google_appengine/google/appengine/ext/bulkload/bulkloader_config.py", line 252, in __run_import_transforms
    value = self.__dict_to_prop(transform, input_dict, bulkload_state)
  File "/local/scratch/btd1y09/google_appengine/google/appengine/ext/bulkload/bulkloader_config.py", line 207, in __dict_to_prop
    value = transform.import_transform(value)
  File "/local/scratch/btd1y09/google_appengine/google/appengine/ext/bulkload/bulkloader_parser.py", line 111, in __call__
    return self.method(*args, **kwargs)
  File "/local/scratch/btd1y09/google_appengine/google/appengine/api/datastore_types.py", line 802, in __init__
    ValidateString(tag, 'tag')
  File "/local/scratch/btd1y09/google_appengine/google/appengine/api/datastore_types.py", line 164, in ValidateString
    (name, value, typename(value)))
BadValueError: tag should be a string; received None (a NoneType):

[DEBUG    2012-04-30 12:27:03,964 bulkloader.py] Waiting for progress_thread to terminate...
[DEBUG    2012-04-30 12:27:03,975 bulkloader.py] [Thread-11] ProgressTrackerThread: exiting
[DEBUG    2012-04-30 12:27:03,979 bulkloader.py] ... done.
[INFO     2012-04-30 12:27:03,979 bulkloader.py] 1210 entities total, 0 previously transferred
[INFO     2012-04-30 12:27:03,979 bulkloader.py] 190 entities (323188 bytes) transferred in 4.5 seconds
[INFO     2012-04-30 12:27:03,979 bulkloader.py] Some entities not successfully transferred

我正在使用带有 bulkloader.yaml 的远程 api。

谢谢

4

0 回答 0