You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2024-09-27 11:01:23

vishvas upadhyay
Member
Registered: 2024-09-27
Posts: 3

Error in CSV Import for Monitor Asset Management in GLPI Plugin-

I encountered an issue while trying to import a CSV file using the "Monitor" type in the GLPI Data Injection plugin. Below is the structure of my CSV file:

Name    Inventory number    Serial number    Manufacturer    Model    Status
Monitor    LLSPL/FA/ED/MT/001    ZZW3H4ZK300252T    Samsung    S24D300H    Available
Monitor    LLSPL/FA/ED/MT/002    ZZW3H4ZK200283K    Samsung    S24D300H    Available
Monitor    LLSPL/FA/ED/MT/003    ZZW3H4ZJ800986J    Samsung    S24D300H    Issued
When attempting to map the fields after uploading the file, the system does not read the data properly and throws the following error in the log:

[2024-09-26 11:26:02] glpiphplog.CRITICAL: *** Uncaught Exception TypeError: get_parent_class(): Argument #1 ($object_or_class) must be an object or a valid class name, null given in /var/www/var/_plugins/fields/inc/monitorassetmanagementinjection.class.php at line 15
  Backtrace :
  ...nc/monitorassetmanagementinjection.class.php:15 get_parent_class()
  ...s/datainjection/inc/injectiontype.class.php:141 PluginFieldsMonitorassetmanagementInjection::getTable()
  plugins/datainjection/inc/mapping.class.php:138    PluginDatainjectionInjectionType::dropdownLinkedTypes()
  plugins/datainjection/inc/model.class.php:789      PluginDatainjectionMapping::showFormMappings()
  src/CommonGLPI.php:691                             PluginDatainjectionModel::displayTabContentForItem()
  ajax/common.tabs.php:117                           CommonGLPI::displayStandardTab()
  public/index.php:82                                require()

The system fails to read the data and throws an exception in the logs.


GLPI Specialist | Redis Implementation | PHP Customization & Optimization.
Optimizing workflows and enhancing system performance one line of code at a time!.
Current focus: Custom work, caching strategies, and seamless integrations.
Open to connect and collaborate!.

Offline

Board footer

Powered by FluxBB