Skip to content

Conversation

makroxyz
Copy link

@makroxyz makroxyz commented Jun 8, 2016

This fix allows to update the previous imported row with the new one (of course by pk) oherwise it throws \yii\db\IntegrityException

This fix allows to update the previous imported row with the new one (of course by pk) oherwise it throws \yii\db\IntegrityException
@arogachev
Copy link
Owner

Could you provide an example of data which leads to this error?

@makroxyz
Copy link
Author

makroxyz commented Jun 8, 2016

I have this incremental (last overwrite previous) XLS and SN is pk

SN qty
1111111 5
2222222 3
1111111 6 <---- error

@arogachev
Copy link
Owner

OK, I'll try to test it and investigate deeper. But what's the purpose of having two rows with the same ids?

@makroxyz
Copy link
Author

makroxyz commented Jun 8, 2016

A customer sends an incremental file... the same SN could change some
properties in time...
Il 08 giu 2016 11:58 AM, "Alexey Rogachev" [email protected] ha
scritto:

OK, I'll try to test it and investigate deeper. But what's the purpose of
having two rows with the same ids?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#33 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AB-VvaiNwNb87YBN2NpKdTaKSHlyafO-ks5qJpJWgaJpZM4Iwpwr
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants