We have begun to use SSRS in our environment. I am huge fan of what it can do, even though I don't know that much about it. One thing that it did allow our users to do is to download raw data. This is great, because now they have access to it. However, an issue recently arose when a user wanted to share that data on SharePoint with Forefront installed.
Recently, a user exported raw data from the SSRS into an Excel 2007 spreadsheet. He wanted to share that data with his team, so tried to upload it to a SharePoint library. It failed with the following error: Virus Name - "Large Uncompressed Size".
The file was not too large - only 33 MG. (Ok, that does sound large. But our upload limit is 150 MG, so it should not have had a problem.) During troubleshooting, I converted the file to a 2003 Excel file and it inflated the size to 88 MG, but it uploaded fine. It also uploaded fine in comma delimited text format. Additionally, I cut out half the data (down to 22,000 rows) and it uploaded okay. Just for fun, I created another worksheet in the same workbook and pasted the 23,000 rows I had cut from the first worksheet. It also uploaded just fine. Therefore, the problem was not the data and of course there was no actual virus.
Although we did not realize it until we had spent days testing, part of the issue actually had to do with the amount of rows and columns that the spreadsheet contained in a single worksheet - 45,000 rows and 250+ columns. The other part had do do with the XML structure of Excel 2007 documents. Forefront was actually timing out when it tried to read all of that XML data in one chunk. This is why dividing it up the data into smaller chunks allowed the document to upload successfully.
When we contacted Microsoft for problem resolution, they suggested that we turn off scanning for all Excel files. We informed them (very nicely) that this was against our security protocol. After a few days, they came back with a fix that involved adding two registry keys specific to Excel files that would increase the timeout limit on scanned Excel documents.
I have good and bad news. The good news is that this worked. The bad news is that due to Microsoft legalities with my company, I was not allowed to publish the registry keys that needed to be added. Apparently, this is "super confidential" and my network administrator did not feel comfortable letting me in on the secret. That said, I wanted to post this anyway in order to give anyone out there the comfort that there is actually a fix for this annoying problem.
By the way, there are a few Microsoft KB Articles out there that reference altering registry keys for a similar issues. Keep in mind these do not work for this particular Excel issue, but it is worth noting here:
http://support.microsoft.com/kb/972074 -Refers to the errors you recieve when you upload a document that contains smaller files that exceed the Forefront upload limit. It also mentions how to skip the scanning of these documents.
http://support.microsoft.com/kb/972072/ - Walks you through the process of eliminating large uncompressed files from the ForeFront scan.
Tuesday, June 8, 2010
Monday, June 7, 2010
Replacing the Default Permissions Email Text
For the longest time, our users had expressed their annoyance with the out of the box email template that is received when permission to a site is granted. Typically, the text give you a welcome message and then proceeds to detail out "What is a SharePoint site?" If your users are like ours and already are well-acquainted with what a SharePoint site is, it might be time to change that message.
Although it is recommended not to change any default files, doing this is reletively harmless if, of course, it is tested thoroughly and done with caution. The file itself is an XML and is located in the 12 Hive (c:\Program Files\Common Files\Microsoft Shared\web server extensions\12) in the Resouces folder. The file is called core.en-us.resx.
To edit this file, you will need to open it up in Notepad and press CTL + F to search for the text "What is a SharePoint Site?" Once you find it, you will want to replace everything from "What is a SharePoint site?" to "...members of the site can contribute their own ideas and content as well as comment on or contribute to other people's." with the XML character for a non-breaking space (@#160). This will keep all of the tags in place and you will recieve emails without any text below the name of the site and the type of permission you were given.
Additionally, you will need to revise your documentation for installing service packs to include backing up this file before the Service Pack install and reapplying it afterwards, since it will most likely be overwritten when Service Packs are installed. However, when I recently installed the February Cumulative Update in my 2007 environment, and it did not affect this file.
Although it is recommended not to change any default files, doing this is reletively harmless if, of course, it is tested thoroughly and done with caution. The file itself is an XML and is located in the 12 Hive (c:\Program Files\Common Files\Microsoft Shared\web server extensions\12) in the Resouces folder. The file is called core.en-us.resx.
To edit this file, you will need to open it up in Notepad and press CTL + F to search for the text "What is a SharePoint Site?" Once you find it, you will want to replace everything from "What is a SharePoint site?" to "...members of the site can contribute their own ideas and content as well as comment on or contribute to other people's." with the XML character for a non-breaking space (@#160). This will keep all of the tags in place and you will recieve emails without any text below the name of the site and the type of permission you were given.
Additionally, you will need to revise your documentation for installing service packs to include backing up this file before the Service Pack install and reapplying it afterwards, since it will most likely be overwritten when Service Packs are installed. However, when I recently installed the February Cumulative Update in my 2007 environment, and it did not affect this file.
Tuesday, April 27, 2010
It’s called “All Items” for a reason!
One of the users where I work called in a panic. She had just finished creating an important document and saved it to SharePoint but she could not find it in the library. Before she called me, she checked all the views to make sure it wasn’t there, checked her local drafts folder to make sure it wasn’t checked out and it wasn’t anywhere she looked.
For troubleshooting, I looked in the checked out files to make sure that there was no required field that was empty and preventing the document from showing up. I checked her permissions, and checked that she had, at one time, been able to upload and modify documents in this library. Nothing.
It was indeed perplexing.
Now, I know that all the SharePoint opposers are probably out there, saying, “See? You can’t trust SharePoint with your documents! This never would have happened with a network drive!” She was certainly one of them. She could not believe that SharePoint had “betrayed” her and vowed to save everything to her hard drive before uploading it. Well, she was right about one thing - it never would have happened on a network drive. The reason is that network drives do not allow us to sort and filter views of our documents by metadata.
The issue in this case, was that someone made a change to the AllItems.aspx view that suppressed documents with a particular set of metadata. Because our user did not set the filter rules on the view, she was unaware of this. Instead, she saved her document to the library, applied the metadata tags, and blamed SharePoint for losing her document.
The moral of the story? Just because you can, doesn’t mean you should. SharePoint gives us a lot of opportunity to help make our work lives easier, but it also provides ample means of hosing us, too. Make sure when you are creating or modifying views, leave the AllItems.aspx view as it stands so you always have a view of library that displays all the documents.
For troubleshooting, I looked in the checked out files to make sure that there was no required field that was empty and preventing the document from showing up. I checked her permissions, and checked that she had, at one time, been able to upload and modify documents in this library. Nothing.
It was indeed perplexing.
Now, I know that all the SharePoint opposers are probably out there, saying, “See? You can’t trust SharePoint with your documents! This never would have happened with a network drive!” She was certainly one of them. She could not believe that SharePoint had “betrayed” her and vowed to save everything to her hard drive before uploading it. Well, she was right about one thing - it never would have happened on a network drive. The reason is that network drives do not allow us to sort and filter views of our documents by metadata.
The issue in this case, was that someone made a change to the AllItems.aspx view that suppressed documents with a particular set of metadata. Because our user did not set the filter rules on the view, she was unaware of this. Instead, she saved her document to the library, applied the metadata tags, and blamed SharePoint for losing her document.
The moral of the story? Just because you can, doesn’t mean you should. SharePoint gives us a lot of opportunity to help make our work lives easier, but it also provides ample means of hosing us, too. Make sure when you are creating or modifying views, leave the AllItems.aspx view as it stands so you always have a view of library that displays all the documents.
Thursday, February 4, 2010
Show Incoming Links on a Wiki Page
I got this great script for showing incoming links on a wiki page in SharePoint from a post at http://mo.notono.us.com/. (Here is the full link to the original post http://mo.notono.us/2009/01/moss-add-incoming-links-to-wiki-page.html.)
To place it on the page, edit your wiki page and drop in a Content Editor Web Part. Then open the source editor for the web part and drop this code in. Works like a charm!
As Oskar mentions in his post, you can also add it to the master page for your wikis. There are reasons not to, of course. But it may be a great solution depending on your circumstances.
Thanks Oskar for this great tool!
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
//get the url for the incoming links page
u = $("a[id$=WikiIncomingLinks_LinkText]")[0].href;
//create a target container and load it with the incoming links
//filtered to show the links list only
l = $("<div id='incomingLinks' style='border-top: solid 1px silver'>").load(u + " .ms-formareaframe");
//append the new container to the wiki content
$(".ms-wikicontent").append(l);
});
</script>
To place it on the page, edit your wiki page and drop in a Content Editor Web Part. Then open the source editor for the web part and drop this code in. Works like a charm!
As Oskar mentions in his post, you can also add it to the master page for your wikis. There are reasons not to, of course. But it may be a great solution depending on your circumstances.
Thanks Oskar for this great tool!
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
//get the url for the incoming links page
u = $("a[id$=WikiIncomingLinks_LinkText]")[0].href;
//create a target container and load it with the incoming links
//filtered to show the links list only
l = $("<div id='incomingLinks' style='border-top: solid 1px silver'>").load(u + " .ms-formareaframe");
//append the new container to the wiki content
$(".ms-wikicontent").append(l);
});
</script>
Monday, February 1, 2010
Hide the Left Navigation Pane using a CEWP!
Is that left-navigation pane an annoyance? Hide it using a Content Editor Web part!
Place a content editor web part on your page and click the drop-down to edit it. Click Source Editor and enter the following code:
<style>.ms-navframe{ display:none; }</style>
Make your Content Editor Web Part hidden and click OK.
Your page should now have the left-navigation pane hidden!
Place a content editor web part on your page and click the drop-down to edit it. Click Source Editor and enter the following code:
<style>.ms-navframe{ display:none; }</style>
Make your Content Editor Web Part hidden and click OK.
Your page should now have the left-navigation pane hidden!
Friday, January 22, 2010
Clearing an Option Button in InfoPath
While this is basically a SharePoint blog, I use InfoPath a lot paired with SharePoint. They are pretty amazing together. An InfoPath form template saved to a SharePoint document library can store important data that can be displayed in a report-like fashion, manipulated into views, used to fire workflows, and much more. Additionally, the fact that Microsoft made the licensing all-encompassing for the Office Suite and gave InfoPath browser compatibility ensures that it will be an integral part of the workplace for decades to come. It is a great tool for gathering information from your organization.
However, although InfoPath is a great program, it is not intuitive. In fact, sometimes it is downright annoying. (Although I am sure the same can be said for SharePoint at times, right?)
I was working with a existing form that I needed to modify and I wanted to add some conditional formatting to make certain sections display when the option button selected was "Yes" and to disappear from view when the option button selected was "No." The challenge I ran into was that I could make the section disappear when "No" was selected, but if the user had inadvertently clicked on an option button in the section being hidden, that field stayed populated, hidden or not. Because this information was being sent to a database in addition to being published on SharePoint, I needed to clear the option buttons on the sections being hidden.
Here is the scenario:
OptionButton1 - Yes = True, No = False, No value is set as a default selection
OptionButton2 - Yes = True, No = False, No value is set as a default selection
However, OptionButton2 should be NULL if OptionButton1 is set to False (No)
So I created a rule to change the value of OptionButton2 based on a False value for OptionButton1.
OptionButton Properties --> Rules --> Add
Condition - OptionButton1 = False
Action - Set a Field's value
Here is where I hit the snag. The value choices for OptionButton2 only had the following: (blank), TRUE, FALSE, 1 or 0. Choosing (blank) did not work and I didn't want the other options, since I wanted no value whatsoever.
It was a puzzle. The fix? Leaving the "Value" field completely blank. Obvious, you say? Well, it wasn't to me. But it worked like a charm!
However, although InfoPath is a great program, it is not intuitive. In fact, sometimes it is downright annoying. (Although I am sure the same can be said for SharePoint at times, right?)
I was working with a existing form that I needed to modify and I wanted to add some conditional formatting to make certain sections display when the option button selected was "Yes" and to disappear from view when the option button selected was "No." The challenge I ran into was that I could make the section disappear when "No" was selected, but if the user had inadvertently clicked on an option button in the section being hidden, that field stayed populated, hidden or not. Because this information was being sent to a database in addition to being published on SharePoint, I needed to clear the option buttons on the sections being hidden.
Here is the scenario:
OptionButton1 - Yes = True, No = False, No value is set as a default selection
OptionButton2 - Yes = True, No = False, No value is set as a default selection
However, OptionButton2 should be NULL if OptionButton1 is set to False (No)
So I created a rule to change the value of OptionButton2 based on a False value for OptionButton1.
OptionButton Properties --> Rules --> Add
Condition - OptionButton1 = False
Action - Set a Field's value
Field - OptionButton2
Value - ?????Here is where I hit the snag. The value choices for OptionButton2 only had the following: (blank), TRUE, FALSE, 1 or 0. Choosing (blank) did not work and I didn't want the other options, since I wanted no value whatsoever.
It was a puzzle. The fix? Leaving the "Value" field completely blank. Obvious, you say? Well, it wasn't to me. But it worked like a charm!
Thursday, January 21, 2010
Alerts for Email Accounts
Often you will want to have an alert for a distribution list or an email account that is not associated with any particular user. While this may seem straightforward, I ran into an issue with this when I tried this recently and it was due to some issues with how we handle the creation of distribution lists and open email accounts in our environment. Therefore, if you want this to work, you must make certain of the following:
- Ensure your email account is set to "Enabled" in AD. (In our AD, they are disabled by default)
- Once they are enabled, they will need to be granted access to the site and/or document libraries/lists where the alerts are being set.
Subscribe to:
Posts (Atom)

