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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Error Creating New Address

(0) ShareShare
ReportReport
Posted on by 5

When attempting to create a new address via Orders -> Lookup Address -> New address, I receive the error below. Does anyone know why this is happening and more importantly how to get rid of it.

Exception Message: An error occurred while validating input parameters: Microsoft.OData.ODataException: Cannot convert the literal '1' to the expected type 'Edm.String'. ---> Microsoft.OData.ODataException: Cannot convert a value of type 'Edm.Int32' to the expected target type 'Edm.String'.

Thanks in advance!

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    That looks like a bug for me. I would recommend opening a ticket with Microsoft.

  • Ran Zhang Profile Picture
    on at

    Can you please share screenshot of how did you fill in the address? It looks like you were putting inconsistent type of value into the field.

  • rdarrasUMed Profile Picture
    5 on at

    Ran Zhang, please see the screenshot below, I even added every single field that was not already on the form to make sure there wasn't a default value somewhere that was causing the issue.

    pastedimage1622812734911v1.png

  • rdarrasUMed Profile Picture
    5 on at

    Thanks for the advice @andrew Butenko, I opened a request with my Gold Partner though I still haven't heard back from them yet.

  • Jacob.s17 Profile Picture
    464 on at

    It's telling you that it's looking for a string and you've provided an integer. Is the screenshot you shared the exact setup you used to generate the error? if yes, can you share more of your workflows details.

    I had this identical error when trying to write a value to an option set in Power Automate earlier today, the issue was simply in how I provided the data for mapping. I know workflows aren't the same, but the error message is.

    Anything else you can share?

  • rdarrasUMed Profile Picture
    5 on at

    Seems like Andrew Butenko might be right about this being a bug. I was unaware until this morning there was an address table related to account and when I created an address from there, everything worked as expected. So there must be some sort of issue when attempting to create the same record via Orders -> Lookup Address -> New address

  • Frank Hillsnipe Profile Picture
    1,332 on at

    Has anyone found a resolution to this?

    The error appears to still exist in 2021 release wave 2.

  • Frank Hillsnipe Profile Picture
    1,332 on at

    This is still an issue in 2022 release wave 2.

    I did open a ticket with MS through my partner but it was not resolved and MS stopped responding about it.
    The problem is that when you access the New Address form the Lookup Control and try to Save the Payload is incorrect and incomplete.

    Failing Payload from Lookup Control:
    {
       "line1": "Test form Lookup",
       "name": "Test from Lookup",
       "objecttypecode": 1
    }

    Successful Payload from Account:
    {
     "line1": "Test from Account",
     "name": "Test from Account",
     "parentid_account@odata.bind": "/accounts(a9b26cd9-0fd8-eb11-a31a-0050568441e5)",
     "objecttypecode": "account"
    }

    We see the error about the objecttypecode being 1 instead of Account (it would be 2 for a Contact or 4 for a Lead).
    Additonally, it isn't submitting the parentid at all, fixing the objecttypecode and submitting it gets you a new error: "Parent id not set for address type 1071".

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 83 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans