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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Copilot API executeEve...
Copilot Studio
Suggested Answer

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

(1) ShareShare
ReportReport
Posted on by 2

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?

 

Thanks a lot in advance for any help or insights!

I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,969 Moderator on at
     
    Yes, this is a known issue, and in many cases the users must have Environment Maker. I do not know what role you gave them but try giving them environment maker.
     
    Now that sucks I know, but your other option is to intentionally make this available IN the PCF control instead of relying on it being available, because unless they have the correct permission they will not.
     
    You can essentially add this to your executeEvent call. Now whether you... hard code it... or you make it (so it can read it from somewhere), which will make it available to the user.
     
    Sorry for your issue :-( others are having that issue as well.

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 586

#2
chiaraalina Profile Picture

chiaraalina 170 Super User 2026 Season 1

#3
deepakmehta13a Profile Picture

deepakmehta13a 118

Last 30 days Overall leaderboard