I’m creating an integration for LivechatInc that has a custom connector. And this is one example if I want to insert data that already exists in my database. (The way I found to avoid duplicated data is using the annotation:
Stats: read , processed , updated , added , deleted , invalid entities: 
For some reason even having “invalid entities”, the message above is being saved on my oro_integration_channel_status with “code” = 1.
1) Isn’t it suppose to save code = 2 that means failed ?
I’m using read() method in my connector to add an extra data with the lastSyncDate following this (which by the way only works if I add return $item. I submitted a PR fixing the doc)
2) Is it possible to know from my read() method if I got “invalid entities” ?
You must be logged in to reply to this topic.