Forum

[SOLVED] Import dat...
 
Notifications
Clear all

[SOLVED] Import data error "Impossible to load class AssignmentPlanningElement"

5 Posts
2 Users
0 Reactions
3,626 Views
(@mcristian)
Posts: 4
Active Member
Topic starter
 
[#3163]

Hi,
I've successfully imported "Activity" and "Work" elements.
When I try to import "Assignment" no messages are displayed on form (neither errors or some info) and in log file I can see these messages:
2016-03-14 18:10:52.634 ===== TRACE ===== Importation : File type CSV
2016-03-14 18:10:52.634 ===== TRACE ===== File Name : ../files/attach//import/IMPORT_assignment_sample1.csv
2016-03-14 18:10:52.670 ** ERROR ** Impossible to load class AssignmentPlanningElement
=> Not found in ../model/custom/AssignmentPlanningElement.php
=> Not found in ../model/AssignmentPlanningElement.php
=> Not found in ../model/persistence/AssignmentPlanningElement.php
Just for some troubleshooting I try also to import "Task" using a bad file format, same result: no errors on form and log messages recorded.
Atteched the CSV file.

Thank you.
Regards.


 
Posted : 14 Mar 2016 20H37
(@babynus)
Posts: 14952
Member Admin
 

file is not attached


 
Posted : 15 Mar 2016 1H41
(@mcristian)
Posts: 4
Active Member
Topic starter
 

Sorry (I didn't click Insert button :unsure: ) !!!!

Here the file content ...

id;project;type of item;element id;resource;function;comments;assigned work;left work;rate (%);closed
;1;Assignment;8;4;3;"Commento";10;10;100;


 
Posted : 15 Mar 2016 11H25
(@babynus)
Posts: 14952
Member Admin
 

Issue is on type of item.
Type of item / element id refers to refType / refId in database.
It indicates to which item the assignment refers.
For instance Activity / 1 yould mean an assignment for Activity #1
This involes that ActivityPlanningElement must exist.
It cannot be Assignment.
As of Today, you can add Assignment for :
Activity
Meeting
TestSession


 
Posted : 15 Mar 2016 11H43
(@mcristian)
Posts: 4
Active Member
Topic starter
 

With this new version of the file I can import assignments for the actvities.

id;project;type of item;element id;resource;function;comments;assigned work;left work;rate (%);closed
;1;Activity;8;4;3;"Commento";10;10;100;

Thanks!!!


 
Posted : 15 Mar 2016 12H10
Share:

Scroll to Top