Skip to main content

Notifications

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

  • Community Member Profile Picture
    on at
    RE: Getting Error after a Nav OData Service in my project.

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

    0654.error2.png

    Thanks

    Anju

  • Community Member Profile Picture
    on at
    RE: Getting Error after a Nav OData Service in my project.

    I updated the prefix code. Its working fine.

    Thank you.

  • Suggested answer
    Suresh Kulla Profile Picture
    47,789 on at
    RE: Getting Error after a Nav OData Service in my project.

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

  • Verified answer
    keoma Profile Picture
    32,727 on at
    RE: Getting Error after a Nav OData Service in my project.

    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 ?

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics NAV (Archived)

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2

#1
mmv Profile Picture

mmv 2

#1
Amol Salvi Profile Picture

Amol Salvi 2

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans