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

Error during CSV import #2291

Closed
touv opened this issue Dec 20, 2024 · 2 comments · Fixed by #2293
Closed

Error during CSV import #2291

touv opened this issue Dec 20, 2024 · 2 comments · Fixed by #2293
Labels
Parking Souhait ou besoin à reconsidérer plus tard

Comments

@touv
Copy link
Contributor

touv commented Dec 20, 2024

Vu dans log serveur :

Error during import Error: item #1 [CSVObject] <TypeError: data.map is not a function>
    at Engine.execWith (/app/node_modules/@ezs/core/lib/engine.js:209:23)
    at /app/node_modules/@ezs/core/lib/engine.js:83:12
    at drainItem (/app/node_modules/concurrent-queue/index.js:96:21)
    at Immediate.drain [as _onImmediate] (/app/node_modules/concurrent-queue/index.js:77:84)
    at processImmediate (node:internal/timers:476:21) {
  sourceError: TypeError: data.map is not a function
      at Object.CSVObject (/app/node_modules/@ezs/basics/lib/csv-object.js:12:25)
      at Engine.execWith (/app/node_modules/@ezs/core/lib/engine.js:202:40)
      at /app/node_modules/@ezs/core/lib/engine.js:83:12
      at drainItem (/app/node_modules/concurrent-queue/index.js:96:21)
      at Immediate.drain [as _onImmediate] (/app/node_modules/concurrent-queue/index.js:77:84)
      at processImmediate (node:internal/timers:476:21),
  sourceChunk: `{"lodex_published":"'lodex-published'"}`,
  type: 'Data corruption error',
  scope: 'data',
  date: 2024-12-20T08:48:54.936Z,
  func: 'CSVObject',
  params: {},
  traceback: [
    '    at Object.CSVObject (/app/node_modules/@ezs/basics/lib/csv-object.js:12:25)',
    '    at Engine.execWith (/app/node_modules/@ezs/core/lib/engine.js:202:40)',
    '    at /app/node_modules/@ezs/core/lib/engine.js:83:12',
    '    at drainItem (/app/node_modules/concurrent-queue/index.js:96:21)',
    '    at Immediate.drain [as _onImmediate] (/app/node_modules/concurrent-queue/index.js:77:84)',
    '    at processImmediate (node:internal/timers:476:21)'
  ],
  index: 1
}
 [default] 2024-12-20T08:48:54.957Z info: /rootAdmin/system {"method":"GET","remoteIP":"::ffff:172.17.1.3","status":200,"timestamp":"2024-12-20T08:48:54.957Z","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0"}
handleImportError Error: Error during import: Error: item #1 [CSVObject] <TypeError: data.map is not a function>
    at startImport (/app/src/api/services/import.js:121:15)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at runNextTicks (node:internal/process/task_queues:64:3)
    at processImmediate (node:internal/timers:447:9)
    at startJobImport (/app/src/api/workers/import.js:53:5)
@touv touv added the Triage Nouveau problème ou besoin à étudier et à classer label Dec 20, 2024
@touv touv linked a pull request Dec 20, 2024 that will close this issue
@yannguillemin
Copy link
Collaborator

@touv : c'est moi qui faisait des tests avec ezs pour voir comment supprimer renommer lodex_pulished dans un loader...

sourceChunk: `{"lodex_published":"'lodex-published'"}`,

@yannguillemin yannguillemin added Parking Souhait ou besoin à reconsidérer plus tard and removed Triage Nouveau problème ou besoin à étudier et à classer labels Dec 20, 2024
@touv
Copy link
Contributor Author

touv commented Dec 20, 2024

ok, dans tous les cas, le message d'erreur n'était pas parlant, maintenant , il n'y aura plus d'erreur mais les données seront vides

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Parking Souhait ou besoin à reconsidérer plus tard
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants