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

Qgis 3.40 Copy/paste not working with attributes values #61166

Open
2 tasks done
alfernet opened this issue Mar 24, 2025 · 4 comments
Open
2 tasks done

Qgis 3.40 Copy/paste not working with attributes values #61166

alfernet opened this issue Mar 24, 2025 · 4 comments
Labels
Attribute Table Bug Either a bug report, or a bug fix. Let's hope for the latter! PostGIS data provider

Comments

@alfernet
Copy link

What is the bug or the crash?

When copy and paste entities, records are well pasted but not the attribute values (whereas the attributes names are the same and field type are the same as well). Everything has a null value.

Steps to reproduce the issue

select entities, click copy entities, in the destination table, paste entities --> rows for the new entities are well created, attributes values are lost.

Versions

<style type="text/css"> p, li { white-space: pre-wrap; } </style>
Version de QGIS 3.40.4-Bratislava
Révision du code 4dd7d7e
 
Bibliothèques
Version de Qt 5.15.13
Version de Python 3.12.9
GDAL version 3.10.2
Version de Proj 9.5.1
Version de la base de données du registre EPSG v11.022 (2024-11-05)
Version de GEOS 3.13.0-CAPI-1.19.0
Version de SQLite 3.46.1
Version de PDAL 2.8.3
Version du client PostgreSQL unknown
Version de SpatiaLite 5.1.0
Version de QWT 6.3.0
Version de QScintilla2 2.14.1
Version de l'OS Windows 11 Version 2009
 
Extensions Python actives
changeDataSource 3.1
color_attribute 0.2.1
easy_labeling 1.1
gban 1.1
latlontools 3.6.14
LayerBoard 1.0.1
NNJoin 3.1.3
OSMDownloader 1.0.3
quick_map_services 0.19.33
splicy_plugin 0.4.1
db_manager 0.1.20
MetaSearch 0.3.6
processing 2.12.99
Version de QGIS 3.40.4-Bratislava Révision du code [4dd7d7e](https://github.com/qgis/QGIS/commit/4dd7d7e969)

Bibliothèques
Version de Qt
5.15.13
Version de Python
3.12.9
GDAL version
3.10.2
Version de Proj
9.5.1
Version de la base de données du registre EPSG
v11.022 (2024-11-05)
Version de GEOS
3.13.0-CAPI-1.19.0
Version de SQLite
3.46.1
Version de PDAL
2.8.3
Version du client PostgreSQL
unknown
Version de SpatiaLite
5.1.0
Version de QWT
6.3.0
Version de QScintilla2
2.14.1
Version de l'OS
Windows 11 Version 2009

Extensions Python actives
changeDataSource
3.1
color_attribute
0.2.1
easy_labeling
1.1
gban
1.1
latlontools
3.6.14
LayerBoard
1.0.1
NNJoin
3.1.3
OSMDownloader
1.0.3
quick_map_services
0.19.33
splicy_plugin
0.4.1
db_manager
0.1.20
MetaSearch
0.3.6
processing
2.12.99

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

No response

@alfernet alfernet added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Mar 24, 2025
@agiudiceandrea
Copy link
Member

@alfernet, thanks for reporting. I cannot replicate the issue running QGIS 3.40.5 on Windows 10. Please provide sample QGIS project and layers and detailed step-by-step instruction in order to replicate the issue.

@agiudiceandrea agiudiceandrea added Attribute Table Feedback Waiting on the submitter for answers labels Mar 29, 2025
@alfernet
Copy link
Author

thanks for your reply. To be more precise it happens when I want to paste data in a postgis table, and the field is a pkey. It seams that it is now the right behavior of qgis : not possible to paste data in a pkey field ? Do you confirm this ? Many thanks in advance,

@agiudiceandrea agiudiceandrea added PostGIS data provider and removed Feedback Waiting on the submitter for answers labels Mar 31, 2025
@agiudiceandrea
Copy link
Member

@alfernet, didn't the issue occur using a previous version of QGIS? If it didn't, which version?

@alfernet
Copy link
Author

@agiudiceandrea So far I was using 3.16.4 and it was working well with this version, I wanted to use the 3.40.4 and discovered the same process does not work. I then tried with the 3.38.3 and it does not work as well. I have not tried with other previous ltr thinking this was now the new way of QGIS. Here is a gif showing how I proceed.
I copy elements from a shapefile, to paste them in a postgis table. Same field name on both table, , destination field in the postgis table is a pkey. If the field is empty when saving, postgis will generate the values. On 3.16.4, I could paste values, the pasted values were saved.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Attribute Table Bug Either a bug report, or a bug fix. Let's hope for the latter! PostGIS data provider
Projects
None yet
Development

No branches or pull requests

2 participants