Forum

Error importing pro...
 
Notifications
Retirer tout

Error importing project expense

13 Posts
2 Utilisateurs
0 Reactions
2,638 Vu
jmmbb
(@jmmbb)
Posts: 561
Noble Member
Début du sujet
 
[#9914]

Hello,

i experience strange issue while importing project expense.
I do it several time in the past and it works but today, i can't find the bug...
ProjeQtOr's version is 12.1.2.

I use a csv file with 8 expenses (first problem become with a largest file but i reduce the number of line to track the bug).
 

Note : plannedFullAmount, expensePlannedDate, expenseRealDate and realFullAmount are in english to avoid translation's mystake but nothing change.
I use plannedFullAmount to 1 for expenses that are previously set and avoid error with amount = 0.
CP 2025 and aother are personalized flieds with financial value.
I use idProject because, when using project's name i get an error...

So, this is the log after import :
 

And this is the result :
 

So, fields are well recognized (name of fields are changed to there translation), but i get each time the same error, even with planned date and planned amount not void.

When i try to make it on my 292 expenses to import, i got a time out and log only show "invalid" for each line.

Any idea ?

Best regards,
 


 
Posté : 20/08/2025 1:47 pm
jmmbb
(@jmmbb)
Posts: 561
Noble Member
Début du sujet
 

Doing a test with a fresh export structure : copied direct from import screen :
I copy the help line, paste it into excel, set some values according to reference (ie idProject, idStatus, ...) and try to import it, the result is the same :
 

Even if values are presents :
 


 
Posté : 20/08/2025 4:29 pm
jmmbb
(@jmmbb)
Posts: 561
Noble Member
Début du sujet
 

Try to create an expense from ProjeQtOr then export to csv, change value (montant prévu) then try to import : same issue.

Even if i use "tout cocher) to be sure to export every values, can't import csv.


 
Posté : 20/08/2025 5:05 pm
jmmbb
(@jmmbb)
Posts: 561
Noble Member
Début du sujet
 

Same issue trying in english (perhaps problem with translation ?), so message is in english but no import 🙂 !
Need to set real date and amount : non sense with status "enregistré" !

And even with these value set, import doesn't work !


 
Posté : 20/08/2025 5:08 pm
(@babynus)
Posts: 14952
Membre Admin
 

Hi,
Issue is that Total Full Amount cannot be imported : it is calculated from ExVAT Amount + Vat Amount (and VAT Amount is calculated from VAT %)
So you need to enter ExVAT Amount and it will calculate Total Full Amount
 


 
Posté : 29/08/2025 4:08 pm
jmmbb
(@jmmbb)
Posts: 561
Noble Member
Début du sujet
 

hello,

exVAT Amount or VAT % are not in the fieldqs listed for import.
 

I put Value in plannedAmount and expensePlannedDate and get the same issue.I put my import file here (amount are example only).
 


 
Posté : 25/09/2025 3:01 pm
jmmbb
(@jmmbb)
Posts: 561
Noble Member
Début du sujet
 

I get this error on log :

2025-09-25 12:59:26.224 ===== TRACE ===== [1] => Import line n° 4
2025-09-25 12:59:26.226 ..... SCRIPT .... [1] 80.241.9.27 UserMain::getVisibleProjects(limitToActiveProjects=1)
2025-09-25 12:59:26.229 ..... SCRIPT .... [1] 80.241.9.27 UserMain::getVisibleProjects(limitToActiveProjects=1)
2025-09-25 12:59:26.229 ..... SCRIPT .... [1] 80.241.9.27 securityGetAccessRightYesNo ( menuName=menuProjectExpense, accessType=create, obj=ProjectExpense #, user=User #1)
2025-09-25 12:59:26.230 ..... SCRIPT .... [1] 80.241.9.27 securityGetAccessRight(menuName=menuProjectExpense, accessType=create, obj=ProjectExpense #, user=User #1)
2025-09-25 12:59:26.230 ..... SCRIPT .... [1] 80.241.9.27 getAccessControlRights(obj=ProjectExpense #)
2025-09-25 12:59:26.230 ..... SCRIPT .... [1] 80.241.9.27 UserMain::getVisibleProjects(limitToActiveProjects=1)
2025-09-25 12:59:26.231 ** ERROR ** [V12.1.2] [1] Error on SqlElement to get 'availableTransferedAmount' for Class 'Budget' : field 'availableTransferedAmount' not found in Database on table budget


 
Posté : 25/09/2025 3:12 pm
jmmbb
(@jmmbb)
Posts: 561
Noble Member
Début du sujet
 

I try on another instance (test) installed from scratch (V12.1.2).
I get the same error :
 

Note that expensePlannedDate and plannedAmount are recognized (it set the column with english name to avoid traduction error and they are correctly translated during import).

Not VAT ou exVAT find in field list...
 


 
Posté : 25/09/2025 3:30 pm
jmmbb
(@jmmbb)
Posts: 561
Noble Member
Début du sujet
 

I use the full example for import (in my production instance, fields VAT and VAT amount are hidden by screen customization so they don't appear on list for import.

It work.

So perhaps it will be convenient to show even hidden fields in import example to avoid missing them.

Regards,


 
Posté : 25/09/2025 3:40 pm
jmmbb
(@jmmbb)
Posts: 561
Noble Member
Début du sujet
 

Hello,

i try another import and, even with every fields set and using english title, i get the same error :
 

For me, planned dat eand amount are both entered (even in planned amount and tax rate but with planned tax amount too).

Another idea ?


 
Posté : 04/11/2025 2:43 pm
jmmbb
(@jmmbb)
Posts: 561
Noble Member
Début du sujet
 

Hello,

i try to use a new expense created just for export / import (see attachment).

I export the expense (only planned Amount, taxt rate and planned date for financial data).
I try to import from the generated .csv i get the error :
Invalid controls.
Real date and amount must both be entered

Status is "enregistré" so why to expect REAL amount and date ?

I think in will be because some fields are hidden in my instance (we don't use VAT cause every costs are VAT included).
In change customization to get every fields visible and do another export.
Same result (even with real amount set to 0).

I change in import file real amount and real date (see attachement) but i get the same error :
 

Regards,


 
Posté : 05/11/2025 7:45 pm
jmmbb
(@jmmbb)
Posts: 561
Noble Member
Début du sujet
 

Same issue with french translation :

 

The file used for import is attached.

Regards,


 
Posté : 05/11/2025 8:04 pm
(@babynus)
Posts: 14952
Membre Admin
 

Issue with availableTransferedAmount on Budget was fixed.
Try and migrate to V12.3.2


 
Posté : 26/11/2025 2:20 pm
Share:
Retour en haut