View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Error when import affectations - ProjeQtOr

Prochaines sessions de formation

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)

Mardi 23 avril (10h30-12h)

Jeudi 16 mai (16h-17h30)

Jeudi 13 juin (10h30-12h)

 
 

Planifiez avec ProjeQtOr

3 et 4 avril (9h - 12h30)

 
 

Administrez avec ProjeQtOr

10 et 11 avril (9h - 12h30)

 

 

 
 

Error when import affectations

More
03 Nov 2016 16:58 - 03 Nov 2016 17:02 #1 by dnaton
Hello,

When I try to import affectation, I have a red error message on the screen



When I see the log, I have this message

2016-11-03 16:47:59.776 ===== TRACE ===== Importation : File type CSV
2016-11-03 16:47:59.777 ===== TRACE ===== File Name : ../files/attach/\import\export_Affectation_20161103_163949.csv
2016-11-03 16:48:00.562 ***** ERROR ***** ERROR *****
2016-11-03 16:48:00.563 ***** ERROR ***** on file 'D:\Xampp\htdocs\ad_geode\model\Affectation.php' at line (272)
2016-11-03 16:48:00.564 ***** ERROR ***** cause = Array to string conversion

Can anyone maybe tell me what is the problem ?

My process to import was :

1) Export affectation in Excel shhet from a Projeqtor v5.5.4
2) Open this file to supress the ID (I tried with ID and the problem is the same)
3) Import in a new Projeqtor (V5.5.4 too)

The projects and ressources was created before on the destination Projeqtor (with export/importation from the other Projeqtor site) : with no problem and error during inportation

Regards,
Damien
.
ProjeQtOr v11.0.1 - Apache v2.4.56 - MariaDB v10.4.28 - PHP v8.2.4
Plugins installed : Personalized Translation 1.5 - Customization of screen 6.6
Attachments:
Last edit: 03 Nov 2016 17:02 by dnaton.
The topic has been locked.
More
03 Nov 2016 17:46 - 03 Nov 2016 17:47 #2 by babynus
Hi,
Issue occurs because you did not export the "resource" field.
Export this field to avoir the error.

This leads to an error on the control that is never reached through the application, only through import.

To avoid the issue, replace in /model/Affectation.php, lines 270- from
if (! $this->idResource) {
    	$result.='<br/>' . htmlEncode(i18n('messageMandatory',array(i18n('colIdResource')) 
    	                                         . ' ' . htmlEncode(i18n('colOrContact')) 
    	                                         . ' ' . htmlEncode(i18n('colOrUser'))));
    }
to
if (! $this->idResource) {
    	$result.='<br/>' . htmlEncode(i18n('messageMandatory',array(i18n('colIdResource'))));
    }

Fix will be included in next version.

Babynus
Administrator of ProjeQtOr web site
Last edit: 03 Nov 2016 17:47 by babynus.
The topic has been locked.
Moderators: babynusprotion
Time to create page: 0.043 seconds

Paramétrages de cookies

×

Cookies fonctionnels

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Veuillez vous connecter pour voir vos activités!

Autres cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.