diff --git a/src/v0/destinations/marketo_bulk_upload/marketo_bulk_upload.util.test.js b/src/v0/destinations/marketo_bulk_upload/marketo_bulk_upload.util.test.js index c41fa6855b..875b0d8280 100644 --- a/src/v0/destinations/marketo_bulk_upload/marketo_bulk_upload.util.test.js +++ b/src/v0/destinations/marketo_bulk_upload/marketo_bulk_upload.util.test.js @@ -408,7 +408,7 @@ describe('checkEventStatusViaSchemaMatching', () => { const result = checkEventStatusViaSchemaMatching(event, fieldSchemaMapping); expect(result).toEqual({ - job1: 'invalid email for value 123 ', + job1: 'invalid email', }); }); @@ -448,8 +448,8 @@ describe('checkEventStatusViaSchemaMatching', () => { const result = checkEventStatusViaSchemaMatching(event, fieldSchemaMapping); expect(result).toEqual({ - job1: 'invalid id for value value1 ', - job2: 'invalid testCustomFieldScore for value false ', + job1: 'invalid id', + job2: 'invalid testCustomFieldScore', }); }); @@ -505,7 +505,7 @@ describe('checkEventStatusViaSchemaMatching', () => { const result = checkEventStatusViaSchemaMatching(event, fieldSchemaMapping); expect(result).toEqual({ - job1: 'invalid abc for value value2 ', + job1: 'invalid abc', }); }); @@ -534,7 +534,7 @@ describe('checkEventStatusViaSchemaMatching', () => { const result = checkEventStatusViaSchemaMatching(event, fieldSchemaMapping); expect(result).toEqual({ - job1: 'invalid id for value null ', + job1: 'invalid id', }); }); }); diff --git a/src/v0/destinations/marketo_bulk_upload/util.js b/src/v0/destinations/marketo_bulk_upload/util.js index 70f8509bba..fac04af431 100644 --- a/src/v0/destinations/marketo_bulk_upload/util.js +++ b/src/v0/destinations/marketo_bulk_upload/util.js @@ -406,7 +406,7 @@ const checkEventStatusViaSchemaMatching = (event, fieldMap) => { const actualDataType = typeof paramValue; if (!mismatchedFields[job_id] && actualDataType !== expectedDataType) { - mismatchedFields[job_id] = `invalid ${paramName} for value ${paramValue} `; + mismatchedFields[job_id] = `invalid ${paramName}`; } }); });