-
Notifications
You must be signed in to change notification settings - Fork 5
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
DBI Exception on RequestItem #12
Comments
What branch of the NCIP server are you running? |
I am running the master branch. |
Can you try switching to the v21.11 branch and see if that works for you? |
when using v21.11 i get the following error:
I managed to resolve "No valid librarian" warning by changing |
@BibliothekTHWildau the NCIP server now needs a Koha staff account to "act as" for certain actions in Koha. I would recommend creating a special staff account just for NCIP, then setting the borrowernumber in the NCIP config. The option is
If you find your config.yml it should already have that line in there. |
@kylemhall I already had a staff user with a carnumber 'ncip'. When running But the DBI Exception issue remains the same.
and then calling |
Ah, that setting needs to be the borrowernumber of the user, not the userid. |
Using NCIP server with Koha 21.11 and sending a RequestItem message using ItemIdentifierValue (instead of BibliographicRecordIdentifier) ends up with the following error:
DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st execute failed: Cannot add or update a child row: a foreign key constraint fails (
koha_hsbwildau.
reserves, CONSTRAINT
reserves_ibfk_2FOREIGN KEY (
biblionumber) REFERENCES
biblio(
biblionumber) ON DELETE CASCADE ON UPDATE CASCADE) at /usr/share/koha/lib/Koha/Object.pm line 170
This errors seems to occur due to a missing biblionumber in Koha.pm call of AddReserve.
When i set the missing biblionumber with $item->biblionumber it works.
Example request:
The text was updated successfully, but these errors were encountered: