You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* // Handling the response. See <a href="https://developers.google.com/bigquery/troubleshooting-errors">
1018
+
* // Troubleshooting Errors</a> for best practices on how to handle errors.
1015
1019
* //-
1016
-
* function insertHandler(err, insertErrors, apiResponse) {
1017
-
* // err (object):
1018
-
* // An API error occurred.
1019
-
*
1020
-
* // insertErrors (object[]):
1021
-
* // If populated, some rows failed to insert, while others may have
1022
-
* // succeeded.
1023
-
* //
1024
-
* // insertErrors[].row (original individual row object passed to `insert`)
1025
-
* // insertErrors[].errors[].reason
1026
-
* // insertErrors[].errors[].message
1027
-
*
1028
-
* // See https://developers.google.com/bigquery/troubleshooting-errors for
1029
-
* // recommendations on handling errors.
1020
+
* function insertHandler(err, apiResponse) {
1021
+
* if (err) {
1022
+
* // An API error or partial failure occurred.
1023
+
*
1024
+
* if (err.name === 'PartialFailureError') {
1025
+
* // Some rows failed to insert, while others may have succeeded.
1026
+
*
1027
+
* // err.errors (object[]):
1028
+
* // err.errors[].row (original row object passed to `insert`)
0 commit comments