Chloe Connor
01/20/2023, 5:33 PMDATE FORMAT exception. Cannot read using known formats ['%m/%d/%Y', '%Y-%m-%d']
Search error occurred: Parse of date/time "2022-12-31" failed with date format "dd/MM/yy" in time zone America/Los_Angelesuser
01/20/2023, 5:38 PMChloe Connor
01/20/2023, 5:39 PMuser
01/20/2023, 6:49 PMYowan Ramchoreeter (Airbyte)
01/22/2023, 1:18 PMChloe Connor
01/23/2023, 10:14 AMYowan Ramchoreeter (Airbyte)
01/23/2023, 11:23 AMOleksandr Bazarnov [GL]
01/23/2023, 11:25 AMChloe Connor
01/24/2023, 3:18 PMOleksandr Bazarnov [GL]
01/24/2023, 3:20 PMChloe Connor
01/24/2023, 4:16 PMChloe Connor
01/24/2023, 5:24 PMOleksandr Bazarnov [GL]
01/25/2023, 11:27 AMsalesorder ? It's odd and we should investigate this. @Chloe Connor do we have the opportunity to do the replication locally using your credentials in order to catch the bug, please?Chloe Connor
01/25/2023, 12:17 PMOleksandr Bazarnov [GL]
01/25/2023, 12:27 PMChloe Connor
01/25/2023, 1:11 PMOleksandr Bazarnov [GL]
01/25/2023, 1:26 PMYowan Ramchoreeter (Airbyte)
01/25/2023, 1:31 PMChloe Connor
01/25/2023, 4:07 PMOleksandr Bazarnov [GL]
01/25/2023, 4:08 PMChloe Connor
01/25/2023, 4:57 PM023-01-24 17:35:02 [44msource[0m > Syncing stream: salesorder
2023-01-24 17:35:07 [44msource[0m > Stream `salesorder`: cannot read using date format `%m/%d/%Y
2023-01-24 17:35:07 [44msource[0m > Stream `salesorder`: retry using next date format `%Y-%m-%d
2023-01-24 17:35:08 [44msource[0m > Stream `salesorder`: cannot read using date format `%Y-%m-%d
2023-01-24 17:35:08 [44msource[0m > DATE FORMAT exception. Cannot read using known formats ['%m/%d/%Y', '%Y-%m-%d']
2023-01-24 17:35:08 [44msource[0m > Stream `salesorder`: INVALID_PARAMETER error occured, full error message: Invalid search query. Detailed unprocessed description follows. Search error occurred: Parse of date/time "2022-07-31" failed with date format "dd/MM/yy" in time zone America/Los_Angeles
Caused by:
java.text.ParseException: Unparseable date: "2022-07-31".
2023-01-24 17:35:08 [44msource[0m > Encountered an exception while reading stream salesorder
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/abstract_source.py", line 115, in read
yield from self._read_stream(
File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/abstract_source.py", line 184, in _read_stream
for record in record_iterator:
File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/abstract_source.py", line 287, in _read_full_refresh
for _slice in slices:
File "/airbyte/integration_code/source_netsuite/streams.py", line 280, in stream_slices
slice_start = start.strftime(self.default_datetime_format)
File "/airbyte/integration_code/source_netsuite/streams.py", line 54, in default_datetime_format
return NETSUITE_INPUT_DATE_FORMATS[self.index_datetime_format]
IndexError: list index out of range
2023-01-24 17:35:08 [44msource[0m > Finished syncing salesorder
2023-01-24 17:35:08 [44msource[0m > SourceNetsuite runtimes:
Syncing stream salesorder 0:00:05.709623
2023-01-24 17:35:08 [44msource[0m > list index out of range
Traceback (most recent call last):
File "/airbyte/integration_code/main.py", line 13, in <module>
launch(source, sys.argv[1:])
File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/entrypoint.py", line 131, in launch
for message in source_entrypoint.run(parsed_args):
File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/entrypoint.py", line 122, in run
for message in generator:
File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/abstract_source.py", line 129, in read
raise e
File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/abstract_source.py", line 115, in read
yield from self._read_stream(
File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/abstract_source.py", line 184, in _read_stream
for record in record_iterator:
File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/abstract_source.py", line 287, in _read_full_refresh
for _slice in slices:
File "/airbyte/integration_code/source_netsuite/streams.py", line 280, in stream_slices
slice_start = start.strftime(self.default_datetime_format)
File "/airbyte/integration_code/source_netsuite/streams.py", line 54, in default_datetime_format
return NETSUITE_INPUT_DATE_FORMATS[self.index_datetime_format]
IndexError: list index out of range
2023-01-24 17:35:08 [32mINFO[m i.a.w.g.DefaultReplicationWorker(lambda$readFromSrcAndWriteToDstRunnable$6):381 - Source has no more messages, closing connection.Chloe Connor
01/25/2023, 5:26 PM"%Y-%m-%d" after failing on date validation with "%m/%d/%Y" but I'm not sure this is happening?Oleksandr Bazarnov [GL]
01/25/2023, 6:34 PMsalesorder object in Netsuite to understand what is the format of cursor_field , in our case it could be either lastModifiedDate or lastModified but it could be something else, we need to understand this moment. Simply share the value example of what is stored in one of these fields. Thank you!Yowan Ramchoreeter (Airbyte)
01/25/2023, 7:57 PMChloe Connor
01/26/2023, 11:53 AM%Y-%m-%d? setting to incremental mode suggests this is lastModifiedDate. Is there another stream I could try, would that help?Chloe Connor
01/26/2023, 12:17 PM%Y-%m-%d dateformat (which is what I need it to do) but then instead of returning True to retry, it raises an exception?Chloe Connor
01/27/2023, 8:43 AMOleksandr Bazarnov [GL]
01/27/2023, 10:40 AMChloe Connor
01/27/2023, 12:38 PMOleksandr Bazarnov [GL]
01/27/2023, 2:06 PMChloe Connor
01/27/2023, 5:00 PMOleksandr Bazarnov [GL]
01/27/2023, 6:50 PM