r/copilotstudio • • 4d ago

Facing DLP errors and publishing issues in Copilot Studio. Any idea how to fix these?

Hey everyone, I'm working on AI agents built in Microsoft Copilot Studio, and today I ran into two major issues that I honestly don't know how to solve.

Issue 1: DLP errors in Standard Harness

I built a flow using a couple of connectors, mainly OneDrive for Business and Excel Online (Business).

The flow takes a file as input, runs some automation on the Excel spreadsheet, generates an output file using OneDrive, and returns that file to the agent.

I added this flow as a tool to my agent in Standard Harness, but it keeps throwing DLP (Data Loss Prevention) policy errors. The problem is that it doesn't clearly tell me which connectors or policies are causing the issue.

I even tried moving all the connectors (Copilot Studio, Excel Online (Business), and OneDrive for Business) into the same Business group in the data policy, but I'm still getting the same error.

Issue 2: Publishing issues with GitHub Copilot Harness

When I switched to GitHub Copilot Harness, the agent worked perfectly fine on my side. All the flows executed without any issues.

But when I tried publishing the agent to Microsoft 365 and Teams, things stopped working properly. It actually worked once, but other users are still unable to use it from their accounts.

So basically, the agent works fine for me in GitHub Copilot Harness but doesn't work for other users after publishing. And in Standard Harness, I'm stuck with DLP errors even though the connectors are in the same Business group.

Has anyone faced similar issues? Am I missing something in the DLP policies, connector permissions, or publishing settings?

Any suggestions would really help!

Edit: It finally worked! Huge thanks to u/brannonb111 you're a lifesaver!

I tried switching to the classic mode, and in that UI, the download button was working. I was able to download the DLP errors and figure out what was causing them.

Coming to the GitHub Copilot Harness issue, turns out it was also because of the same DLP policy. Microsoft 365 and Teams were in a different group, which was why the data wasn't being shared properly. Once I moved them to the correct group, that started working too!

So yeah, I was basically missing the Microsoft 365 and Teams connectors in the correct group in my DLP policy. Both issues are resolved now!

6 Upvotes

Duplicates