Situation
I was editing an LBF form and came across the error below when trying to add a new field. Now I can’t add or edit any more info unless its in the initial group that was created when the form was created or the default group. Can anyone explain this?: Query Error
ERROR: query failed: INSERT INTO layout_options ( form_id, source, field_id, title, group_id, seq, uor, fld_length, fld_rows, titlecols, datacols, data_type, edit_options, default_value, description, max_length, list_id, list_backup_id ) VALUES ( ‘LBF_PMR_exam’,’’,’’,’’,’’,’’,’’,’’,’’,’’,’’,’’,’’,’’,’’,’’,’’,’’ )
Error: Duplicate entry ‘LBF_PMR_exam–0’ for key ‘PRIMARY’
/var/www/html/openemr/interface/super/edit_layout.php at 428:sqlStatement
OpenEMR Version
I’m using OpenEMR version 5.0.1
Browser:
I’m using: Chrome
Operating System
I’m using: Windows 10 x64
Logs
|---|---|---|---|---|---|---|---|---|
|2019-03-05 01:11|other-insert|other|chris|Chris Hodak|Default|0|0|INSERT INTO layout_options ( form_id, source, field_id, title, group_id, seq, uor, fld_length, fld_rows, titlecols, datacols, data_type, edit_options, default_value, description, max_length, list_id, list_backup_id ) VALUES ( 'LBF_PMR_exam','','','','','','','','','','','','','','','','','' )|
|2019-03-05 01:13|other-update|other|chris|Chris Hodak|Default|0|1|UPDATE layout_options SET field_id = 'newdx', source = 'F', title = 'New dx', group_id = '', seq = '0', uor = '1', fld_length = '', fld_rows = '', max_length = '0', titlecols = '0', datacols = '0', data_type= '3', list_id= '', list_backup_id= '', edit_options = '', default_value = '', description = '', conditions = '', validation = '' WHERE form_id = 'LBF_PMR_exam' AND field_id = ''|
|2019-03-05 01:13|other-update|other|chris|Chris Hodak|Default|0|1|UPDATE layout_options SET field_id = 'sub_nochange', source = 'F', title = 'Unchanged From Prior Eval', group_id = '1', seq = '10', uor = '1', fld_length = '0', fld_rows = '', max_length = '0', titlecols = '1', datacols = '1', data_type= '21', list_id= '', list_backup_id= '', edit_options = '', default_value = '', description = '', conditions = '', validation = '' WHERE form_id = 'LBF_PMR_exam' AND field_id = 'sub_nochange'|