We are using Dynamics CRM Online and it's Web Api for our integration with other systems, we have hit a really weird issue recently, where two Get requests to Web Api, issued at exactly the same time with same Authorization token are returning different results, we are querying guid of a record, one comes back with the Guid the other with Null, there's no chance of that data not being there at that point as that record has been in CRM for a long time and as I said above, these two requests were issued at exactly the same time (as its evident from the time mentioned in response --> see below), I am copying the requests and responses below, if anyone has encountered this issue or can shed some light on why it may be happening, please let us know. B/w we suspect this has been happening before as well as we encountered similar issues before but this was the first time we troubleshooted this in detail with fiddler traces.
Request 1
Accept: application/json
Authorization: Bearer <tokenGoesHere>
Host: <hostname>
Response 1
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/json; odata.metadata=minimal
Expires: -1
Server: Microsoft-IIS/8.5
REQ_ID: 17ff4029-4922-43c9-9550-669b2bf55d49
OData-Version: 4.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Fri, 18 Aug 2017 12:39:53 GMT
Content-Length: 256
Set-Cookie: crmf5cookie=!Il7rpp79nubHq6bO/8BTxBu52Tf9Z2OGhiSdK4172h26w4CnoBKOlpVhzTS3WE1zO5ewUMcYwts09Ko=;secure; path=/
Strict-Transport-Security: max-age=31536000; includeSubDomains
{
"@odata.context":"https://<hostname>/api/data/v8.2/$metadata#contracttemplates(contracttemplateid)","value":[
{
"@odata.etag":"W/\"2030269\"","contracttemplateid":"77ecdfda-3e70-429d-b174-1352b981c5f2"
}
]
}
Request 2
GET https://<hostname>/api/data/v8.2/contracttemplates?$select=contracttemplateid&$top=10&$filter=name%20eq%20'Service'HTTP/1.1
Accept: application/json
Authorization: Bearer <tokenGoesHere>
Host: <hostname>
Response 2
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/json; odata.metadata=minimal
Expires: -1
Server: Microsoft-IIS/8.5
REQ_ID: 01ce4889-a8a7-4f79-8df6-aea00bac7817
OData-Version: 4.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Fri, 18 Aug 2017 12:39:53 GMT
Content-Length: 222
Set-Cookie: crmf5cookie=!CvztgNYGAJKjhWrO/8BTxBu52Tf9ZzDalf4hpDFQL6yDBDo8jqFdXYjj1Z1EGKDBXw6WSh7OMMT8E34=;secure; path=/
Strict-Transport-Security: max-age=31536000; includeSubDomains
{
"@odata.context":"https://<hostname>/api/data/v8.2/$metadata#contracttemplates(contracttemplateid)","value":[
{
"@odata.etag":"W/\"2030269\"","contracttemplateid":null
}
]
}
*This post is locked for comments