Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[V19.0.3] [Import] $_SESSION["dol_array_match_file_to_database_select"] reset à l'étape 6 de l'import #31737

Open
Stormrice opened this issue Nov 8, 2024 · 1 comment
Labels
Bug This is a bug (something does not work as expected)

Comments

@Stormrice
Copy link

Stormrice commented Nov 8, 2024

Bug

EN

Hello!

I am contacting you because we cannot import CSV data using module Tools > New import in version 19.0.3 (docker).

After passing the simulation at step 5 with no error, when we clic on the "Import data" button, the page at step 6 indicates that everything went OK. We can also notice the number of lines imported with success.

Yet, when we search for the imported data (Third party module), nothing appears in the list, neither in the database. Though, there is no problem manually adding a third party.

Detail: In the step 6 of the import process, we can see the lines Target tables and Target fields are wrong (see screenshot).

Finally, after half a day of debugging, the problem appears to come from the fact that the variable $_SESSION["dol_array_match_file_to_database_select"] is reset to empty between setp 5 & 6.

FR

Bonjour,

Je vous contacte car il nous est impossible d'importer des données au format CSV en utilisant le module Outils > Nouvel import dans la version 19.0.3 (docker).

Une fois passé la simulation de l'étape 5 sans erreur, lorsqu'on clique sur le bouton "Importer les données", la page de l'étape 6 nous indique que tout s'est passé sans encombre. On voit même le nombre de lignes importées avec succès.

Or quand on va voir si les données ont été importées (module Tiers en l'occurrence), rien n'apparaît dans la liste, ni dans la base de données. Pas de souci en revanche si on ajoute manuellement un tiers.

Détail : Lors de l'étape 6 de l'import, on peut voir que les lignes Tables cibles et Champs cibles sont en erreurs (voir la capture).

Enfin, après une demi-journée de débuggage, le problème viendrait du fait que la variable $_SESSION["dol_array_match_file_to_database_select"] est réinitialisée à vide lorsqu'on passe à l'étape 6.

image

Dolibarr Version

19.0.3

Environment PHP

8.2

Environment Database

Postgres 16.4

Steps to reproduce the behavior and expected behavior

Fresh install of dolibarr 19.0.3 via docker.

Attached files

No response

@Stormrice Stormrice added the Bug This is a bug (something does not work as expected) label Nov 8, 2024
@marc-dll
Copy link
Contributor

Hello,

Thank you for your report. Please try to use English if possible for the international members of the community.

I could not reproduce with the latest version of the 19.0 branch, could you please test with the latest code and report if it still errors.

Thank you.

Greetings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected)
Projects
None yet
Development

No branches or pull requests

2 participants