OriginalPostID-80520
Discussion posts and replies are publicly visible
The comment from sayalip helped me in my case. For some reason the "@GeneratedValue" wasn't added to the primary key field in the XSD by Appian, so I added this manually and the error was resolved.