Indexing Error

 

Hi,

I'm trying to index a physical file in my computer as specified in http://find.episerver.com/Documentation/dotnet-api-attachments 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.

#65793 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?

    #65800 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.

    #65801 Feb 11, 2013 8:48
  •  

    Hi Marcus, thanks for the information.

    #65854 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?

    #66290 Feb 26, 2013 14:43
  •  

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

    #172167 Nov 25, 2016 8:26
  •  

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

    #174689 Feb 02, 2017 9:33
  •  

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

    Eg;

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

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

    #176012 Mar 07, 2017 16:15