简体   繁体   English

Azure 数据工厂 V2 ML 批处理执行 Web 服务中 GlobalParameters 中的动态内容

[英]Dynamic content in GlobalParameters in Azure Data Factory V2 ML Batch execution web service

I'm trying to use Dynamic Content within the GlobalParameters on a ML Batch Execution module in Azure Data Factory V2.我正在尝试在 Azure 数据工厂 V2 中的 ML 批处理执行模块上的 GlobalParameters 中使用动态内容。

Seems everything I try comes up with the same errors.似乎我尝试的一切都出现了相同的错误。 Please see attached screen shots.请参阅随附的屏幕截图。

尝试做动态内容 globalParameters

Here is the only bit of documentation I can find on the subject ...这是我能找到的关于这个主题的唯一文件......

文件

It seems that this is just a bug.似乎这只是一个错误。 Whenever you click on Add Dynamic Content and click Finish it wipes out all your parameters setup manually and gives you an error about GlobalParameters cannot be a String type.每当您单击“添加动态内容”并单击“完成”时,它都会手动清除您的所有参数设置,并给出有关 GlobalParameters 不能是字符串类型的错误。

The secret is to setup your parameters manually.秘诀是手动设置参数。 Then use the Dynamic Content window just to allow you to choose your dynamic parts.然后使用动态内容窗口来允许您选择动态部分。 It will always say your syntax is wrong but don't worry.它总是会说你的语法错误,但别担心。 Just COPY your code and click CANCEL on the Dynamic Content window.只需复制您的代码并单击动态内容窗口上的取消。 Then paste the dynamic code into the manually created parameters.然后将动态代码粘贴到手动创建的参数中。

This will work!这会奏效! Hoever, if you accidentally click Add Dynamic Content and Click Finish, it will wipe all your parameters and you'll have to start again.但是,如果您不小心单击添加动态内容并单击完成,它将清除您的所有参数,您将不得不重新开始。

It works for me, just using @variables('input1') as parameter:它对我@variables('input1') ,只需使用@variables('input1')作为参数:

在此处输入图片说明

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM