Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hierarchyid column type not exported/supported #395

Closed
pi-r-ayotte opened this issue Apr 23, 2024 · 2 comments
Closed

hierarchyid column type not exported/supported #395

pi-r-ayotte opened this issue Apr 23, 2024 · 2 comments
Assignees

Comments

@pi-r-ayotte
Copy link

Description: hierarchyid column type are not present in xml data table and the validation is failing with message:

"T_6.0-2: [ERROR] - Validation against XSD failed. - cvc-complex-type.2.4.b: The content of element 'row' is not complete. One of '{"http://www.admin.ch/xmlns/siard/2/schema1/table1.xsd":c4}' is expected. At line 1, column 292 on content/schema1/table1/table1.xml
Requirements for table data [FAILED]"

Context:

  • DBPTK Desktop: Windows 2022, SQL 2022, DBPTK 2.9

Steps required to reproduce the bug:

  1. Create table with at least on hierarchyid column, ex:
    CREATE TABLE [HR].[Employee](
    [Id] [int] IDENTITY(1,1) NOT NULL,
    [FirstName] nvarchar NOT NULL,
    [LastName] nvarchar NOT NULL,
    [hid] [hierarchyid] NOT NULL,
    );
    INSERT INTO HR.Employee (FirstName, LastName, hid)
    VALUES ('John', 'Doe', '/'); -- conversion implicite
    INSERT INTO HR.Employee (FirstName, LastName, hid)
    VALUES ('John2', 'Doe2', '/1/'); -- conversion implicite

  2. Create Siard file

  3. Validate and it should fail

Attach any relevant logs below.
dbptk-validation-reporter-TestHID-20240423101021491.txt

@pi-r-ayotte
Copy link
Author

Also open on dbpkt-devlopper, was not sure where to open

@luis100
Copy link
Member

luis100 commented Apr 24, 2024

This should be in the developer, closing this as duplicate of keeps/dbptk-developer#604

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

3 participants