54
Views
14
Comments
Internal Error An internal error occurred and was logged. Please try again later or c

Hi, i am following the pdf to develop my osmdb application and when i am trying to show the entrire crew and cast information by clicking on a screen i am getting this error:-

2020-11-25 10-45-32
Mostafa Othman
Champion

Hi Satvik,

Can you please check your service center for any error logged while you are trying to open this page and share it here? 

Go to service center click Monitoring => Errors

If you can share your OML also this will help

UserImage.jpg
SS27

Hi, this is the error i am getting in the service center, i think this is related to the sql query that we have to add

2020-11-25 10-45-32
Mostafa Othman
Champion

You can click icon in screenshot below  and after opening service center web page login with your username and password

2020-11-25 10-45-32
Mostafa Othman
Champion

Its issue in order by clause please remove @MovieId from this line and keep it like this:

Order by Fullname

UserImage.jpg
SS27

Here is my working file...

OSMDB.oml
2020-11-25 10-45-32
Mostafa Othman
Champion

Please add new person to same movie with role Actor or Crew from "Add Cast/Crew" screen

UserImage.jpg
SS27

Thanks! i was thinking that data was added automatically when i created the entity of person role

2020-11-25 10-45-32
Mostafa Othman
Champion

Not all entities in this exercise auto populated with data. So regarding this entity you need to start using screens functionalities to save data 

2020-01-08 08-43-00
Rahul Kumar

Please  match the SQL query.


SELECT {Person}.[Id], {Person}.[Name] + ' ' + {Person}.[Surname] Fullname FROM {Person}     JOIN {PersonMovieRole} ON {PersonMovieRole}.[PersonId] = {Person}.[Id]    JOIN {PersonRole} ON {PersonRole}.[Id] = {PersonMovieRole}.[PersonRoleId] WHERE {PersonMovieRole}.[MovieId]  = @MovieId     AND {PersonMovieRole}.[PersonRoleId] IN (@ActorRole, @CrewRole) ORDER BY Fullname




to your sql query. 


it seems , "ORDER BY Fullname@MovieId" this is incorrect. It should be ORDER BY Fullname 





UserImage.jpg
SS27

I am getting no rows returned when i am running this sql query 

2020-11-25 10-45-32
Mostafa Othman
Champion

First thing make sure you are passing values to input parameters into Test Inputs tab 


Second thing make sure that following tables have data:

- Person

- PersonMovieRole

- PersonRole

If not please open you web application and start adding data

2020-01-08 08-43-00
Rahul Kumar

Check your PersonMovieRole database. There should some record to show data. Then provide the input for example:

You will see output like below:


Hope this help

UserImage.jpg
SS27

I am still getting this, please help me

UserImage.jpg
SS27

Also i am seeing this data for person movie role:-

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.