cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
SebastienG
Level: Powered On

Error processing hashtag '#' in URI

Hi,

My goal is to create weekly planner tasks to remind me to check Azure reports. The task creation works fine but when I try to add the link to the Azure report, the task update fails.

This is because the link includes a hashtag: https://portal.azure.com/#blade/Microsoft_AAD_IAM/RiskySignInsBlade

 

I tried using encodeUriComponent('https://portal.azure.com/#blade/Microsoft_AAD_IAM/RiskySignInsBlade')

I also tried to encode the url directly: https://portal.azure.com/%23blade/Microsoft_AAD_IAM/RiskySignInsBlade

 

This is the error message I get:

The request is invalid:
Encountered a metadata reference property 'https%3A//portal%2Eazure%2Ecom/#blade/Microsoft_AAD_IAM/RiskySignInsBlade/' in a scope other than an entry. In OData, a property name with a '#' character indicates a reference into the metadata and is only supported for describing operations bound to an entry.

 

Is there a way to handle the # character in that particular case? Or a workaround, like getting another URL for Azure?

2 REPLIES 2
PowerBack19
Level 8

Re: Error processing hashtag '#' in URI

I just tested this with the "Create Task" action for "Planner" and had no issues. The task was created successfully with a URL within the Task title. And my URL contained a "#" (hashtag).

 

I did put the URL into a Compose step and used the Output of the Compose as an Input in the "Create Task" action.

SebastienG
Level: Powered On

Re: Error processing hashtag '#' in URI

This creates a task with the URL as the title of the task but clicking on it doesn't bring you to the URL, it opens the task itself and it's still not clickable within the task.

 

I was trying to add the link to the "Update Task Detail" so it's clickable and brings me directly to the report page.

Here is the error message in full:

{
  "error": {
    "code": "",
    "message": "The request is invalid:\r\nEncountered a metadata reference property 'https%3A//portal%2Eazure%2Ecom/#blade/Microsoft_AAD_IAM/RiskySignInsBlade/' in a scope other than an entry. In OData, a property name with a '#' character indicates a reference into the metadata and is only supported for describing operations bound to an entry.",
    "innerError": {
      "request-id": "7c2a9b5b-7a73-4ac5-b3a7-adb1ad180f8c",
      "date": "2020-01-03T09:09:51"
    }
  }
}

 

Flow1.png

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users online (5,147)