简体   繁体   English

配置阶段时遇到错误:在 python 转换、数据融合中运行自定义代码时出现“null”

[英]Error encountered while configuring the stage: 'null' while running custom code in python transform, data fusion

I was trying to write a custom python code in the python transform plugin in data fusion.我试图在数据融合中的 python 转换插件中编写自定义 python 代码。 I tried to run the example code in the documentation and even created sample data to match the documentation.我尝试运行文档中的示例代码,甚至创建了示例数据以匹配文档。 The plugin seems to throw this error- Error encountered while configuring the stage: 'null'.该插件似乎抛出了这个错误 - 配置阶段时遇到的错误:'null'。 Is this a bug in the plugin?这是插件中的错误吗?

I have faced the same issue and solved我遇到了同样的问题并解决了

all you have to do is: select the function description and then click on shift + Tab to make a back a little bit enter image description here您所要做的就是: select function 描述然后单击shift + Tab稍微返回一点在此处输入图像描述

OR you can just remove the function description, and it will work fine.或者您可以删除 function 描述,它会正常工作。

also, make sure that the last line emitter.emit(record) back a little bit, to be in the right space of function body另外,确保最后一行emitter.emit(record)向后一点,在function body 的正确空间

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Cloud Data Fusion 将数据从 SFTP 提取到 GCS 或 BigQuery 时出错 - Error while Data Ingestion from SFTP to GCS or BigQuery using Cloud Data Fusion 在 vscode 中配置 AWS 配置文件时出错 - Getting error while configuring AWS profile in vscode 为什么在运行以下 SQL 代码时出现错误 - Why am I getting an error while running the following SQL code 错误运行子进程时发生错误 cordova - ERROR An error occurred while running subprocess cordova 使用 Python 将 JSON 数据插入 DynamoDB 时出错 - Getting Error While Inserting JSON data to DynamoDB using Python 配置 WSO2 APIM Analytics 3.1.0 时出错 - Error while configuring WSO2 APIM Analytics 3.1.0 在 Firebase 函数中运行时出现 CORS 错误 - CORS error while running in Firebase functions AWS Glue 错误 - 运行 python shell 程序时提供的输入无效 - AWS Glue error - Invalid input provided while running python shell program 我在 vs 代码中运行 go 代码时遇到了这个问题 - i have had this problem while running go code in vs code 在 Visual Studio Code 上部署 Bicep 失败 - 解析值时遇到意外字符:r。路径“” - Deployment of Bicep fails on Visual Studio Code - Unexpected character encountered while parsing value: r. Path ''
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM