我有一个Azure SQL数据库,我想通过使用Logic Apps和Azure SQL数据库来执行插入、更新、删除操作。是否需要有一个网关 在Logic -app中连接Azure SQL DB到Sqlserver连接器时,我有三个属性 1)Id 2)名称 3)部门。Azure SqlDB
**When HTTP Request is Received Code:**
{
"headers": {
"Accept": "application/json",
"Content-Type": "application/json"
},
"properties": {
"Department": {
"type": "string"
},
"Name": {
"type": "string"
},
"id": {
"type": "integer"
}
},
"type": "object"
在 sql 连接器中,它显示出 Bad request。Insert -row Connector
属性的主体元素为空
{ "Department": null, "Name": null, "id": null }
插入行连接器的输出 {
"statusCode": 400,
"headers": {
"Pragma": "no-cache",
"x-ms-request-id": "3332d425-3e10-4f04-b618-63f359168acc",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "DENY",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "false",
"Cache-Control": "no-store, no-cache",
"Date": "Mon, 04 May 2020 08:16:24 GMT",
"Content-Length": "468",
"Content-Type": "application/json",
"Expires": "-1"
},
"body": {
"status": 400,
"message": "Microsoft SQL: Cannot insert the value NULL into column 'id', table '.dbo.Details'; column does not allow nulls. INSERT fails.\r\nclientRequestId: 3332d425-3e10-4f04-b618-63f359168acc",
"error": {
"message": "Microsoft SQL: Cannot insert the value NULL into column 'id', table 'dbo.Details'; column does not allow nulls. INSERT fails."
},
"source": "sql-eus2.azconn-eus2.p.azurewebsites.net"
}
}
注:我没有使用任何门路请指导我完成以上任务如果你有什么资源请告诉我。
逻辑应用-定义。设计师
以前的错误历史。错误:
我在Payload schema中传递的数据。在这里输入图像描述