<div dir="ltr"> I filed a bug report about this a few weeks ago. <div><br></div><div><a href="https://hub.qgis.org/issues/16351">https://hub.qgis.org/issues/16351</a></div><div><br></div><div>I was using the nightly release and noticed that copying attributes worked in some versions but not others.  I havent had the problem since I stopped upgrading the nightly but pasting features is something I dont need to do very often. </div><div><br></div><div>Andrew</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 20, 2017 at 11:18 PM, Reginald Carlier <span dir="ltr"><<a href="mailto:Reginald.Carlier@ingelmunster.be" target="_blank">Reginald.Carlier@ingelmunster.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Richard,<br>
<br>
Yes my second shape has a subset of attributes of the first. In fact only one fieldname matches with the first shape.<br>
In fact the first shape is a modelshape from the digirup project (Belgium) and the second is a modelshape from the DSI project.<br>
If I find the time I will test it on linux. Maybe it is a bug in windows only.<br>
<span class=""><br>
Regards,<br>
<br>
Reginald Carlier<br>
Deskundige GIS<br>
<br>
<br>
</span>-----Oorspronkelijk bericht-----<br>
Van: Richard Duivenvoorde [mailto:<a href="mailto:rdmailings@duif.net">rdmailings@duif.net</a>]<br>
Verzonden: donderdag 20 april 2017 14:42<br>
Aan: Reginald Carlier; '<a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>'<br>
Onderwerp: Re: [Qgis-user] Bug copying features<br>
<div class="HOEnZb"><div class="h5"><br>
On 20-04-17 09:26, Reginald Carlier wrote:<br>
> Hello,<br>
><br>
><br>
><br>
> I am using QGIS 2.18.6 on Windows 7 (OSGEO).<br>
><br>
> I am encountering a bug everytime I want to copy features from one<br>
> layer to another. Some fields of layer 1 are the same in layer 2.<br>
><br>
> As I add the layers to the project, I then set the two layers editable.<br>
> Then I open the attribute table of layer 1 and select all the features.<br>
> Then I copy all the features. Then I select layer2 and I paste all the<br>
> features. As a result the features are copied to layer 2 but in the<br>
> attribute table I can only see null values.<br>
><br>
> The solution for this problem is to save the project and reopen the<br>
> project and then do the steps mentioned here above again. Then the<br>
> features are copied in a correct way.<br>
<br>
Hi Reginald,<br>
<br>
I tried to reproduce your problem here with 2.18.6 (on Debian though).<br>
And I cannot reproduce it. I:<br>
<br>
- opened a dataset and saved it as a 2nd shape<br>
- removed all features from the 2nd shape (to have a shape with exact the same attributes)<br>
- openend both shapes in QGIS<br>
- copied one feature from 1 to 2<br>
- stopped editing of both layers<br>
- note: still not a saved project<br>
- and see the right features in 2...<br>
<br>
So question: is your second dataset maybe ANOTHER shape with a subset of the attributes of the first one?<br>
<br>
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.<br>
Because as you can see it's not easy to reproduce apparently :-(<br>
<br>
Regards,<br>
<br>
Richard Duivenvoorde<br>
<br>
______________________________<wbr>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a></div></div></blockquote></div><br></div>