Alexander van Buuren
05/31/2024, 7:15 AMkapa.ai
05/31/2024, 7:15 AMAlexander van Buuren
05/31/2024, 9:32 AMkapa.ai
05/31/2024, 9:32 AMfrom=2021-01-01
to to=2021-12-31
- Second request: from=2022-01-01
to to=2022-12-31
This approach ensures that each request adheres to the API's timeframe limitation. 2. Leap Year Consideration: Ensure that your date ranges account for leap years correctly. The Harvest API specifies that the timeframe cannot exceed 365 days, so for leap years, you need to adjust your date ranges accordingly. 3. Connector Configuration: Verify that your Harvest connector is configured correctly in Airbyte. Ensure that the Start Date
parameter is set correctly and that the connector is using the appropriate date ranges for incremental syncs. 4. Logs and Error Messages: Check the logs for any error messages that might indicate why the data is not matching. For instance, if you see an error like Invalid timeframe: must not exceed 1 year
, it confirms that the issue is related to the timeframe limitation. Here is an example of how you might configure your requests: json { "streams": [ { "name": "time_entries", "sync_mode": "incremental", "cursor_field": ["updated_at"], "start_date": "2021-01-01T00:00:00Z", "end_date": "2021-12-31T23:59:59Z" }, { "name": "time_entries", "sync_mode": "incremental", "cursor_field": ["updated_at"], "start_date": "2022-01-01T00:00:00Z", "end_date": "2022-12-31T23:59:59Z" } ] }
For more detailed setup instructions, you can refer to the [Harvest connector setup guide](https://docs.airbyte.com/integrations/sources/harvest#setup-guide). If you continue to experience issues, you might want to check the [GitHub issue](https://github.com/airbytehq/airbyte/issues/27751) related to the Harvest connector for any updates or potential fixes. If you need further assistance, feel free to ask!Alexander van Buuren
05/31/2024, 9:36 AMkapa.ai
05/31/2024, 9:36 AMkapa.ai
05/31/2024, 9:36 AMjson { "streams": [ { "name": "time_entries", "sync_mode": "incremental", "cursor_field": ["updated_at"], "start_date": "2021-01-01T00:00:00Z", "end_date": "2021-12-31T23:59:59Z" }, { "name": "time_entries", "sync_mode": "incremental", "cursor_field": ["updated_at"], "start_date": "2022-01-01T00:00:00Z", "end_date": "2022-12-31T23:59:59Z" } ] }
For more detailed setup instructions, you can refer to the [Harvest connector setup guide](https://docs.airbyte.com/integrations/sources/harvest#setup-guide). If you need further assistance, feel free to ask!Alexander van Buuren
05/31/2024, 10:51 AMkapa.ai
05/31/2024, 10:51 AMkapa.ai
05/31/2024, 10:52 AMtime_entries
stream to cover the desired date range. Here is an example of how you might modify your connection state JSON to ensure it covers the past two years: json [ { "streamDescriptor": { "name": "projects" }, "streamState": { "updated_at": "2024-05-31T09:22:38Z" } }, { "streamDescriptor": { "name": "time_tasks" }, "streamState": { "to": "20240531" } }, { "streamDescriptor": { "name": "time_entries" }, "streamState": { "updated_at": "2022-05-31T09:29:47Z" // Adjust this date to cover the past two years } } ]
3. Confirm Changes: - Confirm changes by clicking "Update state". - Discard any changes by clicking "Revert changes". - Confirm the changes to the connection state update. ### Important Considerations - Handle with Care: Updates to the connection state should be handled with extreme care. Incorrect updates may break your syncs, requiring a full historical sync of your data to fix. Make changes only as directed by the Airbyte team. - Validation: Ensure the new state is validated as many ways as reasonably possible. JSON validation, stream-name validation, etc. For more detailed instructions, you can refer to the [Airbyte documentation on modifying connection state](https://docs.airbyte.com/cloud/managing-airbyte-cloud/manage-connection-state). If you encounter any issues, you can also reach out to the Airbyte community on [Slack](https://slack.airbyte.com/). Feel free to ask if you need further assistance!