web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Copilot API executeEvent – "Missing or invalid 'System.User.Language'" only occurs for normal users

(0) ShareShare
ReportReport
Posted on by 12

Hi everyone,

I’m integrating Copilot into a Power Apps Component Framework (PCF) control and triggering a topic via the executeEvent API, as described in the Microsoft documentation:

https://learn.microsoft.com/en-us/power-apps/developer/component-framework/reference/copilot/executeevent

I’m aware that this API is still in preview, but I wanted to check if anyone else has experienced this issue.

Everything works perfectly when I run it as an admin user — the topic is triggered successfully and returns a valid response.

However, when a normal user executes the exact same PCF control in the same sandbox environment, the Copilot API call fails with the following error:

{
  "ErrorMessage": "Missing or invalid assignment for variable 'System.User.Language'.",
  "ErrorCode": "MissingOrInvalidVariableAssignment"
}

 

Here’s what I’ve verified so far:

  • The same executeEvent call works fine for my admin account.

  • I tested multiple non-admin users (via impersonation) — they all have the same security role its not working for them

  • The environment is sandbox, not production.

  • I have installed the German language in the Copilot agent and even set the topic’s default language to German (de-DE).

 

It looks like the System.User.Language variable is missing or not initialized for the users when Copilot is called through the PCF executeEvent API, even though the language is installed and configured.

Is this a known limitation, or does it require specific privileges for System.User.Language to be resolved correctly?

Would explicitly including the language variable in the event payload be a supported workaround?

 

Thanks a lot in advance for any help or insights!

- Baris

 

 


 

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 337

#2
Sohaib Cheema Profile Picture

Sohaib Cheema 95 User Group Leader

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 82

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans