-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GetList results in a 404 - 'File or directory not found' excepttion for too many columns #59
Comments
So if you just specify 1 column it works, but as you get larger numbers it fails? Are you able to get an http trace to see what your get looks like and if it is truncated? |
No truncation, it was going over the 2,083 character limit for http requests. I ended up adding the all-attributes tag to the fetchXML rather than specifying many columns. GET /api/data/v8.2/accounts?fetchXml=%253Cfetch+version%253D%25271.0%2527+output-format%253D%2527xml-platform%2527+mapping%253D%2527logical%2527+distinct%253D%2527true%2527%253E%250D%250A++++++++++++++++++++++++++++++++++++++++++++++%253Centity+name%253D%2527account%2527%253E%253Cattribute+name%253D%2527accountid%2527%252F%253E%253Cattribute+name%253D%2527name%2527%252F%253E%253Cattribute+name%253D%2527emailaddress1%2527%252F%253E%253Cattribute+name%253D%2527websiteurl%2527%252F%253E%253Cattribute+name%253D%2527telephone1%2527%252F%253E%253Cattribute+name%253D%2527fax%2527%252F%253E%253Cattribute+name%253D%2527accountnumber%2527%252F%253E%253Cattribute+name%253D%2527address1_line1%2527%252F%253E%253Cattribute+name%253D%2527address1_line2%2527%252F%253E%253Cattribute+name%253D%2527address1_line3%2527%252F%253E%253Cattribute+name%253D%2527address1_city%2527%252F%253E%253Cattribute+name%253D%2527address1_postalcode%2527%252F%253E%253Cattribute+name%253D%2527address1_country%2527%252F%253E%253Cattribute+name%253D%2527address2_line1%2527%252F%253E%253Cattribute+name%253D%2527address2_line2%2527%252F%253E%253Cattribute+name%253D%2527address2_city%2527%252F%253E%253Cattribute+name%253D%2527address2_postalcode%2527%252F%253E%253Cattribute+name%253D%2527address2_country%2527%252F%253E%253Cattribute+name%253D%2527parentaccountid%2527%252F%253E%253Cattribute+name%253D%2527primarycontactid%2527%252F%253E%253Cattribute+name%253D%2527statecode%2527%252F%253E%253Cattribute+name%253D%2527statuscode%2527%252F%253E%253Cattribute+name%253D%2527telephone2%2527%252F%253E%250D%250A++++++++++++++++++++++++++++++++++++++++++++++++%253Cfilter+type%253D%2527and%2527%253E%250D%250A++++++++++++++++++++++++++++++++++++++++++++++++++%253Ccondition+attribute%253D%2527primarycontactid%2527+operator%253D%2527eq%2527+value%253D%252774eaeb77-e23b-e811-a9a7-000d3af3c361%2527+%252F%253E%250D%250A++++++++++++++++++++++++++++++++++++++++++++++++%253C%252Ffilter%253E%250D%250A++++++++++++++++++++++++++++++++++++++++++++++%253C%252Fentity%253E%250D%250A++++++++++++++++++++++++++++++++++++++++++++%253C%252Ffetch%253E HTTP/1.1 |
Odd behaviour , running against an IFD, account query with more than 22 columns causes a 404, same against contacts, allowed more columns but same result:
` [TestClass]
public class GetListTest : UnitTestBaseClass
{
[TestMethod]
public void TestMethod1()
{
Message: Test method Xrm.Tools.WebAPI.Test.GetListTest.GetListTest threw exception:
<title>404 - File or directory not found.</title> <style type="text/css"> </style>System.AggregateException: One or more errors occurred. ---> Xrm.Tools.WebAPI.Results.CRMWebAPIException: HTML Error Content:
Server Error
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
The text was updated successfully, but these errors were encountered: