Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Error importing pro...
 
Notifications
Clear all

Error importing project expense

13 Posts
2 Users
0 Reactions
2,690 Views
jmmbb
(@jmmbb)
Posts: 561
Contributor
Topic starter
 
[#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,
 


 
Posted : 20 Aug 2025 13H47
jmmbb
(@jmmbb)
Posts: 561
Contributor
Topic starter
 

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 :
 


 
Posted : 20 Aug 2025 16H29
jmmbb
(@jmmbb)
Posts: 561
Contributor
Topic starter
 

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.


 
Posted : 20 Aug 2025 17H05
jmmbb
(@jmmbb)
Posts: 561
Contributor
Topic starter
 

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 !


 
Posted : 20 Aug 2025 17H08
babynus
(@babynus)
Posts: 14966
Main Contributor 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
 


 
Posted : 29 Aug 2025 16H08
jmmbb
(@jmmbb)
Posts: 561
Contributor
Topic starter
 

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).
 


 
Posted : 25 Sep 2025 15H01
jmmbb
(@jmmbb)
Posts: 561
Contributor
Topic starter
 

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


 
Posted : 25 Sep 2025 15H12
jmmbb
(@jmmbb)
Posts: 561
Contributor
Topic starter
 

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...
 


 
Posted : 25 Sep 2025 15H30
jmmbb
(@jmmbb)
Posts: 561
Contributor
Topic starter
 

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,


 
Posted : 25 Sep 2025 15H40
jmmbb
(@jmmbb)
Posts: 561
Contributor
Topic starter
 

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 ?


 
Posted : 04 Nov 2025 14H43
jmmbb
(@jmmbb)
Posts: 561
Contributor
Topic starter
 

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,


 
Posted : 05 Nov 2025 19H45
jmmbb
(@jmmbb)
Posts: 561
Contributor
Topic starter
 

Same issue with french translation :

 

The file used for import is attached.

Regards,


 
Posted : 05 Nov 2025 20H04
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

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


 
Posted : 26 Nov 2025 14H20
Share:

Scroll to Top