|
#1
|
|||
|
|||
Problems with splitting items
I am having difficulties splitting items using Item > Split. I have checked the Help File but it is not very informative. Is this feature meant to be controlled by the Import settings in Options, i.e. you have to check "Split text on separator" and specify some separator text? Or is it just based on carriage returns? I have tried it both ways and neither has been successful.
I have an Item with a number of lines in it that I want to turn into separate items. When I do Item > Split nothing happens. Or rather the item that contains the lines I want to be made into separate items gets renamed to the first line, but no split takes place. If I have specified separator text in Options (which appears under the Imports heading, so I don't know if this is relevant to the purpose), and with that separator included in the item I try Item > Split, I get this error message: "Error loading items: Foreign key violation. ItemAttribute table references missing row in Item table". Then I have to press Undo several times to get out of this error as UR will not let me proceed otherwise. I then tried copying the lines in question and using Paste Special to "Paste Text One Item Per Line" - but all this did was create just one item, its title taken from the first of the lines. I am using version 6.1, downloaded today from https://kinook.com/Forum/showthread.php?t=5670, so I assume it includes the 6.1.01 fix that seems to have addressed various Item Splitting issues. As far as I can tell from the brief mention in the Help File this should be a straightforward split based on carriage returns - "separate items for each line of text". However this is not working for me at all. I finally (sort of) got what I was looking for by copying to the clipboard, then going to the Import dialogue, choosing Load Clipboard, and assigning the sole Input Field to Item Text. This is not exactly convenient however. Also, is there meant to be an option to name/not name the split items based on the original text? I got the impression there was from earlier posts. |
#2
|
|||
|
|||
Item | Split (and Item | Join) does use the separator text configured at Tools | Options | Import | Separator text for appending/joining/combining/splitting. If you want to split on new lines, enter one or two blank lines as the separator.
https://kinook.com/UltraRecall/Manua...portdialog.htm When splitting, the item title is always based on the first line of text in the new item (truncated to MaxCharsForItemTitle at https://www.kinook.com/Forum/showthread.php?t=5097). See IncludeItemTitleOnJoin at https://www.kinook.com/Forum/showthread.php?t=5097 for configuring whether to include the item title when joining. You might try restarting UR or compacting & repairing your database if you're getting an error message like that. |
#3
|
|||
|
|||
hi Kinook
thanks for the clarification. This is definitely a problem with one or more of my databases. All kinds of weird things happening when I try to carry out a split in them. Template folder vanishing. Compact and repair brings it back but now icons for templates have disappeared. Items turning read-only. And so forth. When I create a new database and try splitting an item in that, it works fine. From a documentation point of view, I would suggest something in the Item > Split entry that directs the user to the Import tab in Options. I understand how this function operates across the gamut of join/split/import, but I don't really associate splitting an item with importing, so I puzzled over this more than I needed to. With the databases that seem to have become corrupted, I will copy and paste items from them into brand-new databases. I assume that would be a fresh start for them and shouldn't carry over any of their problems? cheers David F. |
#4
|
|||
|
|||
For my own edification, what could've potentially caused the database to be corrupted? I have UR databases that I started 11 years ago, but never ran into any corruption issues. Is there any particular activity you do that you suspect? For example, do you store files likes pdfs, MS Word, Excel, etc?
Thanks |
#5
|
|||
|
|||
Well I would say I've had the same kind of experience, though not going back quite as far as 11 years - I mean with regard to the absolute stability and reliability of UR. I've never had this happen to any other database. So it is a bit of a mystery. It cropped up in the context of trying to split an item, and failing. Something did definitely go wrong there.
I do have databases where I store Word, Excel, PDF and so on, though not in this one. Never had any problems with them. Frankly there is no obvious culprit. Several compact and repairs didn't fix it, including a reset to default settings. I tried copying and pasting items into a new database, but they just brought the problem with them. I'm not too worried. I'll probably export the items to CSV and reimport them somewhere else. It has not in any way put me off using UR. |
#6
|
|||
|
|||
More on Splitting Items
hi Kinook,
I have worked out what (for me anyway) causes the error I reported earlier in relation to splitting an item. I can reliably produce it if in a database I try to split an item, and the options I have set under Import do not correspond with what I am doing. E.g. if I try to split an item but the "Split text on separator" box is unchecked, I get the error message as previously noted: "ItemAttribute table references missing row" etc. Or if the box is checked, but the item does not contain separators corresponding to what is in the separator box in Options, I get the error message. At this point if you Undo enough you come out of the error message; but I suspect if you keep trying to use the Split command when things don't match up as described above, you can end up as I did with other problems: missing template folder etc. So now I know how to avoid the error happening - but it doesn't seem a very "forgiving" way of doing things... cheers David F. |
#7
|
|||
|
|||
I wasn't able to reproduce that behavior. Can you ZIP and post or send a database that can demonstrate the issue? Thanks.
|
#8
|
|||
|
|||
Will do... but just out of curiosity, on your system, if you try to split an item, and it can't be split (separators aren't present, "split"option isn't checked), what happens? Does it just fail silently?
|
#9
|
|||
|
|||
I'm able to reproduce an error that seems to be related to undoing a split operation if the split parent is first child of a root item.
https://www.kinook.com/Forum/showthr...2345#post22345 |
#10
|
|||
|
|||
I'm able to reproduce the 'error pasting data: foreign key ...'
1. Download the urd file from https://www.dropbox.com/s/bponofyugf...-data.urd?dl=0 2. Verify option / 'split text on separator is checked' 3. Verify options / text separator value is null 4. Go to info item 'Testing split errors' & drag its contents to tree root 'My Data' 5. Should get the error Thanks |
#11
|
|||
|
|||
Quote:
If the separator text is not found when splitting, it creates a single item. Although I did find that if Separator text is empty, UR will hang when splitting an item (or importing text with Split text on separator checked). We'll fix that. |
#12
|
|||
|
|||
The latest download (6.1.0.2) fixes the following issues:
1) Hang when splitting or importing item and Tools | Options | Import | Separator text is blank 2) Error undoing after splitting or importing item at root of tree 3) Updated the help to document the import options applying to Split and Join commands 4) Dropping text not honoring Split text on separator import option |
|
|