Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to see data content in amplify -> content (Data Manager) #1090

Open
kNikKumar opened this issue Dec 2, 2023 · 12 comments
Open
Labels
pending-triage An issue that is pending triage question An issue which is a question asked by a customer transferred An issue was transferred from another Amplify Repository

Comments

@kNikKumar
Copy link

Amplify CLI Version

12.2.3

Question

I tried creating a new table in schema.graphQl :

type Stage @model @auth(rules: [{allow: public}]) {
  id: ID!
  name: String!
}

type CommunityType @model @auth(rules: [{allow: public}]) {
  id: ID!
  name: String!
}

type UserType @model @auth(rules: [{allow: public}]) {
  id: ID!
  name: String!
}

For all these above data model I am getting below error, when I try to view it in amplify :
Screenshot 2023-12-02 at 19 29 31

I am not able to insert data, Am doing something wrong in schema, amplify push command after creating schema was successful.

@kNikKumar kNikKumar added pending-triage An issue that is pending triage question An issue which is a question asked by a customer labels Dec 2, 2023
@kNikKumar
Copy link
Author

Tried deleting and adding the schema again, same issue.

@AnilMaktala
Copy link
Member

Hey @kNikKumar, Thank you for raising this. Are you able to create the data from AppSync console?

@AnilMaktala AnilMaktala added the pending-response An issue is pending response from the issue requestor label Dec 4, 2023
@kNikKumar
Copy link
Author

Hi @AnilMaktala, not for this table. For others yes.

@github-actions github-actions bot removed the pending-response An issue is pending response from the issue requestor label Dec 5, 2023
@AnilMaktala
Copy link
Member

Hey @kNikKumar, Thanks for checking on that. To test something, would you mind updating the UserType model name to something slightly different, like UserType1 or UserTypeV2? Once changed, can you verify and let me know?

@AnilMaktala AnilMaktala added the pending-response An issue is pending response from the issue requestor label Dec 5, 2023
@kNikKumar
Copy link
Author

Hey @AnilMaktala I tried changing table name to UserProfession same issue comes up in Amplify studio. I have relatively less tables and I am not able to create a new one, is there a limit on number of table creation. Currently I have 16 tables.
Screenshot 2023-12-08 at 20 37 46

@github-actions github-actions bot removed the pending-response An issue is pending response from the issue requestor label Dec 8, 2023
@kNikKumar
Copy link
Author

Is there a log or something which I can check I am not seeing any error messages, when I do amplify push.

@kNikKumar
Copy link
Author

Also don't know whether it would be helpful or not but, since the something went wrong while table creation, when my app is running I keep getting this warning in terminal :

WARN  [WARN] 03:08.356 DataStore {"cause": {"data": null, "errors": [[Object], [Object]]}, "errorType": "Unknown", "localModel": null, "message": undefined, "model": "UserType", "operation": null, "process": "sync", "recoverySuggestion": "Ensure app code is up to date, auth directives exist and are correct on each model, and that server-side data has not been invalidated by a schema change. If the problem persists, search for or create an issue: https://github.com/aws-amplify/amplify-js/issues", "remoteModel": null}

@phani-srikar
Copy link

HI @kNikKumar, I don't see anything special with the UserType that could cause this issue. Can you check that your UserTypeTable is created in your DynamoDB?

@phani-srikar phani-srikar added the pending-response An issue is pending response from the issue requestor label Dec 11, 2023
@AnilMaktala
Copy link
Member

Hey @kNikKumar, Are you still experiencing this issue?

@Maadhav
Copy link

Maadhav commented Jan 9, 2024

I am facing this issue as well, any solution or a reason for this to happen?

@kNikKumar
Copy link
Author

Yes still facing this issue, I suspect something is wrong with App Sync, DynamoDB is not correctly syncing up with DataStore . But how to debug this and check, I don't see any error log.
The only workaround I can think of is create a duplicate Amplify project and start work there.

Is there a way to duplicate my amplify project ?

@github-actions github-actions bot removed the pending-response An issue is pending response from the issue requestor label Jan 9, 2024
@AnilMaktala AnilMaktala added the transferred An issue was transferred from another Amplify Repository label Jan 11, 2024
@AnilMaktala AnilMaktala transferred this issue from aws-amplify/amplify-category-api Jan 11, 2024
@AnilMaktala
Copy link
Member

Hey,👋 thanks for raising this! I'm going to transfer this over to our Studio repository for better assistance 🙂.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-triage An issue that is pending triage question An issue which is a question asked by a customer transferred An issue was transferred from another Amplify Repository
Projects
None yet
Development

No branches or pull requests

4 participants