#✅ - Data entered using "Forms" under UI library not getting uploaded on cloud

1 messages · Page 1 of 1 (latest)

royal vapor
#

Post creation of a Data model, Amplify automagically creates two React Form components to create and edit records. After entering data, I am able to see the data getting populated on the Front-end. But, I don't see it entered in the cloud since the Content tab of Amplify Studio doesn't has any data for the selected table.

After I clear the cache on front-end, the data I entered previously which was available there, is also no longer available. This means the data I added was only added in localStorage and not pushed to Cloud. What am I doing wrong?

Also, how can I:

  1. Take a back-up of the data in a Table listed in the Amplify Studio Content tab?
  2. Upload data in a Table in Amplify Studio using JSON, CSV or any other format?

appId: d1s12n1vfe1ekl

gritty patio
#

hey @royal vapor , under the network tabs do you see graphql requests? in the response do you observe any errors.
The data manager allows downloading the data to csv under the Actions when selecting a data model.
unfortunately, the data manager does not have a upload option. We will need to utilize a custom script to upload the records or use the graphiql interface to create multiple records.

royal vapor
#

Response: {"data":{"createEvents":null}}

proper stream
#

@royal vapor can you share the schema for Events? And also, have you tried creating an Event from another client like in a front end app or the AppSync console? Do either of those yield the same result?

royal vapor
# proper stream <@551852039492075551> can you share the schema for Events? And also, have you tr...

Schema for Events:

enum EnumCountry {
  INDIA
  AUSTRALIA
  CANADA
  UK
  USA
}

type Events @model @auth(rules: [{allow: public}]) {
  id: ID!
  country: EnumCountry!
  city: String!
  venue: String!
  address1: String!
  address2: String
  time: String!
  startDate: String!
  endDate: String!
  phone: String
}

The above result of Graphql call was from a React Front-end App. I have not tried using another client/AppSync Console.

gritty patio
#

cc @proper stream

gritty patio
#

Hey @royal vapor , wanted to follow up on this. could you try utilizing the GraphiQL interface available on Data manager and run a list query to confirm if the records being retrieved. As this would enable us to determine if the Data manager may be running into behaviours.

royal vapor
#

After this, I was able to see the event listed in the same window

#

However, I don't see this getting retrieved on Front-end

gritty patio
#

hey, do you see any errors on the browser console?

royal vapor
gritty patio
#

my apologies the browser debug console in the data manager page

royal vapor
#

Sorry - yes - at this stage no data is visible, with this error

gritty patio
#

hmm i see, would you be open a call. was hoping to quickly go over this and see if i can collect any additional information that might be helpful

royal vapor
#

Sure

#

Also, I see the data has vanished again from Dynamodb!

gritty patio
#

@royal vapor thank you for hopping on the call and I am glad to be of assistance. let me try the data model provided to reproduce the behaviour and provide you any updates

royal vapor
#

Thanks @gritty patio for your time and helping fix the issue. Truly appreciate your time 🙂

gritty patio
covert talonBOT
#

✅ - Data entered using "Forms" under UI library not getting uploaded on cloud