{"id":31620,"date":"2015-08-05t15:35:05","date_gmt":"2015-08-05t19:35:05","guid":{"rendered":"\/\/www.deco-dalles.com\/?p=31620"},"modified":"2019-10-18t09:55:16","modified_gmt":"2019-10-18t13:55:16","slug":"clean-pobs-xer-file","status":"publish","type":"post","link":"\/\/www.deco-dalles.com\/clean-pobs-xer-file\/","title":{"rendered":"xer file slow to import to p6? try cleaning pobs data"},"content":{"rendered":"
the other day one of our 世界杯2022亚洲比赛时间
members called our support line with an unusual p6 problem. i’m always happy to help out our members<\/a> solve p6 problems, even when it’s 4:30pm on the friday afternoon before i’m off on a full week of vacation….<\/p>\n ok. full disclosure here.<\/p>\n i had already powered down my laptop for the weekend and was just about to grab something ice-cold and carbonated when the phone rang. i was hoping it was something we could solve quick or that i had already written a solution for. i was tired, and it was hot in the office. the patio was calling. this wasn’t how i was expecting to wrap up my week. oh well.<\/p>\n the call was was from doug (not his real name) from alberta, a 世界杯2022亚洲比赛时间
member who works for a large national construction company…and he was having problems with an xer file<\/a> he was sending to a client. doug’s client was trying to import doug’s xer file, but it was taking hours to import not an exaggeration – doug said it took 6 hours for the client to import his p6 xer file successfully. something was clearly wrong.<\/p>\n sometimes you get those problems that just can’t stay away from because it’s something you haven’t seen before and curiousity just takes over. that’s what happened here for me. i was thinking “6 hours to import? how can that possibly be?”<\/p>\n so i made a bargain with myself. if i could help doug in the next 30 minutes (by 5pm), then i would reward myself with not one, but two ice-cold carbonated bevvies. \u00a0i would be on vacation after all and sometimes you have to motivate yourself!<\/p>\n now doug described his project schedule to me. it was a few thousand lines – not uncommon – and it was both resource and cost-loaded. he and his client were using primavera p6 professional v8.4.<\/p>\n i did some quick research online about\u00a0slow\u00a0importing of xer files, but there wasn’t any obvious leads there. here’s what i suggested to doug.<\/p>\n doug’s xer file was clearly taking too long to import. in this case, i can see 2 things that might need addressing:<\/p>\n my experience is that most machines and databases don’t run into slow performance issues like they used to 10+ years ago…back in the day when you had too many background processes running on your pc and those programs would grind the processor to a halt. so i was thinking there was likely something going on with the xer file.<\/p>\n here’s what i recommended to doug:<\/p>\n a) rather than use the xer file format, try the xml format that p6 supports instead.\u00a0<\/strong><\/p>\n the xml format<\/a> functions much like the xer file format. there are some differences, but the project will come across regardless. if the xml file imports quickly, then there’s a problem with the xer file.<\/p>\n b) remove the pobs data from the xer file.<\/strong><\/p>\n this solution was suggested recently on planningplanet\u00a0where this pobs issue<\/a> came to my attention (and thanks to the smart p6 experts who suggested it there). i’ll outline the steps to easily removing pobs data soon, including a tip that will be a major timesaver, but first, what did doug do?<\/p>\n doug opted to try suggestion b). by removing the pobs data from his xer file, we found that he was able to reduce his file’s size from 25mb down to 2mb!<\/strong> wow! that’s a lot of pobs data!<\/p>\n for doug, removing the p6 pobs data also reduced the import time from 6 hours to >2 minutes! that’s an exponential improvement!<\/p>\n yes, we got doug fixed and i made it to the patio and kicked off a great vacation week. but i’m not finished with this pobs issue. i’m not completely sure why it’s cropping up right now, but i’ve seen enough online grumblings about it to want\u00a0to tackle it in detail.<\/p>\n so let’s dig in and get down to the bottom of pobs data and xer files in primavera p6.<\/p>\n since this is a fairly new issue with p6, i’ve done some homework around the pobs data issue.<\/p>\n every primavera p6 database has a pobs table. looking at the primavera p6 database schema docs, pobs stands for performing organizational breakdown structure. the pobs data isn’t used (yet) by primavera p6 professional or primavera p6 eppm. here’s what an oracle support doc titled “what is the pobs table used for and what data is stored in pobs? (doc id 1959228.1)<\/a><\/strong>” had to say:<\/p>\n functions related to table pobs have not been implemented yet so the table has not been put to use. the table may be removed in a future release.<\/em><\/p>\n if there is data in this table, then it’s probably present in the sample database and not inserted during operations performed in the application.<\/em><\/p><\/blockquote>\n that doc says it applies to primavera p6 eppm v7.0.3.0 or later.<\/p>\n another support doc discussed how the pobs table is getting overly large and affecting performance of the application. let’s cover that issue another time.<\/p>\n however, at least 1 bug has been logged for performance issues related to pobs data (bug 20800033 : exclude pobs data from xer export & import operations<\/a>), and the bug had this to say about xer import issues:<\/p>\n we do not utilize the pobs table yet we export\/import the data from this so essentially, here’s what we know:<\/p>\n i have a hunch that pobs data is related to primavera cost manager, a now-defunct cost management solution that was once part of the primavera suite years ago. primavera cost manager integrated tightly with p6 professional and looking at documentation that still exists, there was a concept of a performing organizational breakdown structure in cost manager. but alas, only oracle can confirm this.<\/p>\n [note: a simple alternate solution is provided at the bottom of this post]<\/p>\n we’ve already shown you how can you clean global data from xer files with the xer file parser<\/a>, but this solution is much simpler. let me start by saying you can do this the \u00a0s..l..o…w \u00a0way or the quick way<\/em> (my way). let me show you how it’s done.<\/p>\n first, export your project to an xer file.<\/p>\n since xer files are actually text files, you can edit them with a text editor like notepad. here’s what one looks like when you open it up:<\/p>\n <\/p>\n we’re going to delete a section of data from the file. to denote a new section, look for a “%t”<\/strong>. to find the pobs section, look for “%t \u00a0 \u00a0pobs”<\/strong>. that indicates the start of the pobs data in your file. you should see it somewhere near the top of the file in first 100 lines. above, you can see it on line 29 of the file.<\/p>\n deleting pobs data<\/strong><\/p>\n basically, the process is to delete all lines starting from (and including) the\u00a0“%t \u00a0 \u00a0pobs”\u00a0<\/strong>line, until the next “%t” in the file.\u00a0do not delete the next “%t” line.<\/p>\n so if you’re using notepad, you can simply highlight this huge swath of text and hit delete.<\/p>\n <\/p>\n in my example above, there’s less than 200 lines to highlight so it’s pretty easy.<\/p>\n but you’ll see that\u00a0the amount of pobs data isn’t consistent. here’s a short 30-activity project schedule as viewed in\u00a0a text viewer.<\/p>\n <\/p>\n the image above might be more typical. the pobs data spans from line 29 to line 4412. most of this file is pobs data!<\/p>\n so if you’ve got a huge file and a huge amount of pobs to clear out of your xer file, let me know you the quick way to clean it.<\/p>\n let’s begin. first, you’ll need some better text editing tools than simple windows notepad.\u00a0i’m recommeding notepad++<\/a>;\u00a0free and easy to use. it’s worth the download!<\/p>\n 1) make a backup of your xer file first. edit your file in notepad++<\/strong>.<\/p>\n 2) find the\u00a0“%t \u00a0 \u00a0pobs<\/strong>” line in your file – somewhere in the first 50 lines. note what line number this is, you’ll need it later.<\/p>\n 3) now, let’s find the next “%t<\/strong>” line.\u00a0place your cursor at the end of the “%t \u00a0 \u00a0pobs” line. hit ctrl+f<\/strong> (or use the search menu) and search for the next “%t” occurrence in the file.<\/p>\n <\/p>\n 4) make a note of the line number you’ve been taken to. mine was line 4415.<\/p>\n <\/p>\n 5) now we’re going to use some tools to highlight the pobs data since we know the line numbers. go back to the\u00a0“%t \u00a0 \u00a0pobs” line. place your cursor at the beginning of the line. now\u00a0goto edit -> begin\/end select<\/strong>. this essentially tells notepad++ to start highlighting here.<\/p>\n <\/p>\n 6) now hit ctrl+g<\/strong> (or goto search -> goto). make sure to choose line and type in the line number from step 4) – for me 4415.<\/p>\n <\/p>\n 7) now that you’re on the next %t line, tell notepad++ to end the highlighting here. goto the edit menu<\/strong> and uncheck begin\/end highlighting<\/strong>.<\/p>\n <\/p>\n 8)\u00a0now all of your pobs data is highlighted. simply tap delete or backspace<\/strong> to remove it from the file. make sure you delete the %t pobs line as well, but not any other lines.<\/p>\n 9) save the file and import.<\/p>\n for the xer file i used in this writeup, removing the pobs data took it from 4489 lines<\/strong> down to 102 lines<\/strong>. and it reduced the file from 564kb<\/strong> down to a mere 21kb.<\/strong><\/p>\n that’s a tough question.<\/p>\n reports from oracle say that once primavera p6 pobs data is in your database, it will be exported along with an xer file<\/a>. the receiving database will then “be infected” with this data. the data seems to build up in the database (something i’ll cover fixing in my next post) and continues to grow as files go back and forth.<\/p>\n but why is this suddenly an issue now?<\/p>\n one theory i have is that a recent release, possibly primavera p6 v8.4<\/a>, had pobs data in the sample database that is often setup at install time. i’m choosing v8.4 as it was referenced in the bug i mentioned earlier in this post. users often use the sample database as a production database and the data could be propagating from there.<\/p>\n whatever my theories are, these pobs issues seem to be appearing\u00a0more and more.<\/p>\n if you’re having difficulties with performance importing or exporting primavera p6 xer files<\/a>, try cleaning\u00a0the pobs data from them. yes, you can use windows notepad, but if the file is large, you’ll be scrolling for an hour. try using the techniques i’ve shown above along with the notepad++ text editor to save you time.<\/p>\n i fully recognize that what i’m offering here isn’t truly a permanent solution. constantly editing xer files to have a reasonable import time isn’t viable and it is a product issue that needs to be addressed by oracle. here’s hoping this gets you by in the meantime.<\/p>\n in my next post, i discuss the pobs table in your primavera p6 database and strategies to keep it clean or empty. read it now –\u00a0how to clean your p6 pobs table on mssql & oracle db<\/a>.<\/p>\n it turns out that using notepad is really too tedious, although some commenters on this post had some great suggestions for making that process easier.\u00a0but let me make life even easier by recommending a simple utility created by 世界杯2022亚洲比赛时间
reader and senior planning engineer ahmet kochan. ahmet’s pobs cleaner is dead simple to use and free! pobs cleaner can clean 1 or more xer files at the same time. it creates a newly cleaned version of your xer file with the extension __cleaned.xer in case you ever need the original file.<\/p>\n <\/p>\n there are some other tools on the market that clean pobs from xer files, but ahmet’s tool is free and so simple to use that i highly recommend it.<\/p>\n enjoy! pobs cleaner is even packaged here with a test project so you can see how it works before you use it on a real project.<\/p>\n","protected":false},"excerpt":{"rendered":" the other day one of our 世界杯2022亚洲比赛时间
members called our support line with an unusual p6 problem. i’m always…<\/p>\n","protected":false},"author":5,"featured_media":31644,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[188],"tags":[203],"content-topics":[],"class_list":["post-31620","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-and-technology","tag-xer-file-parser"],"acf":[],"yoast_head":"\nxer file slow to import into primavera p6? pobs xer file data may be the culprit<\/h2>\n
\n
what is pobs data?<\/h2>\n
what are the problems with pobs data & xer files?<\/h2>\n
\ntable when completing xer export\/import.\u00a0 the xer export\/import should be
\nwritten to exclude this data with xer export\/import operations of p6
\nprofessional.<\/em><\/p><\/blockquote>\n\n
how can i clean pobs data from my xer file?<\/h2>\n
the quick way to clean pobs data from a p6 xer file<\/h2>\n
why are primavera p6 users having issues with pobs now?<\/h2>\n
conclusion<\/h3>\n
update – 2016<\/h2>\n
<\/i> download pobs cleaner<\/a><\/h3>\n