Skip to content

[BUG]: specific error details when uploading article files are missing #1305

Description

@humanwebdevelopment

Describe the bug
The new article unit system is very sensitive to any kind of typo, or unit specific format, however the only error that is reproduced is "A problem has occured: undefined method `[]' for nil:NilClass"

This makes troubleshooting of where this error comes from very complicated, sometimes taking me hours to track the problem. Please include at least an article name or row number as reference to where the error comes from.

#1300 can be one of these causes. But also something small like a capital letter that is missing for the article availability indicator.

Also when the "Delete unavailable articles." is checked during upload, any errors appearing in articles that are not available, will still cause the generic import error. As I am using automatically populated article lists, sometimes articles (and the prices, etc.) are unavailable for a week. Instead of having to delete the product and enter it to the list again the next time it is available, I now add dummy values for price, etc. to avoid the import error for unavailable articles.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
Article / issue specific error logging for uploading articles.

Ignoring errors for unavailable articles

Screenshots
If applicable, add screenshots to help explain your problem.

Foodsoft Version
4.9.1

Logfile
If applicable, add relevant log information.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions