Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. error : Datei auf Netzlaufwerk öffnen

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    UNSOLVED error : Datei auf Netzlaufwerk öffnen

    This topic has been deleted. Only users with topic management privileges can see it.
    • bahnuhr
      bahnuhr Forum Testing Most Active last edited by

      Hallo,
      habe folgendes System:
      iob auf win10 Rechner.
      node.js 12.17, npm 6.14.4, admin 4.0.10

      Synology mit mehreren Festplatten, diese eingebunden in win, z.B. als Laufwerk z:\

      Was möchte ich:
      Auf z:\ habe ich eine Excel Datei. Diese möchte ich lesen mit dem Modul "exceljs"
      Das Script läuft auch; aber nur dann wenn die Datei auf C:\liegt.
      Wenn sie auf z:\liegt kommt:

      javascript.0	2020-07-19 20:39:44.124	error	(12924) Error: File not found: //Synology/Computer/Pool/Messungen.xlsm at XLSX.readFile (C:\iobroker\node_modules\iobroker.javascript\node_modules\exceljs\lib\xlsx\xlsx.js:50:13)
      javascript.0	2020-07-19 20:39:44.124	error	(12924) Error: File not found: //Synology/Computer/Pool/Messungen.xlsm
      javascript.0	2020-07-19 20:39:44.124	error	(12924) An error happened which is most likely from one of your scripts, but the originating script could not be detected.
      

      Und hierbei ist es egal ob ich "Z:..." oder "//synology...." schreibe.

      Frage:
      Warum kann man per iob keine Datei auf Netzlaufwerk öffnen ?
      Wieso findet er die nicht ?
      Wenn ich ein vba Script in Excel schreibe kann ich überall hinspeichern; auf c:\ oder auch auf z:\

      Fazit:
      Excel vba hat kein Problem auf z:\ zu speichern.
      iob hat aber Problem mit z:\ -> warum ?

      Vielleicht könnt ihr mir helfen.

      arteck 1 Reply Last reply Reply Quote 0
      • arteck
        arteck Developer Most Active @bahnuhr last edited by

        @bahnuhr schon mal mit der ip Adresse probiert?

        bahnuhr 1 Reply Last reply Reply Quote 0
        • bahnuhr
          bahnuhr Forum Testing Most Active @arteck last edited by

          @arteck sagte in error : Datei auf Netzlaufwerk öffnen:

          @bahnuhr schon mal mit der ip Adresse probiert?

          Hab ich eben probiert; klappt auch nicht !

          javascript.0	2020-07-21 13:35:38.131	error	(7784) Error: File not found: //192.168.243.5/computer/Pool/Messungen.xlsm at XLSX.readFile (C:\iobroker\node_modules\iobroker.javascript\node_modules\exceljs\lib\xlsx\xlsx.js:50:13)
          javascript.0	2020-07-21 13:35:38.131	error	(7784) Error: File not found: //192.168.243.5/computer/Pool/Messungen.xlsm
          javascript.0	2020-07-21 13:35:38.131	error	(7784) An error happened which is most likely from one of your scripts, but the originating script could not be detected.
          

          Für mich liegt es an iob i.V.m. Win.

          Noch ne andere Idee ?

          Z 1 Reply Last reply Reply Quote 0
          • Z
            zahnheinrich @bahnuhr last edited by zahnheinrich

            @bahnuhr
            Hast du schon den backlash versucht, ist doch m.W. bei Win obligatorisch, also \192.168....

            Edit: doppelbacklash, (zeigt der editor aber nicht)

            bahnuhr 1 Reply Last reply Reply Quote 0
            • bahnuhr
              bahnuhr Forum Testing Most Active @zahnheinrich last edited by

              @zahnheinrich sagte in error : Datei auf Netzlaufwerk öffnen:

              @bahnuhr
              Hast du schon den backlash versucht, ist doch m.W. bei Win obligatorisch, also \192.168....

              Edit: doppelbacklash, (zeigt der editor aber nicht)

              backslash ist das normale.
              Dies funktioniert aber noch nie in iob !!

              Hier kommt dann:

              javascript.0	2020-07-21 13:58:37.717	error	at XLSX.readFile (C:\iobroker\node_modules\iobroker.javascript\node_modules\exceljs\lib\xlsx\xlsx.js:50:13)
              javascript.0	2020-07-21 13:58:37.717	error	(7784) Error: File not found: \192.168.243.5computerPoolMessungen.xlsm
              javascript.0	2020-07-21 13:58:37.717	error	(7784) Error: File not found: \192.168.243.5computerPoolMessungen.xlsm
              javascript.0	2020-07-21 13:58:37.717	error	(7784) An error happened which is most likely from one of your scripts, but the originating script could not be detected.
              

              Die backslash werden einfach geschluckt !

              Z Homoran 2 Replies Last reply Reply Quote 0
              • Z
                zahnheinrich @bahnuhr last edited by

                @bahnuhr
                In deiner IP fehlt hinter der letzten 5 auch der Punkt, auch verschluckt?

                bahnuhr 1 Reply Last reply Reply Quote 0
                • Homoran
                  Homoran Global Moderator Administrators @bahnuhr last edited by

                  @bahnuhr sagte in error : Datei auf Netzlaufwerk öffnen:

                  Die backslash werden einfach geschluckt !

                  Mit backslash escapen?!

                  F 1 Reply Last reply Reply Quote 0
                  • F
                    fastfoot @Homoran last edited by

                    @Homoran sagte in error : Datei auf Netzlaufwerk öffnen:

                    @bahnuhr sagte in error : Datei auf Netzlaufwerk öffnen:

                    Die backslash werden einfach geschluckt !

                    Mit backslash escapen?!

                    Unter Windows funktioniert das so, also mit Doppel-Backslash

                    Z:\\pfad1\\pfad2\\test.txt
                    
                    bahnuhr 1 Reply Last reply Reply Quote 0
                    • bahnuhr
                      bahnuhr Forum Testing Most Active @zahnheinrich last edited by

                      @zahnheinrich sagte in error : Datei auf Netzlaufwerk öffnen:

                      @bahnuhr
                      In deiner IP fehlt hinter der letzten 5 auch der Punkt, auch verschluckt?

                      Zum Schluss kommt doch nie ein Punkt.
                      Zumindest hab ich das noch nirgends gesehen.
                      Manchmal kommt der Port noch dahinter; aber dann mit Doppelpunkt.

                      Homoran 1 Reply Last reply Reply Quote 0
                      • bahnuhr
                        bahnuhr Forum Testing Most Active @fastfoot last edited by

                        @fastfoot sagte in error : Datei auf Netzlaufwerk öffnen:

                        @Homoran sagte in error : Datei auf Netzlaufwerk öffnen:

                        @bahnuhr sagte in error : Datei auf Netzlaufwerk öffnen:

                        Die backslash werden einfach geschluckt !

                        Mit backslash escapen?!

                        Unter Windows funktioniert das so, also mit Doppel-Backslash

                        Z:\\pfad1\\pfad2\\test.txt
                        

                        geht nicht !

                        Im Script steht:

                            workbook.xlsx.readFile("z:\\Computer\\Pool\\Messungen.xlsm") 
                        

                        Fehler im log:

                        javascript.0	2020-07-21 17:11:16.579	error	(7784) Error: File not found: z:\Computer\Pool\Messungen.xlsm at XLSX.readFile (C:\iobroker\node_modules\iobroker.javascript\node_modules\exceljs\lib\xlsx\xlsx.js:50:13)
                        javascript.0	2020-07-21 17:11:16.579	error	(7784) Error: File not found: z:\Computer\Pool\Messungen.xlsm
                        javascript.0	2020-07-21 17:11:16.579	error	(7784) An error happened which is most likely from one of your scripts, but the originating script could not be detected.
                        
                        F 1 Reply Last reply Reply Quote 0
                        • bahnuhr
                          bahnuhr Forum Testing Most Active last edited by bahnuhr

                          Und bei IP, mit:

                          workbook.xlsx.readFile("\\192.168.243.5\\Computer\\Pool\\Messungen.xlsm")
                          

                          kommt die gleiche Fehlermeldung.
                          "File not found"

                          liv-in-sky 1 Reply Last reply Reply Quote 0
                          • Homoran
                            Homoran Global Moderator Administrators @bahnuhr last edited by

                            @bahnuhr sagte in error : Datei auf Netzlaufwerk öffnen:

                            Zum Schluss kommt doch nie ein Punkt.
                            Zumindest hab ich das noch nirgends gesehen.

                            Aber irgendein Trenner muss da schon sein. Jetzt hast du einen backslash an der Stelle.

                            1 Reply Last reply Reply Quote 0
                            • F
                              fastfoot @bahnuhr last edited by

                              @bahnuhr habe mir mal den Source von exceljs angesehen, da wird auf einen Forwardslash geprüft(const last = filepath.lastIndexOf('/');). Ersetze deine backslash mal mit /, das sollte auch funktionieren, habe es soeben mit fs.readFile mal geprüft, einzelne / sollten reichen

                              bahnuhr 1 Reply Last reply Reply Quote 0
                              • bahnuhr
                                bahnuhr Forum Testing Most Active @fastfoot last edited by

                                @fastfoot sagte in error : Datei auf Netzlaufwerk öffnen:

                                @bahnuhr habe mir mal den Source von exceljs angesehen, da wird auf einen Forwardslash geprüft(const last = filepath.lastIndexOf('/');). Ersetze deine backslash mal mit /, das sollte auch funktionieren, habe es soeben mit fs.readFile mal geprüft, einzelne / sollten reichen

                                workbook.xlsx.readFile("/192.168.243.5/computer/Pool/Messungen.xlsm")
                                Ergebnis : File not found: /192.168.243.5/computer/Pool/Messungen.xlsm

                                workbook.xlsx.readFile("z:/192.168.243.5/computer/Pool/Messungen.xlsm")
                                Ergebnis : File not found: /192.168.243.5/computer/Pool/Messungen.xlsm

                                workbook.xlsx.readFile("/synology/computer/Pool/Messungen.xlsm")
                                Ergebnis : File not found: /192.168.243.5/computer/Pool/Messungen.xlsm

                                klappt bei mir nicht.

                                F 1 Reply Last reply Reply Quote 0
                                • liv-in-sky
                                  liv-in-sky @bahnuhr last edited by

                                  @bahnuhr gehören vor der 192 nicht 4 backslashes ?

                                  \\192.168......\...\ ...

                                  bahnuhr 2 Replies Last reply Reply Quote 0
                                  • bahnuhr
                                    bahnuhr Forum Testing Most Active @liv-in-sky last edited by

                                    @liv-in-sky sagte in error : Datei auf Netzlaufwerk öffnen:

                                    @bahnuhr gehören vor der 192 nicht 4 backslashes ?

                                    \\192.168......\...\ ...

                                    Die Variante hatte ich noch gar nicht.
                                    Ich probiers aus.

                                    1 Reply Last reply Reply Quote 0
                                    • bahnuhr
                                      bahnuhr Forum Testing Most Active @liv-in-sky last edited by bahnuhr

                                      @liv-in-sky sagte in error : Datei auf Netzlaufwerk öffnen:

                                      @bahnuhr gehören vor der 192 nicht 4 backslashes ?

                                      \\192.168......\...\ ...

                                      workbook.xlsx.readFile("\\Synology\Computer\Pool\Messungen.xlsm") (es sind 4 back...)

                                      wie erwartet.
                                      File not found: \SynologyComputerPoolMessungen.xlsm

                                      liv-in-sky 1 Reply Last reply Reply Quote 0
                                      • bahnuhr
                                        bahnuhr Forum Testing Most Active last edited by

                                        Wäre es denn möglich, dass ein admin dies mal nachvollzieht ?

                                        Auf einem win Rechner; wo ganz normal ein netzlaufwerk als Buchstabe z: eingebunden ist.

                                        Und dann Zugriff auf eine Datei.

                                        1 Reply Last reply Reply Quote 0
                                        • liv-in-sky
                                          liv-in-sky @bahnuhr last edited by

                                          @bahnuhr sagte in error : Datei auf Netzlaufwerk öffnen:

                                          \Synology\Computer\Pool\Messungen.xlsm

                                          \\\\Synology\\Computer\\\Pool\\\Messungen.xlsm
                                          

                                          hat der andere server eigentlich den richtigen user account - ich weiß nicht ob windows iobroker einen eigenen user hat - wenn ja muss der auch rechte haben, um das verzeichnis zu lesen

                                          bahnuhr 1 Reply Last reply Reply Quote 0
                                          • F
                                            fastfoot @bahnuhr last edited by

                                            @bahnuhr sagte in error : Datei auf Netzlaufwerk öffnen:

                                            klappt bei mir nicht.

                                            Da ist kein Beispiel mit Z: dabei. Wie gesagt, intern wird auf / geprüft, um den Pfad zu bestimmen, alle Versuche mit \ werden da fehlschlagen!

                                            bahnuhr 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            623
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            error netzlaufwerk
                                            10
                                            93
                                            3532
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo