1
$\begingroup$

I get the following message:

 There was a syntax error on line 23 in the file: 
  Petrin_methodu_ile.nb.
  The error was:

  

When I open the file I just get the info about the Mathematica version etc...

This is ridiculous. I am not using a external hardrive or anything like that.

$\endgroup$
  • 3
    $\begingroup$ Can you upload the file somewhere? It is not possible to give much useful information without knowing more about your file. $\endgroup$ – Szabolcs Oct 19 '18 at 9:33
  • 2
    $\begingroup$ @Buddha_the_Scientist Storage space is not free. You are the product. $\endgroup$ – Hector Oct 19 '18 at 10:14
  • 1
    $\begingroup$ Did you have text in the notebook or only code? If you had text, was it written in a language that does not use the Roman alphabet? It looks really corrupted though, may be unsalvageable ... $\endgroup$ – Szabolcs Oct 19 '18 at 10:16
  • 1
    $\begingroup$ Open it and save it as a text file, then open it in Mathematica. There are visible fragments Cell [CellGroupData [{ with broken encoding $\endgroup$ – Alex Trounev Oct 19 '18 at 10:22
  • 1
    $\begingroup$ The parts with garbled data mostly follow a pattern that repeats. I doubt it is but noise. $\endgroup$ – Hector Oct 19 '18 at 10:24
1
$\begingroup$

There is a way to open corrupted notebooks (all kinds of Wolfram Files)

You may try the following:

1) In the "File" menu you click on "Open..."

2) You select "File of types" for "Wolfram Files" (this enables the "Options" button)

Choose in "File of types" Wolfram Files

3) Press "Options"

4) Enable first checkbox "Parse and load entire notebook in memory ..."

opens a corrupted Wolfram File

5) confirm and report me your experience.

The images were made under MMA 11.0.1 on Ubuntu, just for orientation

To be honest: I never tried this procedure in my life. But this is the theory,(for rebuilding FileLeader+ FileTrailer+...) I found some times ago in the documentation.

Good luck, hieron

$\endgroup$
  • $\begingroup$ This will just offer to show the notebook as plain text. The notebook still can't be parsed. It's the same as opening it with a text editor. $\endgroup$ – Szabolcs Oct 19 '18 at 15:38
  • $\begingroup$ you can open a notebook even if its file outline cache has become corrupted. $\endgroup$ – hieron Oct 19 '18 at 16:02
  • $\begingroup$ I think it depends on the type of corruption how Mathematica treats the content, but anyway it gives a standard user a convenient way for saving his work to a new notebook. $\endgroup$ – hieron Oct 19 '18 at 16:08
  • $\begingroup$ Thank you. I will check when I am back to the office on Monday. $\endgroup$ – user59583 Oct 19 '18 at 16:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy