1

我有一个用于 SPSS Modeler 的 Python 脚本,它将遍历表中的所有行,执行一些基本的数据处理,并将每行输出导出到数据库中。我在下面的脚本中包含了 Python 的简化版本。

不幸的是,我收到以下错误pipeline_DB.run(results)

错误:AEQMJ0100E:第 75 行列上的脚本错误(服务器异常:java.lang.IllegalArgumentException)

在此脚本的 SPSS Legacy 版本中,我已将数据库写入模式设置为追加。我很难通过 Python 做同样的事情。

SPSS Modeler 旧版脚本

execute 'Pipeline DB table'
set 'Pipeline DB table'.delete_existing_rows = "False"

Python 脚本

results = []

for i in range(job_rows):
    jobid = job_rowset.getValueAt(i, 0); 

    # set the parameter values and caption of the graph, and the output name
    diagram.setParameterValue ('JOBID_Param', jobid)

    # run the database export node node
    pipeline_DB.run(results)
4

0 回答 0