iPad fails to sync : unknown error 1140
Connect iOS Device
Go to Photos tab in iTunes
Uncheck "Sync Photos from iPhoto" option
Press "Apply" and/or "Sync
Check "Sync Photos from iPhoto" option


Now everything should be as it was before and the error is gone :D