为什么Azure搜索无法导入JSON Blob? [英] Why can't Azure Search import JSON blobs?

查看:81
本文介绍了为什么Azure搜索无法导入JSON Blob?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用以下配置导入数据时,Azure Cognitive Search返回以下错误:

When importing data using the configuration found below, Azure Cognitive Search returns the following error:

从数据源:"

Error detecting index schema from data source: ""

此配置是否不正确?文件存储在容器"example1"中.并在Blob文件夹"json"中.过去使用相同数据创建相同索引时没有错误,因此我不确定为什么现在不同.

Is this configured incorrectly? The files are stored in the container "example1" and in the blob folder "json". When creating the same index with the same data in the past there were no errors, so I am not sure why it is different now.

数据源:Azure Blob存储
名称:测试示例
要提取的数据:内容和元数据
解析模式:JSON
连接字符串:
DefaultEndpointsProtocol = https; AccountName = EXAMPLESTORAGEACCOUNT; AccountKey = EXAMPLEACCOUNTKEY;
容器名称:example1
Blob文件夹:json

Data Source: Azure Blob Storage
Name: test-example
Data to extract: Content and metadata
Parsing mode: JSON
Connection string:
DefaultEndpointsProtocol=https;AccountName=EXAMPLESTORAGEACCOUNT;AccountKey=EXAMPLEACCOUNTKEY;
Container name: example1
Blob folder: json

{
  "string1": "vaule1",
  "string2": "vaule2",
  "string3": "vaule3",
  "string4": "vaule4",
  "string5": "vaule5",
  "string6": "vaule6",
  "string7": "vaule7",
  "string8": "vaule8",
  "list1": [
    {
      "nested1": "value1",
      "nested2": "value2",
      "nested3": "value3",
      "nested4": "value4"
    }
  ],
  "FileLocation": null
}

此处是单击下一步:添加认知技能(可选)"时出现错误的屏幕图像.按钮:

Here is an image of the screen with the error when clicking "Next: Add cognitive skills (Optional)" button:

推荐答案

要弄清有两个问题:

1)门户网站中存在一个错误,该错误中没有显示实际的错误消息,因此我们将无用的空字符串"视为错误消息.一个修复程序正在进行中,应该在下周初推出.

1) There is a bug in the portal where the actual error message is not showing up for errors, hence we are observing the unhelpful empty string "" as an error message. A fix is on the way and should be rolled out early next week.

2)门户尝试从您的数据源中检测索引架构时出现错误.当错误消息只是"时,很难说是什么问题.我已经尝试过您的示例数据,并且可以很好地与导入一起使用.

2) There is an error when the portal attempts to detect index schema from your data source. It's hard to say what the problem is when the error message is just "". I've tried your sample data and it works fine with importing.

一旦显示错误消息的修复程序出来,我将更新帖子.同时(再次,我们在这里没有具体的错误字符串而盲目地进行检查),这里有一些要检查的事情:

I'll update the post once the fix for displaying the error message is out. In the meantime (again we're flying blind here without the specific error string) here are a few things to check:

1)确保您的防火墙规则允许门户网站从您的Blob存储中读取

1) Make sure your firewall rules allow the portal to read from your blob storage

2)确保JSON文件中没有多余的字符.检查空白字符是否为空白(您应该能够在VSCode中打开文件并进行检查).

2) Make sure there are no extra characters inside your JSON files. Check the whitespace charcters are whitespace (you should be able to open the file in VSCode and check).

更新:缺少错误消息的门户网站修补程序已部署.如果在导入过程中发生错误,您应该能够看到更具体的错误消息.

Update: The portal fix for the missing error messages has been deployed. You should be able to see a more specific error message should an error occur during import.

这篇关于为什么Azure搜索无法导入JSON Blob?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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