Try our conversational search powered by Generative AI!

Indexing Error



I'm trying to index a physical file in my computer as specified in using the below code:

var document = new Document() { Name = fd.Name, Attachment = newFileAttachment(filePath) };

var result = client.Index(document, x => x.Id = fd.Id);

The document in the filePath is a pdf of size 6.5 MB. When I code executed the client.Index, I get an error - "Exception has been thrown by the target of an invocation. [Exception of type 'System.OutOfMemoryException' was thrown.]". Kindly let me know what is the reason for this and what can be done to avoid this error.

Feb 09, 2013 5:55

When tried today, I get the error: "The remote server returned an error: (413) Request Entity Too Large. Request entity too large.". Is there any size limit on the files that can be indexed. If so, kindly let me know what is the file size limit and what is the alternative to index these?

Feb 11, 2013 8:15

Yes for developer indices there is a request limit that you might run into problems with if you try and index large files for development indicies the limit is 5mb. In production this is set much higher and you shouldn't have problems with it there If you have problem with this in production please contact EPiServer ServiceDesk and they can adjust the settings for your index.

Feb 11, 2013 8:48

Hi Marcus, thanks for the information.

Feb 12, 2013 12:12

Is the limit decided based on the licences used in our solution? If it is a demo licence the limit is 5mb and if it purchased licence there isn't any limit constraint? For few solutions we have a 10 or 12 month licence, does it also have any indexing limit?

Feb 26, 2013 14:43

I get the same error for a 63MB PDF file. What is the limit in production?

Nov 25, 2016 8:26

@Aziz: 50mb is the standard limit in production.

Feb 02, 2017 9:33

Can you clarify - what impact/s does this restriction have?


- Is a 5Mb+/50Mb+ individual document indexed at all ?

- Does the restriction slow down or impact the indexing functionality?

Mar 07, 2017 16:15
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.