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 :
Microsoft Dynamics NAV (Archived)

start your activity again

(1) ShareShare
ReportReport
Posted on by

Hi everyone , i change the type of the county field frim text to option but when i tried to add a new customer this error appearedsta.png

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Nareshwar Raju Vaneshwar Profile Picture
    5,596 on at

    Hi Kamilia,

    Please close the application and open it again freshly. The datatype change has not reflected yet.

    If the problem still persists, restart your NAV instance.

    Hope it helps.

  • Community Member Profile Picture
    on at

    it doesn't work

  • Suggested answer
    Nareshwar Raju Vaneshwar Profile Picture
    5,596 on at

    Hi,

    It seems like you have not recompiled the objects.

    Please recompile the object(s) that you have made the change(s).

    Hope it helps.

  • Community Member Profile Picture
    on at

    7446.sta.png i am getting this error

  • Suggested answer
    Nareshwar Raju Vaneshwar Profile Picture
    5,596 on at

    Hi,

    You are trying to concatenate text and an option.

    If you want to add Text and Option and return a Text value, use FORMAT() for your option like following,

    TextResult := Text + FORMAT(Option);

    Hope it helps.

  • Suggested answer
    RockwithNav Profile Picture
    8,637 Super User 2025 Season 2 on at

    Hey Kamilia,

    Restart your NAV service from Services.MSC. It will then work for sure.

  • Community Member Profile Picture
    on at

    where can i add this ?

  • Suggested answer
    Nareshwar Raju Vaneshwar Profile Picture
    5,596 on at

    Hi,

    When the error pops up, close the error window and the system will take you to the line where the error occurred. So do the change as I mentioned on my previous answer. Recompile the object again.

    Hope it helps.

  • Community Member Profile Picture
    on at

    st2.png

  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,380 Super User 2025 Season 2 on at

    Hi,

    The First Question is - Why you want to change a standard field data type?

    If you still plan to change it you need to identify where all that field is used. Third party tools like Prism should be used to find the relation of tables / fields in whole system.

    The issue that you are facing is due to standard function ValidateCity call that is being called and need a parameter Country Code.

    I think you need to analyze that a New Custom Field for Country Options seems a good idea.

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 > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans