Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Teams - Create a chat action error: Exception has been thrown by the target of an invocation.

Hi everyone,


i'm having a huge problem with a flow, the one you see in the image:



When I add a member (using a variable or writing the email address) and start the flow it always gives me this error in the Create a chat action:





Anyone know how to fix?


Thank you so much!!


Resolver III
Resolver III

Hi @Vale_2290 
* The user email address is from your organization or outside of your organization?

* What happens, if you set user email address as your email address?

* Have you tried with Manual trigger rather than triggering it from PowerApps?





Hi Murali,


the email address in from my organization.
I've altready tried all your suggestions but i always have the same error.



I tried quickly as you mentioned and it works fine for me. 

The test chat message also posted in the Teams. 

I used Manual trigger and you've used PowerApps trigger. 

Is that possible for you to export the Power Automate and share?








In my development environment it works, I exported the flow to a customer's environment and i have that error.
I tried to post a message as a Bot Flow and it works form my customer. As user it doesn't.
Could it be an authorization error?


I can't export the flow right now. 

Hi @Vale_2290 ,

While importing the Flow into another environment, how you have configured the connection property for Teams?

Please try to create new connection and try . 







Frequent Visitor

I've tried but always got the same error.

New Member

Dear all,

I'm experiencing the same problem and I didn't find any solution. Any update?

New Member

Same problem I am facing, no solution ? maybe how to input email address ???


New Member

Same issue on my side as well, looks like there's a bug with "Create a chat".

New Member

I'm having the same issue.  Tried testing it in different flows.  Any solutions?


I was having exactly the same issue but I managed to fix it. Basically I have a Flow that pulls in a Column of Email Addresses from a Share Point List and then, using a Compose action, creates a long string of the email addresses separated by a semi-colon. The 'Outputs' from the Compose action is then added to the 'Create a Chat' action within the 'Members to add' field;



This kept failing until I took a closer look at the Share Point List I was getting the data from;



Turns out there was a semi colon at the end of one of the email addresses. This meant 2 of the email addresses were separated by ';;' rather than just ';'. When I removed semi colon the Flow worked. Could there possibly be a character somewhere that is affecting your Flow?

New Member

Any update? Same issue here..

Frequent Visitor

I was seeing the same issue today. Here's what I found:

1. Don't include the email address of the connection you're using. For instance if your account is,  then make sure is NOT in the list of email addresses.

2. Don't include an extra semi-colon at the end of the list of invitees. This most likely happens when your concatonating a list of values together to generate an email address string. Update your flow to either NOT add the semi-colon every time, or remove it after you've found everything you want to find.

Not applicable

How to remove email address of the connection from the list of email addresses ?


My case, it's than when I'm in the @To of a typology of mail, i must create a conversation with all people on the @TO 

Thanks by advance


New Member

Our issue was the "Members to add" input needed to be the User Principal Name (UPN) instead of their email address. In our organization they are different. We used the "Get User Profile (V2)" action to retrieve the UPN and used that output to create the chat in the 'Members to add' input.

Thanks, this solved the problem

I was having the same issue as well and it was frustratingly difficult to resolve

But for the sake of other users, I shall attempt to explain.

Depending on your organization's policy, there could be differences in the UPN and email address. 

For the sake of illustration, I'll call

Names as Baba Yaga

Company domain JohnDoeltd


Username: byaga


Many of us have been using email and username but UPN (User Principal Name) works


Resolver III
Resolver III

Thanks for sharing  and definitely it will be helpful for someone. 


Hi Guys Please remove your name (whose trigger the flow) then try it is working

this works for me. Thanks.

Helpful resources


Celebrating the May Super User of the Month: Laurens Martens

  @LaurensM  is an exceptional contributor to the Power Platform Community. Super Users like Laurens inspire others through their example, encouragement, and active participation. We are excited to celebrated Laurens as our Super User of the Month for May 2024.   Consistent Engagement:  He consistently engages with the community by answering forum questions, sharing insights, and providing solutions. Laurens dedication helps other users find answers and overcome challenges.   Community Expertise: As a Super User, Laurens plays a crucial role in maintaining a knowledge sharing environment. Always ensuring a positive experience for everyone.   Leadership: He shares valuable insights on community growth, engagement, and future trends. Their contributions help shape the Power Platform Community.   Congratulations, Laurens Martens, for your outstanding work! Keep inspiring others and making a difference in the community!   Keep up the fantastic work!        

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started:   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!    

Welcome to the Power Automate Community

You are now a part of a fast-growing vibrant group of peers and industry experts who are here to network, share knowledge, and even have a little fun.   Now that you are a member, you can enjoy the following resources:   Welcome to the Community   News & Announcements: The is your place to get all the latest news around community events and announcements. This is where we share with the community what is going on and how to participate.  Be sure to subscribe to this board and not miss an announcement.   Get Help with Power Automate Forums: If you're looking for support with any part of Power Automate, our forums are the place to go. From General Power Automate forums to Using Connectors, Building Flows and Using Flows.  You will find thousands of technical professionals, and Super Users with years of experience who are ready and eager to answer your questions. You now have the ability to post, reply and give "kudos" on the Power Automate community forums. Make sure you conduct a quick search before creating a new post because your question may have already been asked and answered. Galleries: The galleries are full of content and can assist you with information on creating a flow in our Webinars and Video Gallery, and the ability to share the flows you have created in the Power Automate Cookbook.  Stay connected with the Community Connections & How-To Videos from the Microsoft Community Team. Check out the awesome content being shared there today.   Power Automate Community Blog: Over the years, more than 700 Power Automate Community Blog articles have been written and published by our thriving community. Our community members have learned some excellent tips and have keen insights on the future of process automation. In the Power Automate Community Blog, you can read the latest Power Automate-related posts from our community blog authors around the world. Let us know if you'd like to become an author and contribute your own writing — everything Power Automate-related is welcome.   Community Support: Check out and learn more about Using the Community for tips & tricks. Let us know in the Community Feedback  board if you have any questions or comments about your community experience. Again, we are so excited to welcome you to the Microsoft Power Automate community family. Whether you are brand new to the world of process automation or you are a seasoned Power Automate veteran - our goal is to shape the community to be your 'go to' for support, networking, education, inspiration and encouragement as we enjoy this adventure together.     Power Automate Community Team

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today!  

Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

Users online (3,663)