February, 2009

now browsing by month

 

SharePoint Gotcha – It may have been deleted or renamed by another user

I recently had an error on one of our SharePoint sites that is the worst kind of error a programmer could face. It only happens sometimes.

It was a typical SharePoint 2007 code error, very vague. "It may have been deleted or renamed by another user." This error message is completely imposable because I wrote the code and it was not deleted or renamed.

I re-checked the code. Double checked the store procedures. I even commented out lines of the code to see where the error "It may have been deleted or renamed by another user" might be originating from. Not matter what I did, I still got the error.

What made the error even more strange was the page in question uses a query string. If the ID was 1 – 13. The page loaded without problem. 14 or more, I got the error message.

After a Google search I found out what my problem was. It wasn't me, it was them!

"People may experience a problem with Query string Field named as ID when the application is custom coded for share point site.

Problem arises when you use ID as query string parameter.Ex: http:xyz:1000/Pages/EditItem.aspx?ID=1."

Full article

Now come on Microsoft, really? I can't use ID in any custom Sharepoint code. That is a first.

Green Tip: Make Your Own Microwave Popcorn

I love my pop corn. I must have it while watching Lost or Hero's. But as I continue my journey towards greening up my lifestyle. I noticed a lot of waste when it came to eating my beloved TV watching snack.

There was the plastic wrapper that each pop corn bag came in. The bag itself is also an issue. You use it once, then throw it way.

I needed to find a better solution. With a quick Google search, I found it on one of my favorite sites TreeHugger.com. How to Make your Own Microwave Pop corn. Google is such a wonderful tool. What would we do without it.

The solutions is simple, all you need are the kernels and a paper bag. The paper bag is great because you can use it over and over again. As long as you don't put any oil in it.

The only issue we've had so far was keeping the bag closed while it is popping. Our solutions was to put a microwaveable coffee mug over the opening. It's worked OK but we are still looking for a better solution. A clip with metal is not a good idea in a microwave.

Give it a try. Not only will you help the environment buy cutting down on your waste. You will also be saving $$$. A lot if you eat pop corn like us.

Update – The cost

1 pound of pop corn from the local Organic market is $1.29

To get the equivalent amount using regular packaged microwave pop corn would be over $7.00.