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

Schedule period unknown when import #160

Open
pnemonic78 opened this issue Jun 23, 2024 · 0 comments
Open

Schedule period unknown when import #160

pnemonic78 opened this issue Jun 23, 2024 · 0 comments

Comments

@pnemonic78
Copy link
Collaborator

Steps to reproduce the behaviour

  1. Import a desktop gnucash book with schedules

Expected behaviour

No errors and warnings about period types.

Actual behaviour

Unsupported period constant: end of month (Ask Gemini)
   java.lang.IllegalArgumentException: No enum constant org.gnucash.android.model.PeriodType.END OF MONTH
      at java.lang.Enum.valueOf(Enum.java:302)
      at org.gnucash.android.model.PeriodType.valueOf(Unknown Source:2)
      at org.gnucash.android.importer.GncXmlHandler.endElement(GncXmlHandler.java:728)
      at org.apache.harmony.xml.ExpatParser.endElement(ExpatParser.java:167)
      at org.apache.harmony.xml.ExpatParser.appendBytes(Native Method)
      at org.apache.harmony.xml.ExpatParser.parseFragment(ExpatParser.java:526)
      at org.apache.harmony.xml.ExpatParser.parseDocument(ExpatParser.java:487)
      at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:324)
      at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:287)
      at org.gnucash.android.importer.GncXmlImporter.parse(GncXmlImporter.java:70)
      at org.gnucash.android.importer.ImportAsyncTask.doInBackground(ImportAsyncTask.java:84)
      at org.gnucash.android.importer.ImportAsyncTask.doInBackground(ImportAsyncTask.java:44)
      at android.os.AsyncTask$3.call(AsyncTask.java:394)
      at java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
      at java.lang.Thread.run(Thread.java:1012)
Unsupported period constant: nth weekday (Ask Gemini)
   java.lang.IllegalArgumentException: No enum constant org.gnucash.android.model.PeriodType.NTH WEEKDAY
      at java.lang.Enum.valueOf(Enum.java:302)
      at org.gnucash.android.model.PeriodType.valueOf(Unknown Source:2)
      at org.gnucash.android.importer.GncXmlHandler.endElement(GncXmlHandler.java:728)
      at org.apache.harmony.xml.ExpatParser.endElement(ExpatParser.java:167)
      at org.apache.harmony.xml.ExpatParser.appendBytes(Native Method)
      at org.apache.harmony.xml.ExpatParser.parseFragment(ExpatParser.java:526)
      at org.apache.harmony.xml.ExpatParser.parseDocument(ExpatParser.java:487)
      at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:324)
      at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:287)
      at org.gnucash.android.importer.GncXmlImporter.parse(GncXmlImporter.java:70)
      at org.gnucash.android.importer.ImportAsyncTask.doInBackground(ImportAsyncTask.java:84)
      at org.gnucash.android.importer.ImportAsyncTask.doInBackground(ImportAsyncTask.java:44)
      at android.os.AsyncTask$3.call(AsyncTask.java:394)
      at java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
      at java.lang.Thread.run(Thread.java:1012)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants