View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Error when import affectations - ProjeQtOr
 

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 v12.1.0 - Apache v2.4.56 - MariaDB v10.4.28 - PHP v8.2.4
Plugins installed : PersonalizedTranslation 1.6 - ScreenCustomization 7.2
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.036 seconds

Cookies settings

×

Functional Cookies

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

Please login to see yours activities!

Other cookies

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