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)

Getting Error after a Nav OData Service in my project.

(0) ShareShare
ReportReport
Posted on by

Dear ,

I am trying to implement a Cistomer OData service in my project. I was able to add the service in my project successfully.

But when I build the project, I am getting the below mentioned error. Please help someone to resolve this issue.

Error:

Error 1 Reference.datasvcmap: Schema specified is not valid. Errors: (0,0) : error 0005: The 'Name' attribute is invalid - The value '_Prefix_Code' is invalid according to its datatype 'schemas.microsoft.com/.../edm:TSimpleIdentifier' - The Pattern constraint failed. App_WebReferences/NavOData/

*This post is locked for comments

I have the same question (0)
  • Verified answer
    keoma Profile Picture
    32,729 on at

    update the reference to the nav odata url in your project, compile, then try again.

    if not works: whats the datatype of field prefix-code in table customer? is that a custom field?

    in windows client goto page web services. click on the odata url and open it in the bowser. do you get an error ?

  • Suggested answer
    Suresh Kulla Profile Picture
    50,245 Super User 2025 Season 2 on at

    Did you add any code to update or retreive the data from the service ?

  • Community Member Profile Picture
    on at

    I updated the prefix code. Its working fine.

    Thank you.

  • Community Member Profile Picture
    on at

    Pls Help where you updated prefix code . I am also facing same issue  . 

    0654.error2.png

    Thanks

    Anju

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)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans