Skip to content

mandatory property check fail with Cypher #2019

Closed

Description

@ExtReMLapin

Hello,

Creating a property with mandatory fails to correctly detect the property is used in cypher.

sample database

GSDFGDG.zip

Query to execute :

CREATE (p:EMBEDDING {vector: [-0.00931549072265625, 0.032073974609375, -0.005565643310546875, -0.01354217529296875]})
  

Error :

Cannot execute command The property 'EMBEDDING.vector' is mandatory, but not found on record: @EMBEDDING[]


INSERT INTO EMBEDDING SET vector = [-0.00931549072265625, 0.032073974609375, -0.005565643310546875, -0.01354217529296875]

Works fine

Activity

  1. ExtReMLapin commented on Feb 28, 2025

    @ExtReMLapin
    ContributorAuthor

    In validateField method, in cypher document.map is empty, not with SQL.

  2. lvca commented on Mar 3, 2025

    @lvca
    Member

    I think with cypher the insert is a 2 step process, first it inserts the record empty, then updates the properties.

  3. self-assigned this
    on Mar 3, 2025
  4. modified the milestones: 25.3.1, 25.3.2 on Mar 3, 2025
  5. modified the milestones: 25.3.2, 25.4.1 on Mar 24, 2025
  6. modified the milestones: 25.4.1, 25.5.1 on Apr 22, 2025
  7. modified the milestones: 25.5.1, 25.6.1 on May 30, 2025
  8. modified the milestones: 25.6.1, 25.8.1 on Jul 4, 2025
  9. lvca commented on Sep 9, 2025

    @lvca
    Member

    Unfortunately Cypher uses a 2 step process that fails on creation because empty. We can't fix this behavior in the cypher module, the only way is to disable the mandatory constraint or create the vertices using SQL or API.

  10. added
    wontfix
    on Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

wontfix

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions