Skip to main content

Notifications

Copilot Studio - Calling Actions from Copilot S...
Answered

Unable to process template language condition - type null

(0) ShareShare
ReportReport
Posted on by

Afternoon, 

I've had a flow which has worked previously but for some reason is now returning an error message: 

"Unable to process template language expressions for action 'Condition' at line '0' and column '0': 'The template language function 'contains' expects its first argument 'collection' to be a dictionary (object), an array or a string. The provided value is of type 'Null'.'."

 

The flow posts and adaptive card in a Teams chat, collects the responses and then I use condition to decide on the best course of action depending on the responses. It's previously worked but whatever reason the condition part is now not working. 

I'd appreciate any help! Thank you

Matthew5_0-1677685801473.png

 

Categories:
  • Verified answer
    Matthew5 Profile Picture
    Matthew5 on at
    Re: Unable to process template language condition - type null

    Spoke to Microsoft support, the issue is due to posting as the Power Virtual Agent which is a preview feature. Posting as Flow Bot works. So I'll await the general availability of the feature before using in production! 

  • Matthew5 Profile Picture
    Matthew5 on at
    Re: Unable to process template language condition - type null

    I think it's definitely an adaptive card issue - no outputs are being returned now. Previously I was able to see the JSON outputs:

    Matthew5_0-1677749673218.png

    But now, it states click to download and upon downloading I get what looks like an error message:

    Matthew5_1-1677749916352.png

    Error message:

    Matthew5_2-1677750077401.png


    I'm at a bit of a loss, I haven't changed the adaptive card so I can't understand why it's now not returning any outputs. Has anyone experienced this before and could help please?

     

  • Matthew5 Profile Picture
    Matthew5 on at
    Re: Unable to process template language condition - type null

    I've been testing and tweaking it all afternoon/evening - it looks like the responses from the adaptive card aren't being collected, there's no outputs to pass to the condition. I'm just struggling to understand why it's failing now when it was working a week ago. Does anyone please have anything I can try to fix this?

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard

Featured topics