{"id":117,"date":"2013-05-15T01:39:17","date_gmt":"2013-05-15T01:39:17","guid":{"rendered":"http:\/\/patrick4pitss.wordpress.com\/?p=100"},"modified":"2017-12-19T16:52:22","modified_gmt":"2017-12-19T15:52:22","slug":"webutil-client_text_io-put_line-stops-after-8000-lines","status":"publish","type":"post","link":"https:\/\/pitss.org\/de\/webutil-client_text_io-put_line-stops-after-8000-lines\/","title":{"rendered":"Webutil client_text_io.put_line stops after ~8000 Lines"},"content":{"rendered":"<p>We had the problem while creating a .csv file with webutil client_text_io, that it stopped working after around 8000 lines. After some research we figured out, that webutil is actually not creating the file on the file system, but keeping it in the cache till the procedure is finished. So it depends on your RAM how many lines you can generate.<\/p>\n<p>The solution is to fire a \u2018synchronize\u2019 after 8000 lines generated. This writes the lines to the files and empties the memory.<\/p>\n<p>Don\u2019t fire the synchronize after every line in the loop. This will crash your network, because every synchronize is a network round-trip.<\/p>\n<p>If you have a Webutil\/<a href=\"https:\/\/pitss.org\/de\/top-java-frameworks-2018\/\">Java<\/a> Integration Problem please feel free to contact me or take a look at our website: <a href=\"http:\/\/pitss.org\/us\/services-solutions\/development\/\" rel=\"nofollow\">http:\/\/pitss.org\/us\/services-solutions\/development\/<\/a><\/p>\n<p><a href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/patrick4pitss.wordpress.com\/100\/\" rel=\"nofollow\"><img decoding=\"async\" src=\"http:\/\/feeds.wordpress.com\/1.0\/comments\/patrick4pitss.wordpress.com\/100\/\" alt=\"\" border=\"0\" \/><\/a> <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pixel.wp.com\/b.gif?host=patrick4pitss.wordpress.com&amp;blog=33916245&amp;%23038;post=100&amp;%23038;subd=patrick4pitss&amp;%23038;ref=&amp;%23038;feed=1\" alt=\"\" width=\"1\" height=\"1\" border=\"0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We had the problem while creating a .csv file with webutil client_text_io, that it stopped working after around 8000 lines. After some research we figured out, that webutil is actually not creating the file on the file system, but keeping &#8230; <a href=\"http:\/\/patrick4pitss.wordpress.com\/2013\/05\/14\/webutil-client_text_io-put_line-stops-after-8000-lines\/\">Continue reading <span>&#8594;<\/span><\/a><img loading=\"lazy\" decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/pixel.wp.com\/b.gif?host=patrick4pitss.wordpress.com&amp;blog=33916245&amp;post=100&amp;subd=patrick4pitss&amp;ref=&amp;feed=1\" width=\"1\" height=\"1\" \/><\/p>\n","protected":false},"author":48,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[100],"tags":[],"class_list":["post-117","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/posts\/117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/users\/48"}],"replies":[{"embeddable":true,"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/comments?post=117"}],"version-history":[{"count":1,"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/posts\/117\/revisions"}],"predecessor-version":[{"id":18478,"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/posts\/117\/revisions\/18478"}],"wp:attachment":[{"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/media?parent=117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/categories?post=117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pitss.org\/de\/wp-json\/wp\/v2\/tags?post=117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}