cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Update Planner Task Details Error- Complex values must only contain property annotations for existing properties.

Hello, 

 

Hoping someone has an answer to this issue I'm facing.  I have a Flow that had previously worked, where for a certain channel in our Teams group, when a new message was posted it would create a Planner Task, and then add a link on the task back to the original post in Teams. 

 

I had turned it off in the past (when it was working), and recently needed to turn it back on.  But now I'm running into an error when trying to add the link to the Teams post on the Planner Task.  I'm getting this error. 

 

The request is invalid:
One or more property annotations for property 'https%3A//teams%2Emicrosoft%2Ecom/l/message/19%3A207e13974178417cadae58e931983e9d' were found in the complex value without the property to annotate. Complex values must only contain property annotations for existing properties.

 

I've seen other posts with this same issue related to SharePoint file links https://powerusers.microsoft.com/t5/General-Power-Automate/On-new-SharePoint-items-create-Planner-ta...https://powerusers.microsoft.com/t5/Using-Flows/Complex-values-must-only-contain-property-annotation...), but can't figure out how to provide these solutions to links to Teams Posts. 

 

If I manually add a link to a Teams post in Planner, then using flow grab the link, it's formatted the same way that I'm trying it, so I'm not sure where the problem is.  Does anyone have any suggestions on how I could resolve this?  Here is how I'm constructing the link. 

 

Flow Error Planner Task Details Add Teams Link 01.pngFlow Error Planner Task Details Add Teams Link 02.png

 
7 REPLIES 7
Henry
Frequent Visitor

I have the same use case and the same issue. 

Henry
Frequent Visitor

I think I am going to work around with a short URL until a better solution comes up. Use Bit.ly short url action to create a short URL of your users' links: https://ms.flow.microsoft.com/en-us/blog/bitly-integration/.

Anonymous
Not applicable

Well, I've made some progress.  I found if I encoded the URL, then I stopped getting the error. 

Flow Error Planner Task Details Add Teams Link 03 - URL Encoding.png

 

 

 

 

But now I can't figure out how to get the link to correctly open the conversation in teams.  Using this setup when I click on the resulting link I get an error stating the conversation has been deleted. 

@Anonymous  I got it working by using Bit.ly like this:

bitly.PNG

This is what it looks like in Planner:

planner.PNG

The link will open chat history with the person specified in the flow. 

Anonymous
Not applicable

Is that Teams link to a specific conversation in a channel?  It appears to be linking to a person's chat. 

I actually have the exact same use case and problem.

 

I can have the link entered in the description, but it will not let me put the URL in an "attachment". Very frustrating.. I am guessing that it can't accept ":" or "@" symbols. I reduced the length of the URL to only the characters left of the "?" thinking that it might be a length issue, but I still received the same error.

Same here, it seems that the @ character triggers some parsing attempt.

I was able to make it work by only remplacing the @ character with %40 from the TEAM_CHANNEL_ID

 

https://teams.microsoft.com/l/message/TEAM_CHANNEL_ID/MESSAGE_ID?tenantId=TENANT_ID

 

In my case, TEAM_CHANNEL_ID was:

 

replace(variables('teamChannel'), '@', '%40')

 


@Anonymous I know it has been a while, but I think that you setted your ID at the wrong place... See the url template above.

EDIT:

To escape the '@' you could also use

 

encodeURIComponent(variables('teamChannel'))

 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (1,685)