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

Split: Persisting new entries on PostgreSql doesn't work with the generated dialog #71

Open
ivy-rew opened this issue Dec 11, 2024 · 0 comments

Comments

@ivy-rew
Copy link
Member

ivy-rew commented Dec 11, 2024

Dear @ivy-sgi, we have found the following bug,
splitted fron #64 reported by @FrohnmaierMariano-prodato :

we have an Excel table named "personal", looks as follows:
image

Bug Description

The persistence save method doesn't work, as the id is not generated, when using PostgreSQL. This might be related to issue 24

To Reproduce

  1. start process
  2. create a new entry via respective button and fill in the text fields in the detail view
  3. click on Proceed button to save the new entity => causes error message (see below)

Potential Workaround:

Tick the generated property in the following window in the entity class:
image

Expected behavior

Both buttons should work.

Error Screenshots

IvyScriptRuntimeException: IvyScript Runtime Exception in
Instruction:
   ivy.persistence.pu.persist(out.edit)
Block:
my.namespace.ausleihe.PersonalManager.PersonalManagerData out;
out = in;
if ! out.edit.#id.is initialized()
{
   out.edit = (ivy.persistence.pu.persist(out.edit) AS my.namespace.ausleihe.Personal);
   out.entries.add(out.edit);
}
else
{
   ivy.persistence.pu.merge(out.edit);
};
out.edit = null;
IvyScriptMethodInvocationException: Error calling method persist(Object) on an object of class ch.ivyteam.ivy.process.data.persistence.internal.IvyEntityManager.
PersistenceException: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): my.namespace.ausleihe.Personal
IdentifierGenerationException: ids for this class must be manually assigned before calling save(): my.namespace.ausleihe.Personal

Desktop (please complete the following information):

  • OS: Windows
  • Browser: integrated webbrowser in Designer Version 10.0.21
  • Excel Importer Version: 10.0.12
  • PostgreSQL DB: PostgreSQL 15.8 (Debian 15.8-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant