-1

I have PostgreSQL 15 running with the Apache AGE extension installed on it. I can view graphs and run queries using AGE Viewer, but I get the following error when creating a new graph from AGE Viewer.

Screenshot of the error

I restarted AGE Viewer, but still, it didn't work. I expected a new, empty graph to be created if it worked properly. Does anyone know how to fix this?

6 Answers6

2

You can check if the postgres and AGE versions are compatible and have the required permissions by checking the log files.

If the issue is still persistent, you should redo the installations, postgres first and then AGE.

0

The error is occurring because the object on which you are using map function is undefined.

  • Make sure that the object on which you are using the map function is properly initialized.
  • Object should contain valid data for using map on it.
adil shahid
  • 125
  • 4
0

I believe you cannot create an empty graph using this functionality; you have to upload a CSV file.id

There's an issue open for this.

However, using a simple query like the one below can generate an empty graph for you:

SELECT ag_catalog.create_graph('graph_name');

OR

SELECT create_graph('graph_name');
Wendel
  • 763
  • 1
  • 12
0

For such issue, there are few steps that you should try to solve your problem:

  • Check do you have enough permissions or not.
  • Check compatibility of Postgres and Viewer.
  • Reinstall if still error exist.
0

The error occurs when you try to access a property or method of an undefined value (here map).

Currently, only Postgres 11, 12, and 13 are supported by Apache AGE, and you are using Postgres 15. This can be the reason for the error.

Try to install the supported version of Postgres and age-viewer.

abhishek2046
  • 312
  • 1
  • 11
-1

Here are some steps, that might help you.

  • Check the compatibility between both Postgres and Viewer.
  • Make sure you have the required permissions.
  • Check out the logs.
  • Reinstall if the error stills persist.
  • Check out the official documentation for further assistance.