Solved

Uploading larger files will give an error "Object reference not set to an instance of an object"

  • 1 October 2019
  • 9 replies
  • 3796 views

Userlevel 6
Badge +14
Sometimes when I upload large files via IFS DocMan I am getting the above error message. Any way to bypass this?
icon

Best answer by Sahan Udana 1 October 2019, 11:40

View original

9 replies

Userlevel 6
Badge +12
Hi Amila ,

when checking a file larger sometimes docman functionality gives an error “Object reference not set to an instance of an object” The reason for the error is happen due to the IIS server limited the maximum allowed content size. Changing this parameter can fix the problem.
To adjust the parameter need to login to the relevant IIS server machine(IFS home server) and run the IIS manager (Check image1).
Then click on the server name and double click on the ‘Request Filtering’ (image 2) .
In the next window click on the Edit Feature Settings…
Now you can adjust the maximum allowed length as highlighted below.


Hope this will helps.
Userlevel 5
Badge +15

Hi Amila

 

This is not suitable for IFSMWS because there is no IIS server. Is there any option to limit upper file size uploaded into IFS Applications(IFS9, IFS10)?

 

BS

Piotr

Userlevel 2
Badge +6

Side question but are these “Large” files being stored in the Oracle or an FTP site? 

The DB storage really only benefits documents or at least files with recognised text, photos or videos etc are best stored outside of the db to prevent issues with db size which can occur… 

Userlevel 5
Badge +15

Customers by default store all files in the Oracle LOB’s. So they realized problem after LOB tablespace is so big.

Userlevel 5
Badge +15

Anyway, is there any possibility to move attachment from LOB stored repository to FTP for example?

 

Piotr

Userlevel 6
Badge +14

Where these documents (or LOB’s) will be stored is depend on the repository defined in the DOCMAN settings. If the repository is set as database, then the document will be stored in a table as LOB. You can always move documents between repositories, like between DB and FTP etc

Userlevel 5
Badge +15

But I want to know is there any easy way to move repository between LOB and for example FTP?

It about 200GB.

Userlevel 6
Badge +14

Hi @knepiosko There is a dialog window called “Change Document Repository”. Check that and see it will solve your problem

Badge +1

An Object is an instance of a Class , it is stored some where in memory. A reference is what is used to describe the pointer to the memory location where the Object resides. The message "object reference not set to an instance of an object"  (NullReferenceException) means that you are referring to an object the does not exist or was deleted or cleaned up. In order to prevent the error, objects that could be null should be tested for null before being used.

if (mClass != null)
{
  // Go ahead and use mClass
  mClass.property = ...
}
else
{
  // Attempting to use mClass here will result in NullReferenceException
}

A NullReferenceException typically reflects developer error and is thrown in the following scenarios:

  • Forgotten to instantiate a reference type.
  • Forgotten to dimension an array before initializing it.
  • Is thrown by a method that is passed null.
  • Get a null return value from a method, then call a method on the returned type.
  • Using an expression to retrieve a value and, although checking whether the value is null.
  • Enumerating the elements of an array that contains reference types, and attempt to process one of the elements.

 

Reply