2

I am trying to ingest some rows into a Feature Store on AWS using:

feature_group.ingest(data_frame=df, max_workers=8, wait=True)

but I am getting the following error:

Failed to ingest row 1: An error occurred (ValidationError) when calling the PutRecord operation: Validation Error: FeatureGroup [feature-group] is not in ACTIVE state.

rudolfovic
  • 3,163
  • 2
  • 14
  • 38

1 Answers1

0

It turns out the status of a feature group after its creation is Created but before you can ingest any rows you need to simply wait until it's Active:

while status != 'Created':
        try:
            status = feature_group.describe()['OfflineStoreStatus']['Status']
        except:
            pass
        print('Offline store status: {}'.format(status))    
        sleep(15)
sohrabrs
  • 3
  • 1
rudolfovic
  • 3,163
  • 2
  • 14
  • 38