相对URL和HTTP LS的问题 [英] Issue with Relative URL and HTTP LS

查看:117
本文介绍了相对URL和HTTP LS的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个HTTP LS,我试图从具有相对URL的数据集中调用。 如果我将字符串硬编码到相对URL中,DS可以正常工作,但是当我尝试动态生成值时则不行。

I have an HTTP LS that I'm trying to call from a data set that has a Relative URL.  The DS works fine if I hard code a string into Relative URL, but not when I try to dynamically produce the value.

这是动态代码,我尝试了很多种方法:

Here is the dynamic code, and I have tried a number of ways:

@ {concat('search-terms?filter [category] ​​=',dataset()。Category,'& page [ size] =',dataset()。PageSize,'& page [number] =',dataset()。CurrentPage)}

@{concat('search-terms?filter[category]=', dataset().Category,'&page[size]=', dataset().PageSize, '&page[number]=', dataset().CurrentPage)}




'预览数据'显示为灰色,Parse JSON文件返回此错误:

'Preview Data' is grayed out, and Parse JSON file returns this error:

无法将'relativeUrl'属性中的值转换为'System.String'类型。请确保有效负载结构和值正确

这真的感觉这不仅仅是一个不兼容的字符串类型。 我在过去(几​​个月前)使用了这个确切的设置,然后它运行良好。

感谢您的帮助,

Ward

推荐答案

Hello Ward,谢谢你的询问。



我最近在一个不相关的案例中看到了相同的错误消息。 在这种情况下,预览数据失败,但(当我再现时)管道运行正常。 您可以尝试运行管道并告诉我它是否因同样的错误而失败吗?

Hello Ward, and thank you for your inquiry.

I recently saw the same error message in an unrelated case.  In that case, the preview data was failing, but (when I reproduced) the pipeline ran okay.  Could you try running the pipeline and tell me whether it fails with the same error, please?

Martin Jaffer,Azure CXP社区工程师。

Martin Jaffer, Azure CXP Community Engineer.


这篇关于相对URL和HTTP LS的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