Skip to main content
Solved

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

  • October 1, 2019
  • 9 replies
  • 4223 views

Amila Samarasinghe
Superhero (Partner)
Forum|alt.badge.img+14
Sometimes when I upload large files via IFS DocMan I am getting the above error message. Any way to bypass this?

Best answer by Sahan Udana

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.
View original
Did this topic help you find an answer to your question?

9 replies

Forum|alt.badge.img+14
  • Superhero (Employee)
  • 169 replies
  • Answer
  • October 1, 2019
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.

Forum|alt.badge.img+16
  • Superhero (Partner)
  • 407 replies
  • February 19, 2020

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


Forum|alt.badge.img+6
  • Do Gooder (Partner)
  • 35 replies
  • February 20, 2020

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… 


Forum|alt.badge.img+16
  • Superhero (Partner)
  • 407 replies
  • February 28, 2020

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


Forum|alt.badge.img+16
  • Superhero (Partner)
  • 407 replies
  • March 18, 2020

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

 

Piotr


Amila Samarasinghe
Superhero (Partner)
Forum|alt.badge.img+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


Forum|alt.badge.img+16
  • Superhero (Partner)
  • 407 replies
  • March 24, 2020

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

It about 200GB.


Amila Samarasinghe
Superhero (Partner)
Forum|alt.badge.img+14

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


Forum|alt.badge.img+1
  • Do Gooder
  • 1 reply
  • February 1, 2021

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings