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

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Etag value not valid on PUT request

(0) ShareShare
ReportReport
Posted on by

Hello,

i am having problems trying to update records through NAV 2015 OData WS.

I am getting: "The etag value '28;X8MAAAJ7/0EARAAwADAAMQAAAAAA9;7238058930;' specified in one of the request headers is not valid. Please make sure only one etag value is specified and is valid."

This is what i get if i do a GET:

GET   http://*******:****/****/Odata/Company('***')/Socios('AD001')?$format=json

{
"odata.metadata": "http://*********.es:****/******/OData/$metadata#Socios/@Element",
"N_x00BA_": "AD001",
"Nombre": "JESUS",
"ETag": "28;X8MAAAJ7/0EARAAwADAAMQAAAAAA9;7238058930;"
}


I am trying to update with this call:


PUT http://********.*****.es:****/*****/Odata/Company('****')/Socios('AD001') HTTP/1.1 Accept-Encoding: gzip,deflate Authorization: Basic bGlmZXVzZXI6QXRhbWExYXRhbWEx OData-MaxVersion: 4.0 OData-Version: 4.0 If-Match: 28;X8MAAAJ7/0EARAAwADAAMQAAAAAA9;7238058930; Content-Type: application/json Accept: application/json Content-Length: 107 Host: **********.*****.es:**** Connection: Keep-Alive User-Agent: Apache-HttpClient/4.1.1 (java 1.5) { "N_x00BA_": "AD001", "Nombre": "JESUS", "ETag": "28;X8MAAAJ7/0EARAAwADAAMQAAAAAA9;7238058930;" }

Can i get some help?

Thx you very much.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at
    RE: Etag value not valid on PUT request

    I found the solution:

    The If-math header must have this format:

    W / " ' EtagValue ' "

    In my example: If-Match: W/"'28;X8MAAAJ7/0EARAAwADAAMQAAAAAA9;7238058930;'"

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Saurav.Dhyani Profile Picture

Saurav.Dhyani 2 Super User 2025 Season 2

#2
RK-25090803-0 Profile Picture

RK-25090803-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans