Hello All,
I have created an AIF document service in AX 2012 R3 which contains more than 10000 records but the service returns only the first 1000 records. I have changed the maximum document size to NoLimit in Inbound ports form but i get the timeout error.
Is there any solution for this issue ?
Hello Lalit aka ‘Tinu’ 
did you try to extend time out in WCF?
System administration > Setup > Services and Application Integration Framework > Inbound Ports. Select your port - it has to be deactivated to be able to edit the configuration. Then click Configure > go to Bindings > set timeout values
Dear Mr. Lalith,
Since you are successful achieving till this point. For which purpose you are using this AIF. Also can u share with me the steps u followed.
May me this is not the place i should raised this question.
Sorry for that.
Increasing the limit isn’t really a solution, because you would just into the same problem with a bigger message.
The right solution is using paging, which means getting the data in several smaller messages instead of one huge block consuming a lot of resources. The good news is that AX already supports paging - use the query service for that.
By the way, document services support paging in findKeys(), getKeys() and getChangedKeys().