pgadmin4 icon indicating copy to clipboard operation
pgadmin4 copied to clipboard

Something Went Wrong Displayed when try to add a new column in the table

Open Peter-Ho-Netflix opened this issue 2 weeks ago • 2 comments

Please note that security bugs or issues should be reported to [email protected].

Describe the bug

The ‘Something Went Wrong’ screen displays in the window when I try to add a new column in the table.

屏幕截图 2026-11-13 113906 屏幕截图 2026-11-13 113853

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Schena'->'Table'
  2. Right Click one of the table, select 'Properties'
  3. Go to 'Columns' Tag
  4. Click '+' Button
  5. 'Something Went Wrong' message displayed!

Expected behavior

A new empty column should be displayed and let me fill the detail of the column.

Error message

Something Went Wrong.

Screenshots

image image

Desktop (please complete the following information):

  • OS: Windows-11-10.0.26300-SP0
  • pgAdmin version: 9.19
  • Mode: Desktop
  • Package type: Winget

Additional context

Null

Peter-Ho-Netflix avatar Nov 13 '26 03:11 Peter-Ho-Netflix

This looks like the same crash as #10700. In 9.19, adding a row to the table's Columns grid also runs the foreign key depChange, which falls through to the ADD_ROW branch meant for the foreign key's own column mappings and reads fkHeaderSchema.origData.references before the foreign key editor has been opened. That throws TypeError: Cannot read properties of undefined (reading 'references'), and the error boundary shows "Something went wrong." It happens on tables that have at least one foreign key.

It was fixed on master in 2753415 (#10735), which was merged after 9.19 was released, so it should be resolved in 9.20.

arvindkumar-ship-it avatar Nov 14 '26 14:11 arvindkumar-ship-it

Thanks for the report. This is the same crash as #10700, fixed on master in 27534155d (#10735) after 9.19 was released, so it will be resolved in 9.20.

dpage avatar Nov 18 '26 11:11 dpage