2011 Microsoft Partner of the Year Finalist

BLOGS

MPS Partners provides functional and technical expertise and insights into business process management trends and Microsoft technologies.

HOT JOBS
Interested in reviewing our current job openings or submitting a resume?
CLICK HERE
Home » Blog

SharePoint TaxonomyField and “The object has been updated by another user since it was last fetched”

SharePoint TaxonomyField and “The object has been updated by another user since it was last fetched”

TaxonomyError.png
Recently I was working with SharePoint Content Types utilizing Managed Metadata and ran into an annoying error.  It simply stated "The object has been updated by another user since it was last fetched".  The error is fairly straightforward, I was performing an Update() on a TaxonomyField and clearly the field was being changed before my code finished executing.  However I could not find why this was happening.  I was following a blog detailing how to Provisioning SharePoint 2010 Managed Metadata fields and could not see where I was straying from his example.
 
After hours of hunting for the answer to this I finally came across a blog talking about Fixing Taxonomy Metadata Issues After a Site Collection Restore and read one very important line "See the "Version" attribute? That was the culprit.", Low and behold I had accidentally put a Version="1" attribute in my XML of my field.  I was copying/pasting one field over and over again when I was creating the Content Type and never thought anything of the version attribute when I was updating the pasted code (A new field should start at "1" right?).  When I went back to the original article that I was following he also did not specify a version for his Taxonomy fields.  I guess that was not an omission on the author’s part, he actually meant to not have a version on the field.
 
Morale of the story? Do Not Specify Versions on Fields of Type TaxonomyFieldType, unless of course you enjoy chasing your tail.  Hopefully this will save someone some headaches.
 
Below are the links to the two blog posts, both of them are really good and worth a look if you are in need of a taxonomy reference source.
Posted in SharePoint | Leave a comment

Managed Metadata Service – Import Error: “Not all terms were imported successfully. please see the server log for more information”

 I was populating a new term store with a multitude of new term sets that needed to be transferred across a few different environments so I decided to create some Import Files for consistency and to save some time. 

First thought was to go to my favorite search engine to find the easiest way to do this. I found a handy Macro Enabled Template created by Wictor Wilén.  An Excel Template opens, follow the format, click “Create Term Store File” and woolah an import file is created. Next, navigate to Central Admin and to the Managed Metadata Service, right click the Term Store that I’m importing to and select “Import Term Set.”  I browse to my newly created file, click Upload and receive “Not all terms were imported successfully. Please see the server log for more information.” 
 
After reviewing the ULS Logs I did not see which terms could possibly be causing the failure, so I decided to validate the format of my .csv file.  TechNet provides an example file format that appeared exactly like mine, except I wasn’t using multiple levels.  TechNet also suggested the sample import file available in Central Admin. Open the Managed Metadata Service, in the left navigation select “Managed Metadata Service” then under Sample Import there is a link to an example. This example has a Level 1 Term populated on the same row that the Term Set Name and the Term Set Description are defined.
I updated my import file to match this format and the error was gone! The examples below will result in the same hierarchy with all terms created as expected, but the incorrect format example will throw an error. 
 
Food (Term Store)
     Fruit (Term Set)
          Apples
          Oranges
          Bananas
 
Incorrect Format
"Term Set Name","Term Set Description","LCID","Available for Tagging","Term Description","Level 1 Term","Level 2 Term","Level 3 Term","Level 4 Term","Level 5 Term","Level 6 Term","Level 7 Term"
"Fruit","Various fruits",,TRUE,,,,,,,,
,,,TRUE,”Delicious and crispy”,"Apples",,,,,,
,,,TRUE,”Fresh and juicy”,"Oranges",,,,,,
,,,TRUE,”Full of flavor”,"Bananas",,,,,,
 
Correct Format
"Term Set Name","Term Set Description","LCID","Available for Tagging","Term Description","Level 1 Term","Level 2 Term","Level 3 Term","Level 4 Term","Level 5 Term","Level 6 Term","Level 7 Term"
"Fruit","Various fruits",,TRUE,”Delicious and crispy”,”Apples”,,,,,,
,,,TRUE,”Fresh and juicy”,"Oranges",,,,,,
,,,TRUE,”Full of flavor”,"Bananas",,,,,,
 

 

