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

Mysterious mapping error? #507

Closed
bondjimbond opened this issue Feb 12, 2020 · 9 comments
Closed

Mysterious mapping error? #507

bondjimbond opened this issue Feb 12, 2020 · 9 comments

Comments

@bondjimbond
Copy link
Collaborator

When running with --checkconfig all, I'm suddenly getting an odd error with the mapping file:

Error: Mapping snippet +ACI-+ADw-titleInfo+AD4APA-title+AD4AJQ-value+ACUAPA-/title+AD4APA-/titleInfo+AD4-+ACI- appears to be not well formed

This mapping file has worked fine the previous times I've run MIK, and no changes to the Title section were made. Any idea what's happening here?

Archive.zip

@bondjimbond
Copy link
Collaborator Author

In fact, all my mappings - hitherto just fine - are now "not well formed".

@mjordan
Copy link
Collaborator

mjordan commented Feb 13, 2020

@bondjimbond sorry, I don't have time to test, but can you clarify that if you use MIK to generate content (i.e, not run its checks), do things work as expected? Perhaps the problem is with the check code. But, as to why it would suddenly stop working like it used to, I have no idea.

@bondjimbond
Copy link
Collaborator Author

Nope, it crashes out.

Fatal error: Uncaught mik\exceptions\MikErrorException in /Users/brandon/sfuvault/mik/mik:105
Stack trace:
#0 /Users/brandon/sfuvault/mik/src/fetchers/Csv.php(94): {closure}(8, 'Undefined index...', '/Users/brandon/...', 94, Array)
#1 /Users/brandon/sfuvault/mik/src/fetchers/Csv.php(130): mik\fetchers\Csv->getRecords()
#2 /Users/brandon/sfuvault/mik/mik(131): mik\fetchers\Csv->getNumRecs()
#3 {main}
  thrown in /Users/brandon/sfuvault/mik/mik on line 105

@mjordan
Copy link
Collaborator

mjordan commented Feb 13, 2020

Have their been any code changes since it stopped working?

@bondjimbond
Copy link
Collaborator Author

None. The only difference is that I am running the same .ini file with a new metadata CSV -- but no changes to the mapping file, which is the file that's throwing errors.

@mjordan
Copy link
Collaborator

mjordan commented Feb 13, 2020

I'm sorry, I can't think of why that is happening. Not sure if @MarcusBarnes has any insights.

@bondjimbond
Copy link
Collaborator Author

Ack, looks like an OpenOffice problem. Somehow it's saving my files without quoting the cells, even though they're opening with quotes. What the heck.

@bondjimbond
Copy link
Collaborator Author

What happened:

  • Allowed my Mac to install Numbers
  • Numbers made itself the default program for CSVs
  • ???
  • Numbers messed up my recently-opened CSVs even though they were only opened and saved with OpenOffice

Solution:

  • Make sure CSV default is OpenOffice
  • Copy an older mapping CSV
  • Rewrite
  • Seems to work now

@mjordan
Copy link
Collaborator

mjordan commented Feb 14, 2020

Good to hear it was a Numbers problem. Can't go wrong with LibreOffice, in my experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants