- AuthorPosts
- July 22, 2015 at 2:27 pm #20236BobBaileyParticipant
The Split File tool is incredibly useful. I’m working with some huge files, 1M+ records. Some of the tools can’t work with that many at once. So the splitter is very useful.
I did discover, to my chagrin, that if I added a header in the header dialog box the resulting file thought it had “embedded newlines”.
Specifically, I pasted this string:
“ID”,”UserID”,”LastName”,”FirstName”,”ENTITY_TP”,”CandID”,”CMTE_ID”,”AMNDT_IND”,”RPT_TP”,”TRANSACTION_PGI”,”IMAGE_NUM”,”TRANSACTION_TP”,”NAME”,”CITY”,”STATE”,”ZIP_CODE”,”EMPLOYER/OCCUPATION”,”TRANSACTION_DT”,”TRANSACTION_AMT”,”OTHER_ID”,”Party”,”memo_CD”,”memo_text”,”SUB_ID”,”CYCLE”,”TargetID”,”Contact ID CS”,”Committee ID CS”,”Other Committee”,”MOC Salesforce ID”,”Last Name”,”Source – Added From”
Which does include a newline at the end. That may have been the problem.
Thanks… BobJuly 22, 2015 at 8:02 pm #20238Yutaka EmuraKeymasterHello,
I am not sure exactly what your question is. However, in the new beta version, the “Repeat the first line as header” check box was added to the “Header and footer” page of the “Split Current Document into Several Files” wizard.
If you still use the old stable version, you might want to add “\r\n” to the end of the header you specify, which will add the newline.
Thanks!
July 23, 2015 at 9:11 am #20239BobBaileyParticipantHi,
Actually, what seems to have happened is that only the first 260 characters (original was 400) were pasted into the Insert Header dialog.
“ID”,”UserID”,”LastName”,”FirstName”,”ENTITY_TP”,”CandID”,”CMTE_ID”,”AMNDT_IND”,”RPT_TP”,”TRANSACTION_PGI”,”IMAGE_NUM”,”TRANSACTION_TP”,”NAME”,”CITY”,”STATE”,”ZIP_CODE”,”EMPLOYER/OCCUPATION”,”TRANSACTION_DT”,”TRANSACTION_AMT”,”OTHER_ID”,”Party”,”memo_CD”,”mem
Here is the original that I was pasting:
“ID”,”UserID”,”LastName”,”FirstName”,”ENTITY_TP”,”CandID”,”CMTE_ID”,”AMNDT_IND”,”RPT_TP”,”TRANSACTION_PGI”,”IMAGE_NUM”,”TRANSACTION_TP”,”NAME”,”CITY”,”STATE”,”ZIP_CODE”,”EMPLOYER/OCCUPATION”,”TRANSACTION_DT”,”TRANSACTION_AMT”,”OTHER_ID”,”Party”,”memo_CD”,”memo_text”,”SUB_ID”,”CYCLE”,”TargetID”,”Contact ID CS”,”Committee ID CS”,”Other Committee”,”MOC Salesforce ID”,”Last Name”,”Source – Added From”
I can understand how the truncation would have caused a cascading problem. Is there a size limit to the header and footer text fields in the dialog box?
I did some further testing and found that $(Clipboard) worked just fine. $(CurText) also worked just fine.Thanks… Bob
July 23, 2015 at 11:08 am #20240Yutaka EmuraKeymasterYes, as you can see, there is a limitation of 259 characters long for the header text field. You can use the $(FirstLine) parameter to avoid this limitation, or check the “Repeat the first line as header” check box as described above.
Thanks!
July 23, 2015 at 1:57 pm #20241BobBaileyParticipantAh yes… Now I see it. $(FirstLine) works perfectly. Sorry for the hassle.
…BobJuly 23, 2015 at 2:13 pm #20242BobBaileyParticipantOne other thing: is it possible to customize and set defaults for the Splitter?
It’s a fabulous tool.
…BobJuly 23, 2015 at 3:33 pm #20243Yutaka EmuraKeymasterYou can set the “Save Options” check box at the end of the wizard. Thanks!
August 5, 2015 at 4:29 pm #20288BobBaileyParticipantI just today used the “Repeat the first line as header” check box and it worked great. Exactly what I needed.
THANKS… Bob
- AuthorPosts
- You must be logged in to reply to this topic.