Posted in SharePoint | 1 Comment

Using Fiddler to Streamline SharePoint CSS Design

Situation

 
You are designing a custom SharePoint 2010 master page that is heavily styled via CSS.  You are currently using browser tools such as IE Dev Tools, Firebug, etc but that’s not always good enough.  For some more complex changes you may want to use an external editor to make the changes (Like Visual Studio), you may also want to test your changes simultaneously across multiple browsers to ensure your styling is cross-browser compliant.  Fiddler can help you overcome this and simplify your development efforts without the need to be constantly deploying code to a server.
 

Setup

  1. Open up Fddler
  2. Browse to a webpage containing the CSS file that you want to replace
  3. In the Web Sessions pane find & select the CSS file
  4. On the right choose the AutoResponder tab
  5. Ensure the following checkboxes are checked
    • Enable automatic responses
    • Unmatched requests passthrough
  6. Click Add
  7. Enter the location of the local CSS file and click Save
  8. Enable the new AutoResponder
 Fiddler.png
Example Screenshot
 

Use

 
When the passthrough is checked anytime the browser requests that file it is replaced with your local copy instead.  Uncheck it to get the server copy again. That’s It!  (just be sure to uncheck it when you’re done otherwise you may forget and expect to see the server version of a resource and get your local copy instead)
 

Explanation

 
Now lets break down what is going on.  First of all we launch Fiddler and browse to a web page, Fiddler acts as a web proxy intercepting every HTTP request that the browser initiates.  On the left side of Fiddler is the pane with every HTTP request the browser has made since it was started.  If you go to popular search sites like Google, Bing, Yahoo, etc. with fiddler running you’ll see all sorts of traffic pointing to FaceBook, Twitter, LinkedIn, etc.
In my example we want to replace the "Master.css" file that is being used on my site so I select it on the left side (this saves me from needing to type out the URL of the file).  Now on the right side choose the AutoResponders tab, there are two checkboxes that need to be checked:
Enable automatic responses – this basically enables the AutoResponder functionality.  If you have a bunch of AutoResponders defined you can check/uncheck this to easily turn everything on/off with one click.
Unmatched requests passthrough – this is not required strictly speaking but if you don’t check this you may get some errors on other websites. 
Next you click the [Add] button, this will add the AutoResponder to the list on the right side.  With the new AutoResonder selected go to the field on the bottom of the window and click the down arrow of the bottom-most field, choose "Find a file…", and browse to the local copy of your Master.css file. 
Everything is setup now so simply check the AutoResponder to enable it.  Now when you refresh your browser the session will use the local copy of the CSS file instead of the remote server version.  Now you can use your favorite editor to edit the file, open up multiple browsers (IE and Firefox for example) and see test your changes everywhere at once.
This is obviously overkill for simple "change that font" modifications but when you’re going to be spending days doing a variety of style changes you can see that this is a great way to avoid redeploying style sheets to the server constantly.  Saving you time, keeping costs down, and ultimately making your managers and/or clients happier with more efficient results.
 

Credits

  • Melissa McElroy’s - Colleague who introduced me to Fiddler and how to use it to speed up my CSS development.  Melissa, I owe you one!
  • Developer of Fiddler – Someone had to design and write this great tool
Posted in SharePoint | Leave a comment

PowerView Overview

This a good overview of PowerView from TechNet.

Power View, a feature of Microsoft SQL Server 2012 Release Candidate 0 (RC 0) Reporting Services Add-in for Microsoft SharePoint Server 2010 Enterprise Edition, is an interactive data exploration, visualization, and presentation experience. It provides intuitive ad-hoc reporting for business users such as data analysts, business decision makers, and information workers. They can easily create and interact with views of data from tabular models based on PowerPivot workbooks published in a PowerPivot Gallery, or tabular models deployed to SQL Server 2012 Analysis Services (SSAS) Release Candidate 0 (RC 0) instances. Power View is a browser-based Silverlight application launched from SharePoint Server 2010 that enables users to present and share insights with others in their organization through interactive presentations.​

Power View report with multiple views featuring tiles, slicers, a chart filter, and a number of visualizations, including cards, small multiples, and a bubble chart.

Report in design mode

 

For more Power View resources, see the Power View Overview page on the Microsoft TechNet wiki.
 
For more details, go to…
 

 

Posted in Business Intelligence | Leave a comment

BizTalk Leap Year Bug – EDI

Recently at one of
our client as a part of EDI Implementation and Migration effort, while doing
integration testing with trading partner, we started receiving "Invalid
Date" Error.
   Typically we would
receive Invalid Date Error/Warning
  at
the time when EDI Transaction is validated in EDI Pipeline/Component by EDI
Engine, either at the time of receiving incoming EDI interchange or sending
outgoing interchange.
   Generally to fix
the issue you would make sure to confirm that right date value in data element
is specified(
http://msdn.microsoft.com/en-us/library/bb967942(v=bts.10).aspx
),
  well in our case the date value was
correct – 20120229.

 

Below is the error
we received.

 

ediError.jpg

 

02/29/2012 is a
leap  year date and it is a valid
date.   Upon looking into microsoft KB,
we found an hotfix ( http://support.microsoft.com/kb/2435900
) that resolves the issue.    At this
point, based on our testing, this issues seems to be only for EDI Documents.

 

For BizTalk 2009, it
is included as a part of cumulative update package 1 ( http://support.microsoft.com/kb/2429050  ).  
BizTalk 2006 R2 has a supported hotfix available that is available for
download from microsoft on request.    We
have validated that it is not an issue with BizTalk 2010.

Posted in Integration | Leave a comment

ASP.NET vNext Awesome sauce

If you have interest in gaining understanding some of the advancements coming in the next version of ASP.NET releasing this year take a look at this awesome post.

http://www.hanselman.com/blog/OneASPNETSneakPeekElegantWebFormsAndSnowballsInHell.aspx

ASP.NET Web Forms developers will find this very interesting that some of the goodness of ASP.NET MVC is moving into ASP.NET Web Forms.  Model Binding, Clean HTML, Routing and more. 

Take a look…Expect to see more about Visual Studio vNext when the Windows 8 Consumer Preview is released in late February.

 

Posted in .NET Development | Leave a comment

Thoughts on Windows 8 User Experience

I carry with me one of the developer preview tablets that Microsoft gave away to attendees of the Microsoft BUILD conference last September.  This often leads into conversations/arguments about Windows 8 versus iPad or Android and of course iPad versus Android. You know the drill.

Well this also leads to the question of “What will make Windows 8 different/better than the other platforms?”   For software developers the #1 answer will be that the software development experience already is vastly superior.  Windows 8 leverages all the .NET/HTML/JavaScript and XAML knowledge that has been built up over the last dozen years.  Couple that with how awesome a tool Visual Studio is and you have a recipe for ease of development.  iOS (iPad, iPhone, iPod) development is like writing on stone tablets and Android development although better tools has the added irritation that Android isn’t one OS it is many and many form factors that increase the complexity and testing effort.

Still that isn’t what I really believe will be the factor that will set Windows 8 apart. Full disclosure I have been using a Windows Phone since the initial release in 2010.  Simply put I haven’t found a more intuitive and nicely integrated phone experience ever.  What I believe is that the integrated glance able User Experience introduced with Windows Phone will be even more important in the Tablet space.  Microsoft calls the User Experience Metro and Metro is extending across most of Microsoft’s products. Today Metro UX is released on Windows Phone and Xbox 360.  Although Windows Phone has yet to take off as a mass market device, reviews and critics rave about how wonderful it is to use Windows Phone and really it gets down to consumers simply giving Windows Phone a look.  Similar commentary has been made about the new Metro UX that was released on the Xbox 360 this past December.

A quick summary of the difference between how iOS devices and the Metro UX differ.  The primary difference comes down to the start screen or desktop, what you call it is up to you.  With iOS devices the screen is laid out as a grid of icons representing the various Apps you have downloaded from the AppStore. You may have grouped them together into logic categories, but in essence the desktop is simply a tool to choose the App you want to use. Sure there are a few apps like the Email client that give you a visual indicator that you have something to take a look at.  Yet for the most part they are simply just icons.

This is where Metro on Windows Phone, Xbox 360 and soon Windows 8 really differ.  The desktop isn’t made up of icons that represent the App that you may want to run they are themselves little mini-apps.  Microsoft calls these Live Tiles.  The idea is that with many Apps you shouldn’t need to open them to find out if there is something for you to be aware of.  When I look at the Live Tile for my calendar app I see that the next thing on my calendar is dinner with friends at 7PM at whatever restaurant.  I see that the flight that I have scheduled for tomorrow morning is currently on time. I see that that on the Live Tile that represents my wife that she has left me a voice mail, sent me a text, and posted something on Facebook.  I know all these sorts of things without starting one single app.  Let alone many that may be needed to see what my Wife is up to for instance.  The tiles don’t need to be just our everyday life activities either and that is where I believe Windows 8 will be truly different.

I am in the business of building mostly business applications for medium and large companies.  These companies are starting to adopt Tablets for the enterprise.  They are adopting them mostly for information consumption.  With Windows 8 I see the executives and information workers loving the new Metro experience due to the fact that important information will be brought to them rather than they having to go get it.  This starts from the lock screen.  Apps can be chosen to show basic information on the lock screen so that when you first start the device the lock screen is already telling you something important.  Yet after that once the device is unlocked and the desktop is showing Live Tiles begin to show you information that may be important to you. The tiles on the desktop and the location where on the desktop are configured by you.  If you are in the accounting department maybe you are interested in the status of closing the books for the month. If you are in the sales department maybe you are interested in recently closed business. If you are in production you may be interested in the production output of various products. If you are in the marketing department you may be interested in how recent marketing and advertising initiatives are being perceived by consumers.  It is easy for Windows 8 Live Tiles to give you information at a glance without you needing to go into an App, or to check email, or to check a website for your information.  The Live Tiles can give you a heads up on something you need to investigate further and give you a real reason to open the App or to just leave it alone.   This experience is unique to Windows 8 and in fact won’t be limited just to Tablet devices. This experience is what I feel is going to truly be what sets Windows 8 apart.

Posted in .NET Development | Leave a comment

Logging Framework

As a part of any
complex BizTalk solution one of the key component required is Logging or
tracing.
  It helps in troubleshooting at
runtime as well as for understanding the application behavior.
  In the past depending on the requirement, I
have been involved in using log4net, Enterprise Library and as simple as
System.Diagnostics with Debugview.

 

Microsoft customer
advisory team has created an instrumentation framework based on Event Tracing
for Windows ( ETW ) that is highly performant and has the ability to trace/log
information for all BizTalk artifacts including BRE, Maps

 

Using the framework
is pretty straightforward and setting it up is fairly simple too.   Refer to http://blogs.msdn.com/b/appfabriccat/archive/2010/05/11/best-practices-for-instrumenting-high-performance-biztalk-solutions.aspx  for detail information on enabling highly
performance instrumentation logging framework for BizTalk Solution.

 

The tracing in the
framework can be enabled/disabled via a command line scripts that are
provided.  Alternatively there is a
BizTalk CAT Instrumentation Framework Controller application created for an
easy start/stop of tracing as well as an ability to view in real-time in
debugview.   

 

Utility is available
@http://btscatifcontroller.codeplex.com/

 

There is a nice
detail post by Valery on the usage of the utility @ http://blogs.msdn.com/b/appfabriccat/archive/2010/08/30/biztalk-application-tracing-made-easy-with-biztalk-cat-instrumentation-framework-controller.aspx​

Posted in Integration | Leave a comment

SQL Server – Hadoop Integration

Posted in Integration | Leave a comment

Leveraging Master Data Services in Your BI Solution

Posted in Integration | Leave a comment
 
View By Author
  • View By Category
View By Date
Part Of SPR COMPANIES
© 2012 SPR Companies. All rights reserved. About | Competencies | Products | Solutions | Clients | Events & Resources | Careers | Site Map | Legal/Privacy