Help with adaptive card (bbdevdays Lab2): User identity token was missing or invalid

I'm trying to build a Constituent Update add-in, based on the Lab2 exercise we did in Dallas BBDevDays. I have all the components of the first half of the exercise created. The card is created, the Sky App is created, the Add-in link is created, the App is connected to my database, and the Add-in button appears where it's supposed to. But when the flyout appears, it's blank (no card contents). The Power Automate flow fails at the second step: “The user identity token was missing or invalid, or the token has expired, or was issued to a different application or environment”. I can't figure out what's not connecting. Any ideas?

Comments

  • Alex Wong
    Alex Wong Community All-Star
    Tenth Anniversary Kudos 5 Facilitator 4 bbcon 2025 Attendee Badge

    @Susan Walters
    You need to see what is being input to the action for validate user token and see (1) if you provided something and (2) where you are getting the dynamic content to provide to the validate user token action. Some screenshot of the run's trigger output and validate user token input will help

  • Ashley Moose
    Ashley Moose Blackbaud Employee
    Eighth Anniversary Kudos 5 First Reply Name Dropper

    @Susan Walters It may also be that the Blackbaud SKY Add-ins connection is pointing to the wrong environment. To update the connection, inside Power Automate go to Connections (if you don't see Connections in the left panel click …More), then in the upper right of the page search for Blackbaud SKY, click on your Blackbaud SKY Add-ins connection and choose Switch Account. Then re-authenticate to the environment where the add-in is located and test the card again.

  • @Ashley Moose It was a bit odd. It was pointing to the correct environment, but I still wound up “changing the connection” to reconnect it, and then it worked. But when I looked at it again this morning, it was broken again, and I had to re-connect again. Any idea why it won't stay connected correctly?

  • Ashley Moose
    Ashley Moose Blackbaud Employee
    Eighth Anniversary Kudos 5 First Reply Name Dropper

    @Susan Walters Glad to hear that worked but that is definitely odd. Are you working on other Flows that would be connecting to a different environment? The only thing I can think of is that the connection is being unintentionally changed to a different environment due to being used in a different Flow.

    Also, do you perhaps have more than one SKY Add-ins connection? If so it's possible the wrong is being used or changed since you can't tell from the connection itself where it's pointing to.

  • @Ashley Moose That's a thought. I'll check it tomorrow, and see if it does it again. I don't have any other flows. Could I delete all those connections and reset them? I do have some flows that are shared with me by PSG, but I didn't build those and haven't done any editing.

  • Ashley Moose
    Ashley Moose Blackbaud Employee
    Eighth Anniversary Kudos 5 First Reply Name Dropper

    @Susan Walters Yes you can delete any extras. If the connection is currently being used by a flow, you will need to update that flow to use the remaining connection. Before deleting a connection you can check if it is in use by viewing the connection Details and going to the Flows using this connection tab.

    None of the flows shared with you should be affected as the connections in those flows should only be able to be modified by the flow/connection owner.

  • Alex Wong
    Alex Wong Community All-Star
    Tenth Anniversary Kudos 5 Facilitator 4 bbcon 2025 Attendee Badge

    @Susan Walters
    if the flow (without any changes) is working (at times), then your flow and connection is working properly. (test this by going to the page you have the adaptive card meant to be display and see if it works for you and check the run history to make sure a successful run).

    there are “situation” i have encounter before where the user identify token passed to the flow has expired, which will result in the validation step to fail, the situation has to do with browser on RE NXT is left “idle", someone reloading the page will be able to see the adaptive card.

Categories