OfficeDev / Copilot-for-M365-Samples

Microsoft Copilot for Microsoft 365 samples

Home Page:https://aka.ms/extendcopilotm365

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Northwind Inventory : ErrorCode 209 "Invoke Validation Failed. User Forbidden to perform action"

ddupre14 opened this issue · comments

Sample

msgext-northwind-inventory-ts

Description

I get 209 error "Invoke validation failed. User forbidden to perform action" when I click on "Update stock" or "Restock" buttons.

Steps to reproduce

Run the sample in local or dev environnements, get an adaptive card from the message extension and click on "Take action" button and "Update stock" or "Restock" button in the card.

Expected results

Normally, the card should refresh with the updated stock.

Actual results

Get error, you can see the error on the network tab :
image

Additional Info

Nothing to add

Apologies for the trouble @ddupre14

Have you made any changes to the app manifest? I've seen this issue before when attempting to implement an invoke handler in the Teams Activity Handler without defining a bot in the app manifest.

I just tested this on the tenant I have access to and the action buttons work as expected.

image

Sorry for my late reply, I was on holiday.

It now works if I deploy the solution on an Azure development environment, the error only seems to occur in local development.

Thank's