Here another problem with the Insert: The documentation says that the affectedRows property gives the number of rows which are succesfully inserted. It's also documented that the items returns all successfully imported rows: When we try to import 20 customers we get the following answer: { "errors": [ { "message": "Error: The value is already in use.", "path": [ "useCompany", "associate_create", "values/0" ], "extensions": { "data": { "status": 0 } } }, { "message": "Error: The value is already in use.", "path": [ "useCompany", "associate_create", "values/0" ], "extensions": { "data": { "status": 0 } } }, { "message": "Error: The value is already in use.", "path": [ "useCompany", "associate_create", "values/1" ], "extensions": { "data": { "status": 0 } } }, { "message": "Error: The value is already in use.", "path": [ "useCompany", "associate_create", "values/1" ], "extensions": { "data": { "status": 0 } } }, { "message": "Error: The value is already in use.", "path": [ "useCompany", "associate_create", "values/2" ], "extensions": { "data": { "status": 0 } } }, { "message": "Error: The value is already in use.", "path": [ "useCompany", "associate_create", "values/2" ], "extensions": { "data": { "status": 0 } } }, { "message": "Error: The value is already in use.", "path": [ "useCompany", "associate_create", "values/3" ], "extensions": { "data": { "status": 0 } } }, { "message": "Error: The value is already in use.", "path": [ "useCompany", "associate_create", "values/3" ], "extensions": { "data": { "status": 0 } } }, { "message": "Error: The value is already in use.", "path": [ "useCompany", "associate_create", "values/4" ], "extensions": { "data": { "status": 0 } } }, { "message": "Error: The value is already in use.", "path": [ "useCompany", "associate_create", "values/4" ], "extensions": { "data": { "status": 0 } } }, { "message": "Error: The value is already in use.", "path": [ "useCompany", "associate_create", "values/5" ], "extensions": { "data": { "status": 0 } } }, { "message": "Error: The value is already in use.", "path": [ "useCompany", "associate_create", "values/5" ], "extensions": { "data": { "status": 0 } } }, { "message": "Error: The value is already in use.", "path": [ "useCompany", "associate_create", "values/6" ], "extensions": { "data": { "status": 0 } } }, { "message": "Error: The value is already in use.", "path": [ "useCompany", "associate_create", "values/6" ], "extensions": { "data": { "status": 0 } } }, { "message": "Error: The value is already in use.", "path": [ "useCompany", "associate_create", "values/7" ], "extensions": { "data": { "status": 0 } } }, { "message": "Error: The value is already in use.", "path": [ "useCompany", "associate_create", "values/7" ], "extensions": { "data": { "status": 0 } } }, { "message": "Error: The value is already in use.", "path": [ "useCompany", "associate_create", "values/8" ], "extensions": { "data": { "status": 0 } } }, { "message": "Error: The value is already in use.", "path": [ "useCompany", "associate_create", "values/8" ], "extensions": { "data": { "status": 0 } } } ], "data": { "useCompany": { "associate_create": { "affectedRows": 20, "items": [ { "externalId": "", "customerNo": 0, "name": "Arne Bergfjord" }, { "externalId": "", "customerNo": 0, "name": "Milaim Imeri" }, { "externalId": "", "customerNo": 0, "name": "Leif E. Tømmervåg" }, { "externalId": "", "customerNo": 0, "name": "Supaluck Antarit" }, { "externalId": "", "customerNo": 0, "name": "Jan Anders Hansen-Zahl" }, { "externalId": "", "customerNo": 0, "name": "Knut Kristen Kuløy Kjenstad" }, { "externalId": "", "customerNo": 0, "name": "Alf Rune Totland" }, { "externalId": "", "customerNo": 0, "name": "Nils Harald Østevold" }, { "externalId": "", "customerNo": 0, "name": "Kjell Arne Tokheim" }, { "externalId": "1235", "customerNo": 7001235, "name": "Svein-Ivar Holm" }, { "externalId": "1243", "customerNo": 7001243, "name": "Asbjørn Lochert" }, { "externalId": "2995", "customerNo": 7002995, "name": "Geir Skarstein" }, { "externalId": "740328", "customerNo": 7740328, "name": "Evelyn Olafsen" }, { "externalId": "1289", "customerNo": 7001289, "name": "Sverre Jørgensen" }, { "externalId": "650024", "customerNo": 7650024, "name": "Bjørn Mo" }, { "externalId": "", "customerNo": 0, "name": "HR Danmark" }, { "externalId": "460011", "customerNo": 7460011, "name": "Ola Sukka" }, { "externalId": "460021", "customerNo": 7460021, "name": "Kristian Reitan" }, { "externalId": "", "customerNo": 0, "name": "HR Sogn" }, { "externalId": "", "customerNo": 0, "name": "HR Vestfold" } ] } } }, "extensions": { "vbnxt-trace-id": "0000000000000000a38b590571dc5a3a" } } 20 affected Rows and 20 Items but a bunch of error-messages (because the customers already exists). Would we always get all rows back (also the failed ones) or is this just on the associate table or is this a bug? Florian
... View more