Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 10, 2026

Flow "Admin | Audit Logs | Load events from exported Audit Log CSV file" fails with "The response is not in a JSON format" when processing ~33k row CSVs. Unlimited parallel foreach operations exceed Power Automate response limits.

Changes

  • Added runtimeConfiguration.concurrency.repetitions: 25 to LoopFileRows foreach loop
  • Limits parallel CSV row processing to match pattern used in AdminAuditLogsSyncAuditLogsV2 flow

File modified: AdminAuditLogsLoadeventsfromexportedAuditLogCSVfil-A6875DF5-55E8-ED11-A7C6-002248081470.json

               "metadata": {
                 "operationMetadataId": "f3a0f35b-278e-446e-bfec-39654d6ea90e"
               },
-              "type": "Foreach"
+              "type": "Foreach",
+              "runtimeConfiguration": {
+                "concurrency": {
+                  "repetitions": 25
+                }
+              }
             }

Allows large audit log CSV imports to complete without triggering response format errors.

Original prompt

This section details on the original issue you should resolve

<issue_title>[CoE Starter Kit - BUG] Admin | Audit Logs | Load events from exported Audit Log CSV file - The response is not in a JSON format</issue_title>
<issue_description>### Does this bug already exist in our backlog?

  • I have checked and confirm this is a new bug.

Describe the issue

Image

When I upload the CSV file and run the flow, I receive the following error. The CSV contains about 33,000 rows, which does not exceed the 50,000-row limit. Other flows are working without any issues. 4.50.8 / 4.50.7 Both versions have the same error.

Expected Behavior

No response

What solution are you experiencing the issue with?

Core

What solution version are you using?

4.50.8

What app or flow are you having the issue with?

Admin | Audit Logs | Load events from exported Audit Log CSV file

What method are you using to get inventory and telemetry?

None

Steps To Reproduce

No response

Anything else?

No response</issue_description>

<agent_instructions>Investigate why the flow Admin | Audit Logs | Load events from exported Audit Log CSV file fails with ‘The response is not in a JSON format’ when importing a ~33k‑row CSV in Core v4.50.7/4.50.8. Other flows work. Check CSV parsing, file handling, large row processing, or any malformed rows causing the flow to return a non‑JSON response. Provide the fix so large audit CSV uploads run successfully.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Fix audit logs loading from CSV file not returning JSON Add concurrency control to Audit Log CSV import flow Feb 10, 2026
Copilot AI requested a review from AmarSaiRam February 10, 2026 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CoE Starter Kit - BUG] Admin | Audit Logs | Load events from exported Audit Log CSV file - The response is not in a JSON format

2 participants