{"id":555,"date":"2013-04-17T15:54:35","date_gmt":"2013-04-17T20:54:35","guid":{"rendered":"https:\/\/danvanfleet.com\/?p=555"},"modified":"2013-04-17T16:00:14","modified_gmt":"2013-04-17T21:00:14","slug":"protrust-ptwin-130-error-window","status":"publish","type":"post","link":"https:\/\/danvanfleet.com\/index.php\/protrust-ptwin-130-error-window\/","title":{"rendered":"ProTrust PTWIN-130 Error window"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/danvanfleet.com\/wp-content\/uploads\/2013\/04\/image.png\"><img data-recalc-dims=\"1\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; margin: 0px 10px 0px 0px; display: inline; border-top: 0px; border-right: 0px\" title=\"image\" border=\"0\" alt=\"image\" align=\"left\" src=\"https:\/\/i0.wp.com\/danvanfleet.com\/wp-content\/uploads\/2013\/04\/image_thumb.png?resize=268%2C127\" width=\"268\" height=\"127\"><\/a>Today&#8217;s fun call of the day was related to ProTrust having a Ledger locked for editing. The Error (PTWIN-130) is displayed when someone attempts to add a transaction to the ledger.&nbsp;&nbsp; No one knew who or why, but it&#8217;s been like that for days.&nbsp; There&#8217;s a right way and a wrong way to fix this particular problem.&nbsp; We&#8217;ll talk about the wrong way first.<\/p>\n<p><!--more--><\/p>\n<p>ProTrust keeps it&#8217;s file locks in the unremarkably named \\PTLocks folder off the <a href=\"http:\/\/SoftProCorp.com\" target=\"_blank\">SoftPro<\/a> Shared Root folder. In this case the drive is mapped to Y:\\ drive and shows one file.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/danvanfleet.com\/wp-content\/uploads\/2013\/04\/image1.png\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; margin: 0px auto; display: block; float: none; border-top: 0px; border-right: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/i0.wp.com\/danvanfleet.com\/wp-content\/uploads\/2013\/04\/image_thumb1.png?resize=560%2C149\" width=\"560\" height=\"149\"><\/a>That being the case, the wrong way is a fine way to solve this problem.&nbsp; Only when there are several lock files is it remotely necessary to attack this solution using pristine techniques.&nbsp; Simply deleting the file will allow the ledger to be edited again.<\/p>\n<h4>What if the file can&#8217;t be deleted.<\/h4>\n<p>If the user still has a lock on the file, it will not be deletable, as is the case.&nbsp; There are a series of ways to remove a network file lock.&nbsp; We&#8217;re going to do it at cmd. On the server start cmd.exe as Administrator and navigate to the shared <a href=\"http:\/\/SoftProCorp.com\" target=\"_blank\">SoftPro<\/a> Folder\\PtLocks folder. (the same folder as above, but off the physical drives)<\/p>\n<p>The first thing we need to do it figure out an ID associated with the lock.&nbsp; To do that run Net File &gt; find.txt.&nbsp; And then run Notepad find.txt<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/danvanfleet.com\/wp-content\/uploads\/2013\/04\/image2.png\"><img data-recalc-dims=\"1\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; margin: 0px; display: inline; border-top: 0px; border-right: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/i0.wp.com\/danvanfleet.com\/wp-content\/uploads\/2013\/04\/image_thumb2.png?resize=422%2C63\" width=\"422\" height=\"63\"><\/a>&nbsp;<\/p>\n<p>and Search for the file name or a part thereof.&nbsp; IYT is a rather odd letter combination so I searched for that, searching for IYT.PTL would likely be a better choice.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/danvanfleet.com\/wp-content\/uploads\/2013\/04\/image3.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; margin: 0px; display: inline; border-top: 0px; border-right: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/i0.wp.com\/danvanfleet.com\/wp-content\/uploads\/2013\/04\/image_thumb3.png?resize=493%2C190\" width=\"493\" height=\"190\"><\/a> <\/p>\n<p>Your file will have lots more data, we need the first column, The ID column.&nbsp; Select that and copy it to the clipboard.<\/p>\n<p>Then at the cmd prompt type &#8220;Net File &#8221; Right click the mouse and select Paste &#8221; \/Close&#8221;<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/danvanfleet.com\/wp-content\/uploads\/2013\/04\/image4.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; margin: 0px; display: inline; border-top: 0px; border-right: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/i0.wp.com\/danvanfleet.com\/wp-content\/uploads\/2013\/04\/image_thumb4.png?resize=427%2C70\" width=\"427\" height=\"70\"><\/a> <\/p>\n<p>Hit enter and the file will be unceremoniously closed.&nbsp; The Ledger is now unlocked.<\/p>\n<h4>The right way<\/h4>\n<p>Now the right way of doing this is to verify we have the correct lock file and only delete the one we are interested in.&nbsp; Bad things can happen if you force close these lock files while people are processing on the system.&nbsp; Any file that is deletable seems safe to delete, but if it&#8217;s open by a user, don&#8217;t just delete it because you can.<\/p>\n<p>So let&#8217;s find the correct lock file first.&nbsp; Open SSMS (SQL Server Management Studio) Take a look at the PTWin table for the row that matches the Ledger number.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/danvanfleet.com\/wp-content\/uploads\/2013\/04\/image5.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; margin: 0px; display: inline; border-top: 0px; border-right: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/i0.wp.com\/danvanfleet.com\/wp-content\/uploads\/2013\/04\/image_thumb5.png?resize=493%2C100\" width=\"493\" height=\"100\"><\/a>&nbsp;<\/p>\n<p>I used a quick select command, Select * from PTWin where fileid = &#8216;myLedgerID&#8217;<\/p>\n<p>The lockfile column will have the critical portion of the file name.&nbsp; Delete that file, and release the ledger<\/p>\n<p>So that&#8217;s how to fix a PTWin-130 error in ProForm Enterprise from <a href=\"http:\/\/SoftProCorp.com\" target=\"_blank\">SoftPro<\/a> Corporation.&nbsp; This procedure also works in Standard.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today&#8217;s fun call of the day was related to ProTrust having a Ledger locked for editing. The Error (PTWIN-130) is displayed when someone attempts to add a transaction to the ledger.&nbsp;&nbsp; No one knew who or why, but it&#8217;s been like that for days.&nbsp; There&#8217;s a right way and a wrong way to fix this [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[23],"tags":[6,18],"class_list":["post-555","post","type-post","status-publish","format-standard","hentry","category-softpro-2","tag-error","tag-protrust","entry"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4wyVb-8X","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/danvanfleet.com\/index.php\/wp-json\/wp\/v2\/posts\/555","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/danvanfleet.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/danvanfleet.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/danvanfleet.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/danvanfleet.com\/index.php\/wp-json\/wp\/v2\/comments?post=555"}],"version-history":[{"count":2,"href":"https:\/\/danvanfleet.com\/index.php\/wp-json\/wp\/v2\/posts\/555\/revisions"}],"predecessor-version":[{"id":557,"href":"https:\/\/danvanfleet.com\/index.php\/wp-json\/wp\/v2\/posts\/555\/revisions\/557"}],"wp:attachment":[{"href":"https:\/\/danvanfleet.com\/index.php\/wp-json\/wp\/v2\/media?parent=555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/danvanfleet.com\/index.php\/wp-json\/wp\/v2\/categories?post=555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/danvanfleet.com\/index.php\/wp-json\/wp\/v2\/tags?post=555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}