Scripted APIs to create event

I have written a synthetic script to create an Event type. But the code is not working. Please find the script log below for your information.

{
  results: [ { count: 2 } ],
  performanceStats: {
    inspectedCount: 553,
    omittedCount: 0,
    matchCount: 2,
    wallClockTime: 26,
    matchedFromFileRead: 2,
    matchedViaCache: 0
  },
  metadata: {
    accounts: [ 3014900 ],
    eventTypes: [ 'SyntheticCheck' ],
    eventType: 'SyntheticCheck',
    openEnded: true,
    beginTime: '2022-09-02T08:53:43Z',
    endTime: '2022-09-02T09:08:43Z',
    beginTimeMillis: 1662108823042,
    endTimeMillis: 1662109723042,
    rawSince: '15 MINUTES AGO',
    rawUntil: 'NOW',
    rawCompareWith: '',
    guid: '878d6f7d-44dd-0fbd-7228-a98209dd9384',
    routerGuid: '878d6f7d-44dd-0fbd-7228-a98209dd9384',
    messages: [],
    contents: [ [Object] ]
  }
}
{
  results: [ { count: 0 } ],
  performanceStats: {
    inspectedCount: 877,
    omittedCount: 0,
    matchCount: 0,
    wallClockTime: 24,
    matchedFromFileRead: 0,
    matchedViaCache: 0
  },
  metadata: {
    accounts: [ 3014900 ],
    eventTypes: [ 'TransactionError' ],
    eventType: 'TransactionError',
    openEnded: true,
    beginTime: '2022-09-02T08:53:43Z',
    endTime: '2022-09-02T09:08:43Z',
    beginTimeMillis: 1662108823044,
    endTimeMillis: 1662109723044,
    rawSince: '15 MINUTES AGO',
    rawUntil: 'NOW',
    rawCompareWith: '',
    guid: '20b6795e-f8e1-b7d0-0aea-5bc2ef0ab6a4',
    routerGuid: '20b6795e-f8e1-b7d0-0aea-5bc2ef0ab6a4',
    messages: [],
    contents: [ [Object] ]
  }
}
{
  results: [ { count: 0 } ],
  performanceStats: {
    inspectedCount: 5046,
    omittedCount: 0,
    matchCount: 0,
    wallClockTime: 25,
    matchedFromFileRead: 0,
    matchedViaCache: 0
  },
  metadata: {
    accounts: [ 3014903 ],
    eventTypes: [ 'Transaction' ],
    eventType: 'Transaction',
    openEnded: true,
    beginTime: '2022-09-02T08:53:43Z',
    endTime: '2022-09-02T09:08:43Z',
    beginTimeMillis: 1662108823048,
    endTimeMillis: 1662109723048,
    rawSince: '15 MINUTES AGO',
    rawUntil: 'NOW',
    rawCompareWith: '',
    guid: 'a5ee8890-d6e8-77a2-905c-0815157917ca',
    routerGuid: 'a5ee8890-d6e8-77a2-905c-0815157917ca',
    messages: [],
    contents: [ [Object] ]
  }
}
{
  results: [ { count: 0 } ],
  performanceStats: {
    inspectedCount: 341,
    omittedCount: 0,
    matchCount: 0,
    wallClockTime: 32,
    matchedFromFileRead: 0,
    matchedViaCache: 0
  },
  metadata: {
    accounts: [ 2948930 ],
    eventTypes: [ 'TransactionError' ],
    eventType: 'TransactionError',
    openEnded: true,
    beginTime: '2022-09-02T08:53:43Z',
    endTime: '2022-09-02T09:08:43Z',
    beginTimeMillis: 1662108823046,
    endTimeMillis: 1662109723046,
    rawSince: '15 MINUTES AGO',
    rawUntil: 'NOW',
    rawCompareWith: '',
    guid: 'baf450d9-2648-fef9-1109-db7b3669e91c',
    routerGuid: 'baf450d9-2648-fef9-1109-db7b3669e91c',
    messages: [],
    contents: [ [Object] ]
  }
}
{
  results: [ { count: 0 } ],
  performanceStats: {
    inspectedCount: 20199,
    omittedCount: 0,
    matchCount: 0,
    wallClockTime: 34,
    matchedFromFileRead: 0,
    matchedViaCache: 0
  },
  metadata: {
    accounts: [ 3014904 ],
    eventTypes: [ 'TransactionError' ],
    eventType: 'TransactionError',
    openEnded: true,
    beginTime: '2022-09-02T08:53:43Z',
    endTime: '2022-09-02T09:08:43Z',
    beginTimeMillis: 1662108823046,
    endTimeMillis: 1662109723046,
    rawSince: '15 MINUTES AGO',
    rawUntil: 'NOW',
    rawCompareWith: '',
    guid: 'd35f0733-9dca-5154-132e-378eea8e0619',
    routerGuid: 'd35f0733-9dca-5154-132e-378eea8e0619',
    messages: [],
    contents: [ [Object] ]
  }
}
{
  results: [ { count: 0 } ],
  performanceStats: {
    inspectedCount: 15161,
    omittedCount: 0,
    matchCount: 0,
    wallClockTime: 48,
    matchedFromFileRead: 0,
    matchedViaCache: 0
  },
  metadata: {
    accounts: [ 2948931 ],
    eventTypes: [ 'TransactionError' ],
    eventType: 'TransactionError',
    openEnded: true,
    beginTime: '2022-09-02T08:53:43Z',
    endTime: '2022-09-02T09:08:43Z',
    beginTimeMillis: 1662108823041,
    endTimeMillis: 1662109723041,
    rawSince: '15 MINUTES AGO',
    rawUntil: 'NOW',
    rawCompareWith: '',
    guid: '7fc762eb-00a7-0457-b035-9c240fdd6ce0',
    routerGuid: '7fc762eb-00a7-0457-b035-9c240fdd6ce0',
    messages: [],
    contents: [ [Object] ]
  }
}
{
  results: [ { count: 0 } ],
  performanceStats: {
    inspectedCount: 553,
    omittedCount: 0,
    matchCount: 0,
    wallClockTime: 45,
    matchedFromFileRead: 0,
    matchedViaCache: 0
  },
  metadata: {
    accounts: [ 3014900 ],
    eventTypes: [ 'SyntheticCheck' ],
    eventType: 'SyntheticCheck',
    openEnded: true,
    beginTime: '2022-09-02T08:53:43Z',
    endTime: '2022-09-02T09:08:43Z',
    beginTimeMillis: 1662108823044,
    endTimeMillis: 1662109723044,
    rawSince: '15 MINUTES AGO',
    rawUntil: 'NOW',
    rawCompareWith: '',
    guid: 'a10b2b86-9f98-dd8f-ad7b-0e63c28d7b9a',
    routerGuid: 'a10b2b86-9f98-dd8f-ad7b-0e63c28d7b9a',
    messages: [],
    contents: [ [Object] ]
  }
}
{
  results: [ { count: 1 } ],
  performanceStats: {
    inspectedCount: 10675,
    omittedCount: 0,
    matchCount: 1,
    wallClockTime: 53,
    matchedFromFileRead: 1,
    matchedViaCache: 0
  },
  metadata: {
    accounts: [ 2781667 ],
    eventTypes: [ 'SyntheticCheck' ],
    eventType: 'SyntheticCheck',
    openEnded: true,
    beginTime: '2022-09-02T08:53:43Z',
    endTime: '2022-09-02T09:08:43Z',
    beginTimeMillis: 1662108823037,
    endTimeMillis: 1662109723037,
    rawSince: '15 MINUTES AGO',
    rawUntil: 'NOW',
    rawCompareWith: '',
    guid: 'ec48a88b-d21a-0e4e-b75e-12a4989b514d',
    routerGuid: 'ec48a88b-d21a-0e4e-b75e-12a4989b514d',
    messages: [],
    contents: [ [Object] ]
  }
}
{
  results: [ { count: 0 } ],
  performanceStats: {
    inspectedCount: 738,
    omittedCount: 0,
    matchCount: 0,
    wallClockTime: 39,
    matchedFromFileRead: 0,
    matchedViaCache: 0
  },
  metadata: {
    accounts: [ 3014903 ],
    eventTypes: [ 'TransactionError' ],
    eventType: 'TransactionError',
    openEnded: true,
    beginTime: '2022-09-02T08:53:43Z',
    endTime: '2022-09-02T09:08:43Z',
    beginTimeMillis: 1662108823050,
    endTimeMillis: 1662109723050,
    rawSince: '15 MINUTES AGO',
    rawUntil: 'NOW',
    rawCompareWith: '',
    guid: '05fd97c8-da68-53c1-a36c-72676c563e01',
    routerGuid: '05fd97c8-da68-53c1-a36c-72676c563e01',
    messages: [],
    contents: [ [Object] ]
  }
}
{
  results: [ { count: 0 } ],
  performanceStats: {
    inspectedCount: 10675,
    omittedCount: 0,
    matchCount: 0,
    wallClockTime: 50,
    matchedFromFileRead: 0,
    matchedViaCache: 0
  },
  metadata: {
    accounts: [ 2781667 ],
    eventTypes: [ 'SyntheticCheck' ],
    eventType: 'SyntheticCheck',
    openEnded: true,
    beginTime: '2022-09-02T08:53:43Z',
    endTime: '2022-09-02T09:08:43Z',
    beginTimeMillis: 1662108823041,
    endTimeMillis: 1662109723041,
    rawSince: '15 MINUTES AGO',
    rawUntil: 'NOW',
    rawCompareWith: '',
    guid: '7b4289b9-e159-5d4a-f0f9-8c038891a839',
    routerGuid: '7b4289b9-e159-5d4a-f0f9-8c038891a839',
    messages: [],
    contents: [ [Object] ]
  }
}
{
  results: [ { count: 357 } ],
  performanceStats: {
    inspectedCount: 18487,
    omittedCount: 0,
    matchCount: 357,
    wallClockTime: 62,
    matchedFromFileRead: 357,
    matchedViaCache: 0
  },
  metadata: {
    accounts: [ 2948930 ],
    eventTypes: [ 'Transaction' ],
    eventType: 'Transaction',
    openEnded: true,
    beginTime: '2022-09-02T08:53:43Z',
    endTime: '2022-09-02T09:08:43Z',
    beginTimeMillis: 1662108823049,
    endTimeMillis: 1662109723049,
    rawSince: '15 MINUTES AGO',
    rawUntil: 'NOW',
    rawCompareWith: '',
    guid: '27992fb2-62ee-2ef0-250a-9c14bffa166e',
    routerGuid: '27992fb2-62ee-2ef0-250a-9c14bffa166e',
    messages: [],
    contents: [ [Object] ]
  }
}
{
  results: [ { count: 0 } ],
  performanceStats: {
    inspectedCount: 35572,
    omittedCount: 0,
    matchCount: 0,
    wallClockTime: 83,
    matchedFromFileRead: 0,
    matchedViaCache: 0
  },
  metadata: {
    accounts: [ 2781667 ],
    eventTypes: [ 'TransactionError' ],
    eventType: 'TransactionError',
    openEnded: true,
    beginTime: '2022-09-02T08:53:43Z',
    endTime: '2022-09-02T09:08:43Z',
    beginTimeMillis: 1662108823039,
    endTimeMillis: 1662109723039,
    rawSince: '15 MINUTES AGO',
    rawUntil: 'NOW',
    rawCompareWith: '',
    guid: '5a4b07ab-4fee-ae72-8d82-c60272d76892',
    routerGuid: '5a4b07ab-4fee-ae72-8d82-c60272d76892',
    messages: [],
    contents: [ [Object] ]
  }
}
{
  results: [ { count: 0 } ],
  performanceStats: {
    inspectedCount: 2472373,
    omittedCount: 0,
    matchCount: 0,
    wallClockTime: 75,
    matchedFromFileRead: 0,
    matchedViaCache: 0
  },
  metadata: {
    accounts: [ 2781667 ],
    eventTypes: [ 'Transaction' ],
    eventType: 'Transaction',
    openEnded: true,
    beginTime: '2022-09-02T08:53:43Z',
    endTime: '2022-09-02T09:08:43Z',
    beginTimeMillis: 1662108823040,
    endTimeMillis: 1662109723040,
    rawSince: '15 MINUTES AGO',
    rawUntil: 'NOW',
    rawCompareWith: '',
    guid: 'c41f171a-0701-dc3f-722f-a9abfb0a4207',
    routerGuid: 'c41f171a-0701-dc3f-722f-a9abfb0a4207',
    messages: [],
    contents: [ [Object] ]
  }
}
{
  results: [ { count: 0 } ],
  performanceStats: {
    inspectedCount: 35203,
    omittedCount: 0,
    matchCount: 0,
    wallClockTime: 100,
    matchedFromFileRead: 0,
    matchedViaCache: 0
  },
  metadata: {
    accounts: [ 3014900 ],
    eventTypes: [ 'Transaction' ],
    eventType: 'Transaction',
    openEnded: true,
    beginTime: '2022-09-02T08:53:43Z',
    endTime: '2022-09-02T09:08:43Z',
    beginTimeMillis: 1662108823048,
    endTimeMillis: 1662109723048,
    rawSince: '15 MINUTES AGO',
    rawUntil: 'NOW',
    rawCompareWith: '',
    guid: 'd356c78d-34d5-d573-aad4-7902c2bce592',
    routerGuid: 'd356c78d-34d5-d573-aad4-7902c2bce592',
    messages: [],
    contents: [ [Object] ]
  }
}
{
  results: [ { count: 6716 } ],
  performanceStats: {
    inspectedCount: 330310,
    omittedCount: 0,
    matchCount: 6716,
    wallClockTime: 108,
    matchedFromFileRead: 6716,
    matchedViaCache: 0
  },
  metadata: {
    accounts: [ 2948931 ],
    eventTypes: [ 'Transaction' ],
    eventType: 'Transaction',
    openEnded: true,
    beginTime: '2022-09-02T08:53:43Z',
    endTime: '2022-09-02T09:08:43Z',
    beginTimeMillis: 1662108823048,
    endTimeMillis: 1662109723048,
    rawSince: '15 MINUTES AGO',
    rawUntil: 'NOW',
    rawCompareWith: '',
    guid: '3f12c230-d59d-d7f6-79cd-41de2f531989',
    routerGuid: '3f12c230-d59d-d7f6-79cd-41de2f531989',
    messages: [],
    contents: [ [Object] ]
  }
}
{
  results: [ { count: 7 } ],
  performanceStats: {
    inspectedCount: 305486,
    omittedCount: 0,
    matchCount: 7,
    wallClockTime: 174,
    matchedFromFileRead: 7,
    matchedViaCache: 0
  },
  metadata: {
    accounts: [ 3014904 ],
    eventTypes: [ 'Transaction' ],
    eventType: 'Transaction',
    openEnded: true,
    beginTime: '2022-09-02T08:53:43Z',
    endTime: '2022-09-02T09:08:43Z',
    beginTimeMillis: 1662108823042,
    endTimeMillis: 1662109723042,
    rawSince: '15 MINUTES AGO',
    rawUntil: 'NOW',
    rawCompareWith: '',
    guid: '514f1004-6d92-3a17-5bea-30b1a10ac288',
    routerGuid: '514f1004-6d92-3a17-5bea-30b1a10ac288',
    messages: [],
    contents: [ [Object] ]
  }
}

Hi, @byravajosyula.gnanes: Please post your script code. We cannot tell what is wrong from the log.