Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
09-08-2022 12:11 AM
I am currently stuck in this exercise: Transform Strings to Lists | GraphAcademy (neo4j.com)
I tried everything. Even I copied the exact same thing that was in the solution. Still it shows error. Can anyone help?
09-08-2022 04:18 AM - edited 09-08-2022 04:35 AM
The same for me. I even restarted the whole course from scratch using the provided solutions.
09-10-2022 06:04 AM
Any help please ?
09-10-2022 02:20 PM
09-10-2022 02:21 PM
Second screenshot.
09-10-2022 03:13 PM
Hi John,
When you run the query the first time, it will convert the string (which contains one or more items) to a list (I doubt it's actually an array). So when you run it a second time, it's not a string anymore. That's why you cannot run it twice without starting from scratch.
09-10-2022 03:47 PM
hey Leo,
Thanks for the reply. I posted the error to show that it already ran and that there was no longer a string to convert. I'm stuck at the same place you are. I completed all the steps but the validation fails.
- Do you know if there is a way to have someone validate our DB and tell us definitively if its a user or system error?
09-11-2022 03:22 AM
Hi John,
I'm afraid we are stuck. I have sent an email. Wait and see but I have limited time in my side. Hope you'll find a solution too.
09-11-2022 01:54 PM
i'm in the same boat. hopefully we hear something soon
09-12-2022 06:20 AM
Did anyone get any help or hear back. Stuck in the same boat and have started from scratch multiple times but get stuck in the same place.
09-12-2022 07:17 AM
Hello all,
We made some internal changes to the Importing CSV data course that messed up the verification process.
We are working on the solution and will let you know when it has been fixed.
Elaine
09-12-2022 12:59 PM
The course is now fixed and imports and verifications should be all set. The only remaining code that is incorrect that we will fix tomorrow is the code in the last Challenge of the course. The loading of user rating data should be:
:auto USING PERIODIC COMMIT
LOAD CSV WITH HEADERS
FROM 'https://data.neo4j.com/importing/2-ratingData.csv'
AS row
MATCH (m:Movie {movieId: toInteger(row.movieId)})
MERGE (u:User {userId: toInteger(row.userId)})
ON CREATE SET u.name = row.name
MERGE (u)-[r:RATED]->(m)
ON CREATE SET r.rating = toInteger(row.rating),
r.timestamp = toInteger(row.timestamp)
09-12-2022 02:47 PM
Thank you Elaine and thanks to the Neo4j team for helping!
12-25-2022 05:13 PM
Hi Elaine
The code of the check database button is still an issue. I just tried. Though the three fields have been converted successfully to lists after running the code below, the check database button verification somehow says otherwise...
///////////////////////////////////////////////////////////////////
MATCH (m:Movie)
SET m.countries = split(coalesce(m.countries,""), "|"),
m.languages = split(coalesce(m.languages,""), "|"),
m.genres = split(coalesce(m.genres,""), "|")
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
12-26-2022 04:52 AM
For the transforming lists Challenge, You may have executed the solution code, but if the starting graph is not 100%, the check may fail. I suggest that you redo the import after you have cleared the graph with:
CREATE OR REPLACE DATABASE neo4j
Then perform the challenges up to and including the one you are stuck on.
Here is the code we use to check whether your transformation worked. It should return true:
MATCH (m:Movie {movieId: 10}) RETURN size(m.languages) + size(m.countries) + size(m.genres) = 8 AS outcome.
12-26-2022 01:09 PM
Thank you Elaine very much.
I did this
12-27-2022 04:22 AM
excellent!
12-21-2022 07:49 AM
Hi Elaine,
I am still getting this problem, even while using the provided solution.
Is there a work around?
12-21-2022 09:05 AM
Hello @brandon1 ,
Typically, the verification fails because the graph has been modified in such a way that the Cypher we use to check fails. Is it possible that you performed other operations on the graph in addition to those required of the challenge?
All that I can suggest is to clear the graph with:
CREATE OR REPLACE DATABASE neo4j
And then try the last challenge from the beginning.
Elaine
12-25-2022 05:17 PM
I dropped all nodes, re-ran the code to convert born and died to date fields, then the code to convert languages, countries, and genres to lists and the check still fails. Something is wrong with the validation code
12-26-2022 01:10 PM
This worked for me
All the sessions of the conference are now available online