无法解析功能查询参数2:PARSE_ERROR: < id> &quot“ s&quot”在第1行,第2168列

发布于 2025-01-17 20:18:11 字数 392 浏览 4 评论 0原文

我的确切公式以前曾经工作过,没有更改任何内容,除了在我的主表中添加更多数据,其中“高级广告商”填充了以下错误:

“无法解析函数查询参数2:parse_error:carse_error:encounter” “ S”“在第1行,第2168列。”

请参阅下面的查询,没有任何意义,为什么它在我的Select语句的第2168个字符中遇到错误。我只尝试使用主数据表的一小部分示例,但我仍然会遇到相同的错误。

=QUERY('Premium Advertisers'!A2:G, "select * where A matches '" & "^" & textjoin("$|^", true, 'Premium Advertisers'!I2:I) & "$' ",0)

My exact formula below used to work previously and without changing anything except adding more data to my master table whereby 'Premium Advertisers' is populated, I get the following error:

"Unable to parse query string for Function QUERY parameter 2: PARSE_ERROR: Encountered " "s "" at line 1, column 2168."

Please see my query below, doesn't make sense why it's picking up an error in the 2168th character of my select statement. I've tried only using a small sample of my master data table and I still get the same error.

=QUERY('Premium Advertisers'!A2:G, "select * where A matches '" & "^" & textjoin("$|^", true, 'Premium Advertisers'!I2:I) & "
 ",0)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

天生の放荡 2025-01-24 20:18:11

您在那里获得了一个包含'的名称(Hill的宠物营养南非(PTY)Limited)。因此尝试:

=INDEX(SUBSTITUTE(QUERY(SUBSTITUTE('Premium Advertisers'!A2:G, "'", "♦"), 
 "where Col1 matches '^"&TEXTJOIN("$|^", 1, 
 SUBSTITUTE('Premium Advertisers'!I2:I, "'", "♦"))&"

“在此处输入图像描述”


更新

我们还需要跳过保留的reggex字符,例如括号(),带有 \(\)

=FILTER(A:D, REGEXMATCH(A:A, TEXTJOIN("|", 1, 
 SUBSTITUTE(SUBSTITUTE(I2:I, "(", "\("), ")", "\)"))))

", ), "♦", "'"))

“在此处输入图像描述”


更新

我们还需要跳过保留的reggex字符,例如括号(),带有\(\)

you got there a name which contains ' (Hill's Pet Nutrition South Africa (Pty) Limited). therefore try:

=INDEX(SUBSTITUTE(QUERY(SUBSTITUTE('Premium Advertisers'!A2:G, "'", "♦"), 
 "where Col1 matches '^"&TEXTJOIN("$|^", 1, 
 SUBSTITUTE('Premium Advertisers'!I2:I, "'", "♦"))&"

enter image description here


update

we also need to skip reserved regex characters like parenthesis () with \(\)

=FILTER(A:D, REGEXMATCH(A:A, TEXTJOIN("|", 1, 
 SUBSTITUTE(SUBSTITUTE(I2:I, "(", "\("), ")", "\)"))))

enter image description here

", ), "♦", "'"))

enter image description here


update

we also need to skip reserved regex characters like parenthesis () with \(\)

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文