open-scd icon indicating copy to clipboard operation
open-scd copied to clipboard

Not able to import the NSDoc for IEC 61850-7-2,7-3 and 7-4

Open arulrajirudayasamy opened this issue 10 months ago • 8 comments

Upload NSDoc functionality is not working as expected

Steps to reproduce the behavior

  1. Take the OpenSCD Clone or run the online instance of V0.36.0
  2. Click on main menu and select setting option then upload the NSDoc for IEC 61850-7-2,7-3 and 7-4
  3. See error

Image

Expected behavior User should be able to import the NSDoc files without any errors

arulrajirudayasamy avatar Apr 20 '25 06:04 arulrajirudayasamy

Hi @arulrajirudayasamy, thanks for the report;

  1. Is this related to https://github.com/openscd/open-scd/issues/1604 ?
  2. Did you use openscd.github.io recently? The is the current deployment. https://github.com/openscd/open-scd/releases/tag/v0.38.1

Sander3003 avatar Apr 22 '25 12:04 Sander3003

1.@Sander3003 yes, my Feeback same as @danyill reported with Support later nsdoc revision #1604 Hence, this is a duplicate bug. 2.This version is not working for me https://github.com/openscd/open-scd/releases/tag/v0.38.1,I assume something wrong with the recourse files in the online repository. I am currently using the offline version of OpenSCD V.0.36.0 by cloning the resource files from the following link https://github.com/openscd/openscd.github.io

arulrajirudayasamy avatar Apr 23 '25 09:04 arulrajirudayasamy

Thanks, what is de problem with 2? Wat error do you get?

Sander3003 avatar Apr 23 '25 09:04 Sander3003

I downloaded the open-scd.zip file and tried to set it up in Simple Web Server by locating the following folder directory, open-scd\packages\distribution\build Unfortunately, I am not able to reach the webserver from my Web Client/Browser, seems some files inside the open-scd.zip is missing or not in the right directly.

arulrajirudayasamy avatar Apr 23 '25 09:04 arulrajirudayasamy

We will look into the NSDoc issue;

@david-monichi can colleagues are working on a big refactor, I suggest to test your 2nd problem again if they are done.

Sander3003 avatar Apr 23 '25 12:04 Sander3003

We will have an eye on it, even I'm not fully sure how that really affects this issue.

david-monichi avatar Apr 24 '25 06:04 david-monichi

@arulrajirudayasamy our IEC document provider (NEN connect) does not schip the 2007B4 nsdoc file, so we cannot test.

How did you got his one?

Sander3003 avatar Apr 25 '25 13:04 Sander3003

I had access to the IEC Library through my employer, but unfortunately, I can't share it outside due to copyright restrictions.

arulrajirudayasamy avatar Apr 26 '25 07:04 arulrajirudayasamy

How did your employer get the file? Maybe we have access to the same resource.

Sander3003 avatar Apr 27 '25 06:04 Sander3003

Accessing the IEC library using SSO is straightforward. Once you have access, you can easily download the complete IEC 61850:2025 SER package as a zip file. The relevant part should contain the pdf and NSD zip files.

arulrajirudayasamy avatar Apr 27 '25 13:04 arulrajirudayasamy

You mean this one right? https://webstore.iec.ch/en/publication/6028

Sander3003 avatar Apr 28 '25 06:04 Sander3003

Yes, that's correct @Sander3003

arulrajirudayasamy avatar Apr 28 '25 06:04 arulrajirudayasamy

I'm able to reproduce: Image

Sander3003 avatar May 02 '25 08:05 Sander3003

The problem here seems to be that we ship NSD files with open scd and allow to load NSDoc files by the user. That can lead to version conflicts between the NSD files and NSDoc files. E.g. you have 2007B3 NSD files and want to upload 2007B5 NSDoc files.

The simple solution is for now:

  • get rid of the version check between NSD and NSDoc files. The difference between 2007B3 and 2007B5 will not cause any issues as there is not breaking change
  • change the error log to a warning log saying: "Version of loaded NSDoc (version) does not match the version of the loaded NSD file (version)."

The clean solution:

  • ship all NSD files versions with OpenSCD and allow selecting the version that fits the use case

We would go with the simple solution for now.

JakobVogelsang avatar Jul 23 '25 06:07 JakobVogelsang