Transform XML - 由于请求实体太大,页面未显示

Transform XML - The page was not displayed because the request entity is too large

我正在尝试使用 Logic App 将 CSV 转换为 XML,在我遇到大小问题之前它一直运行良好,甚至不知道大小限制是多少。有人知道吗!?

基于MS DOC

Messages are "large" based on the service handling those messages. The exact size limit on large messages differs across Logic Apps and connectors. Both Logic Apps and connectors can't directly consume large messages, which must be chunked.
For each connector's message size limit, see the connector's specific technical details.

您可以尝试启用分块并将数据通过 HTTP 分块到逻辑应用程序,如下图所示。

有关分块过程的详细信息,请访问 Handle large messages with chunking in Azure Logic Apps

有关更多信息,请参阅此 SO 线程

据我所知,集成帐户可以处理的 XML 的大小限制为 50 MB。

过去,我常常使用 Azure Functions 将巨大的 XML 拆分成更小的块,然后在集成帐户中将它们一个一个地转换,但这不是一个通用的解决方案。

您还可以创建一个 Azure 函数来处理转换,而不是为此目的使用集成帐户。

您可以尝试另一种技巧 - 通过重命名架构文件中的节点,使 XML 标记更小(1 或 2 个字符长)。它可以大大减少 XML 的大小。这不是灵丹妙药,但在某些情况下可能会有所帮助。