Skip to main content

Due to a bug in the loading of the ampli wrapper (on my side), all of the events for an ampli project were being logged into our development environment for about 3 weeks (small project with only a couple of events).

 

As these events are not database-driven, I can’t backfill them by making a bunch of events again from data in our database.

 

Is there any sort of recourse I can do for recovering these events from the wrong environment?

Hey @scottjohnson 

Are you looking to reingest these mistagged events which went into your dev environment into your correct prod project?

I’m understanding that you don’t own a copy of these events outside of Amplitude, right?

One approach could be to first export these events from the dev environment using Export API or to a preferred warehouse destination. This would ensure you have the events from dev copied to zipped json files and/or to the warehouse database.

You can then transform/clean these events and selectively ingest them in your correct prod environment using Batch API. You can refer to the backfill guide in here.
 

Hope this helps.


Hi @scottjohnson ,

 

I would agree wholeheartedly with @Saish Redkar ! The best option would be to use the Export API and then import the events again into the correct environment. 

 

Kind Regards,
Denis


Reply