cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Super User
Super User

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.

Highlighted

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Kudoed Authors
Users online (9,487)