Hi Reginald,
I experience this regularly, I'm yet to work out what causes it to happen.  I 
have not raised an issue because I'm still not able to reproduce it.  Most 
times I see it happen is right at the start of a session - restarting QGIS 
generally fixes it, but sometimes it starts to happen after many successful 
copy pastes.

By chance did you see my post from a few weeks ago: "Last Y coordinate 
sometimes dropped on pasted geometries"?  Usually when I get the pasted NULL 
values I also experience the last Y coordinate turning to zero.

Most of my layers are MS SQL spatial. I'm using 2.18.4 on Win 7 32 bit

I haven't identified the use of any particular action or plugin that triggers 
the problem.  I thought it may be some contention for the clipboard, if I have 
excel open I usually see that message in excel about being unable to clear the 
clipboard because another app is using it.  But I've now had it happen when 
excel is not running.

I've always had to restart QGIS once the problem begins. However just yesterday 
I started to get the pasted NULLs, I clicked a few different parts of the QGIS 
interface - menus, changed the active layer, etc, then hit Control-C a few more 
times, switched layers and pasted successfully!  That was a first, no restart 
required.  I have a heavy editing session coming up, so I'll see what happens 
today.

Regards,
Martin.

-----Original Message-----
From: Qgis-user [mailto:[email protected]] On Behalf Of Richard 
Duivenvoorde
Sent: Thursday, 20 April 2017 10:42 PM
To: Reginald Carlier <[email protected]>; 
'[email protected]' <[email protected]>
Subject: Re: [Qgis-user] Bug copying features

On 20-04-17 09:26, Reginald Carlier wrote:
> Hello,
> 
>  
> 
> I am using QGIS 2.18.6 on Windows 7 (OSGEO).
> 
> I am encountering a bug everytime I want to copy features from one 
> layer to another. Some fields of layer 1 are the same in layer 2.
> 
> As I add the layers to the project, I then set the two layers editable.
> Then I open the attribute table of layer 1 and select all the features.
> Then I copy all the features. Then I select layer2 and I paste all the 
> features. As a result the features are copied to layer 2 but in the 
> attribute table I can only see null values.
> 
> The solution for this problem is to save the project and reopen the 
> project and then do the steps mentioned here above again. Then the 
> features are copied in a correct way.

Hi Reginald,

I tried to reproduce your problem here with 2.18.6 (on Debian though).
And I cannot reproduce it. I:

- opened a dataset and saved it as a 2nd shape
- removed all features from the 2nd shape (to have a shape with exact the same 
attributes)
- openend both shapes in QGIS
- copied one feature from 1 to 2
- stopped editing of both layers
- note: still not a saved project
- and see the right features in 2...

So question: is your second dataset maybe ANOTHER shape with a subset of the 
attributes of the first one?

Anyway, this looks like an issue, feel free to create an issue for it, BUT make 
it as reproducable as possible: add small datasets to it.
Because as you can see it's not easy to reproduce apparently :-(

Regards,

Richard Duivenvoorde

_______________________________________________
Qgis-user mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

This email is intended for the named recipient only.  The information it 
contains may be confidential.  If you are not the intended recipient you must 
not reproduce or distribute any part of this email, disclose its contents to 
any other party or take any action in reliance on it.  If you have received 
this email in error, please contact the sender immediately and delete the 
message.
_______________________________________________
Qgis-user mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to