Error: 'System.OverflowException: Value Was Either Too Large or Too Small for an Int16,' When Importing a Microsoft (MS) Project XML file.

(Doc ID 2412949.1)

Last updated on JUNE 25, 2018

Applies to:

Primavera P6 Enterprise Project Portfolio Management Cloud Service - Version 18.1 to 18.5 [Release 18.1 to 18.5]
Information in this document applies to any platform.

Symptoms

When importing an MS Project XML file, the Import result shows the process completed with errors. The file does not appear.

ERROR

4/26/2018 8:10:24 PM Information Exception Prism.Modularity.ModuleInitializeException: An exception occurred while initializing module 'CommandLineModule'. 
    - The exception message was: One or more errors occurred.
    - The Assembly that the module was trying to be loaded from was:Primavera.Mercury.CommandLineModule, Version=18.2.0.27826, Culture=neutral, PublicKeyToken=null
    Check the InnerException property of the exception for more information. If the exception occurred while creating an object in a DI container, you can exception.GetRootException() to help locate the root cause of the problem. 
   ---> System.AggregateException: One or more errors occurred. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AggregateException: One or more errors occurred. ---> 

System.OverflowException: Value was either too large or too small for an Int16.
   at System.Convert.ToInt16(Int32 value)


STEPS

The issue can be reproduced at will with the following steps:

  1. Launch P6 Professional.
  2. Select File, Import.
  3. Select MS Project XML file type.
  4. Select file location.
  5. Click ok.
  6. Observe the errors in the log file.



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms