web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / URL was not parsed due...
Power Automate
Unanswered

URL was not parsed due to an ODataUnrecognizedPathException. Resource not found for the segment provided in the URL.

(0) ShareShare
ReportReport
Posted on by 78

Hi All,

 

I want to copy the field new_contactpersoonid from one order to another order. It is a lookup to the tabel contacts in Dataverse.

I use this code to check if the field is empty:

if(empty(outputs('De_order_ophalen')?['body/_new_contactpersoonid_value']), '', concat('/contacts/', outputs('De_order_ophalen')?['body/_new_contactpersoonid_value']))

 

I get this error:

URL was not parsed due to an ODataUnrecognizedPathException. Resource not found for the segment provided in the URL.

 

Can anyone help me fix this?

 

Jan

 

Categories:
I have the same question (0)
  • Verified answer
    Linn Zaw Win Profile Picture
    2,996 on at

    There is a problem with your concat function. The output of your current concat function looks like this with a GUID

    contacts/7d714cef-85dd-4c46-96df-84d63a0dc714

     

    The output of your concat function should look something like this with a proper GUID.

    contacts(7d714cef-85dd-4c46-96df-84d63a0dc714)

    or (slash '/' character in the beginning is optional)

    /contacts(7d714cef-85dd-4c46-96df-84d63a0dc714)

     

    Here's the updated expression.

    if
    (
    	empty(outputs('De_order_ophalen')?['body/_new_contactpersoonid_value']),
    	'',
    	concat
    	(
    		'contacts(',
    		outputs('De_order_ophalen')?['body/_new_contactpersoonid_value'],
    		')'
    	)
    )

    or in one-liner

    if(empty(outputs('De_order_ophalen')?['body/_new_contactpersoonid_value']),	'',	concat('contacts(', outputs('De_order_ophalen')?['body/_new_contactpersoonid_value'], ')'))

     

    Please refer to my blog post for more detailed examples.

    https://linnzawwin.blogspot.com/2020/07/how-to-set-lookup-fields-with-null.html

     

     

  • Jan N Profile Picture
    78 on at

    Hi Linn,

     

    Thank you for your response. I copied and pasted your code (one-line) in the field but unfortunately I still get the error. I used this thread for my code Solved: 2023: Copy a lookup field with blank value doesn't... - Power Platform Community (microsoft.com)

    Regards, Jan

  • Verified answer
    Jan N Profile Picture
    78 on at

    Hi Linn,

     After I added the code to the fields als an expression your an my code worked!

     

    Thanks,

    Jan

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard