specify6 icon indicating copy to clipboard operation
specify6 copied to clipboard

Error when importing attachment mapping file

Open yvonneekanim opened this issue 6 years ago • 19 comments

When I try to import attachment mapping files, regardless of file type, I get this error attachment I tried using a csv file with one column, each value separated by a comma like the error mentions but still get the same error

yvonneekanim avatar May 20 '20 21:05 yvonneekanim

Usually when this error is displayed, it is actually because none of the lines in the file matched a record in the db, or an attachment file, depending on the mapping type. If some lines match something, Specify will display of the non-matches, but if there are zero matches, this error gets displayed.

timo11 avatar May 20 '20 21:05 timo11

I used existing catalog numbers and accession numbers in the csv files, separated by commas and still got the error

yvonneekanim avatar May 20 '20 21:05 yvonneekanim

It works for me. What db, what files, and what types of mappings aren't working?

timo11 avatar May 21 '20 17:05 timo11

I tested it on a copy of vims and in a demodatabase. I've tried mapping accession and collection object. When import it directly by changing the attachment name to the accession number or catalog number, it works fine

yvonneekanim avatar May 21 '20 17:05 yvonneekanim

What ids, what names?

entries like this work for me in a CO mapping file :

1,att1.png 2,att2.png 3,att3.png 4,att4.png 5,att5.png

timo11 avatar May 21 '20 17:05 timo11

I was doing the same thing and it doesn't work for me. @maxpatiiuk can you take a look at this too?

yvonneekanim avatar May 21 '20 17:05 yvonneekanim

@yvonneekanim ok, It worked for me a few months ago, tho I will test it again to make sure

maxpatiiuk avatar May 21 '20 17:05 maxpatiiuk

Screen Shot 2020-05-21 at 1 00 20 PM Screen Shot 2020-05-21 at 1 00 06 PM

Works well Tested in an empty database on macOS with the latest Specify 6.8.00 build

maxpatiiuk avatar May 21 '20 18:05 maxpatiiuk

Works well in Windows 10 with a clean database

maxpatiiuk avatar May 21 '20 18:05 maxpatiiuk

By clean database you mean a database with catalog numbers that match what is in the csv file right?

yvonneekanim avatar May 21 '20 18:05 yvonneekanim

Yes

I created a new database Added 5 COs Imported a mapping file Success

maxpatiiuk avatar May 21 '20 18:05 maxpatiiuk

Great, thanks. Still doesn't work for me for whatever reason

yvonneekanim avatar May 21 '20 18:05 yvonneekanim

FYI the incorrect display of "...must be separated by..." msg only occurs when none of the files are found - the catnums or whatever don't matter. If that helps?

timo11 avatar May 21 '20 22:05 timo11

Also, maybe your windows account or specify does not have permission to access the image files?

timo11 avatar May 22 '20 14:05 timo11

That doesn't seem to be the problem. Will the log files help?

yvonneekanim avatar May 22 '20 15:05 yvonneekanim

They might. They're our last hope.

timo11 avatar May 22 '20 15:05 timo11

I've attached the log file. Also my attachment file path isn't the default path. I don't know if that has anything to do with why it doesn't work but I can add attachments, just not through the import mapping tool Log files 5_22_20.docx

yvonneekanim avatar May 22 '20 16:05 yvonneekanim

Nothing in the log. Can you attach a csv mapping file that isn't working please?

timo11 avatar May 22 '20 16:05 timo11

Github won't let me attach a csv. I'll put it in your folder on the shared drive

yvonneekanim avatar May 22 '20 16:05 yvonneekanim