.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

workflow starts before files are saved?

Posted By:      Posted Date: September 22, 2010    Points: 0   Category :SharePoint

I have a sharepoint designer workflow associated with a document lib. The workflow is triggered when a new item is created or modified. The workflow will update attributes of the item.

The problem comes that for small files, the workflow works. For bigger file (even 0.5 mb), either the workflow failed to update the item or the file was saved as 0 byte.

Any recommendations?

View Complete Post

More Related Resource Links

Custom Workflow Error: The Workflow files were saved but cannot be run


Hi all,

I'm wondering if someone would have any suggestions on how I can troubleshoot this custom workflow issue.

Recently we can't attach any SharePoint Designer workflow to any list in a farm. We get this error message:

"Errors were found when compiling the workflow. The workflow files were saved but cannot be run. Unexpected error on server associating the workflow"

The standard workflows from UI seems to be working fine. Also user defined workflow is enabled. In the past I was able to fix similar issue with another farm following this post (remvoing SP designer custom workflow activities entries)- but does not look like this is the case this time.

Nothing in the logs regarding this error. Any suggestions would be greatly appreciated.

Many thanks!


Hosted Designer fails to load workflow xaml that has InArguments with default values (xaml saved by

I have hosted the designer in our app. Using the hosted designer, workflows are saved as xaml to a database. When an end user wishes to edit a workflow the xaml is downloaded to a file and loaded into the designer via the .xaml file. The user can also associate assemblies with the workflow and there is a mechanism which makes sure that these assemblies are loaded into the appdomain and available. The problem we are hitting occurs when the top level activity (Sequence) has InArgument with default value. I create a simple Sequence, add InArguments (type of Int32 and String)  and set some default values. I save the workflow xaml to the database and close down the designer. When I wish to edit the workflow and try to load I get the following errors Could not find member '{clr-namespace:}_e905.argument3'. Could not find member '{clr-namespace:}_e905.argument1'. suggesting that some assembly/namespace missing. Here is the xaml I try to load: <Activity mc:Ignorable="sap" x:Class="{x:Null}" this:_e905.argument3="99" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:s="clr-namespace:System;assembly=mscorl

How to Run a Routine When the Workflow Starts up

I have developed a workflow that is working just fine.  I am attempting to modify it so that variables are reinitialized with none-default values when the workflow is being loaded.  I created a new routine that I want to run when the workflow starts up.  This routine does the reinitializing of variables based on condidtions.  My initial intention was to place the routine within the same routine that calls InitializeComponents() (see code fragment below).  But this produces a build error.  Looks like InitializeComponents() is the only routine allowed in this procedure.  Where can I place mystartuproutine() so that it is executed when the workflow starts? Thanks for your feedback. using statement1; using statement2; using statement3; namespace MyNameSpace { public sealed partial class MyWorkflow : StateMachineWorkflowActivity { public MyWorkflow () { InitializeComponent(); mystartuproutine(); //placement here causes build error. Removal causes successful build. } routine1 { //code here } routine2 { //code here } mystartuproutine { //code here } } }

Delete Old Backup Files that are saved in .RAR format



I have configured my SQL Server 2005 to take backups and I have another program running to compress these files to .RAR extension to save space.

I have a Maintenance Cleanup Task also configured to delete old .RAR files but it does not work.  I have specified the extension to look for to be RAR and the job runs without error but no files are deleted.

Is it that only BAK and TRN files are deleted using Maintenance Cleanup Task?

Custom Workflow starts 2 times


I created simple workflow with Sharepoint Designer 2010 for a custom list.

Workflow sends email notification to user, who created current item. I set it to start workflow automatically when item is created.

The problem is that this wf starts 2 times and sends 2 emails. Where could be the problem?

Hard drive crashed - no backup - Files saved, cannot attach sql db



the people called me in their firm because server Won't boot-up (SQL 2000).

I checked it and it was hard drive failure. Manage to get DB data from HD, i wanted to put it on SQL 2005 on new machine.

I successfully attached 5 databases, they are working now, but have problem with 6th. When i trying to attach it get the error;

Server Name: PROMET
Error Number: 9004
Severity: 21
State: 1
Line Number: 1

.mdf file has 1.3 gigs and .ldf 6.1 gig

I searching trough the forums all day, and i cannot find working answer...

Please help me, i can provide additional information if needed.

Workflow that starts at certain hour - how to set trigger?


There is some list with DateTime column. Then I have "Expiration" column, which would be calculated and shows 'Yes', when it's in 30days period till today (eg. today is 17112010, when dateTime is 16102010, than Expiration shows 'No', when dateTime is 10112010 then Expiration shows 'Yes'). I can manange to create such column.

The problem is with Workflow. I'd like to create such one, that would starts everyday eg. at 03:00AM and check the column Expiration - if there is 'Yes', then it does something, it's not important. The thing is, how to make it run everyday? In MS Designer there are only three triggers: when edit, when create and manually.

Is it possible to prevent a user from seeing the tasks generated by the workflow he starts?


Hi All,

When a user starts a workflow, there will be tasks generated in a task list. Is it possible to prevent this user from visiting the task list? I remove the user's permission from that task list and the user can not see the it at first. But when he starts the workflow, the task list becomes availble to the user.

I checked the permission setting of that task list and found a note saying "Some items of this list may have unique permissions which are not controlled from this page". That's why these tasks become available to the user.

The reason for what I'm trying to do is that I don't want the users to know what's going on in detail. The workflow will send the user a email when there is any outcome.

Is it possible to do that? Thanks!


Collaboration on Word 2010 files that are saved in a Sharepoint 2010 Shared Document Library.


We have installed Sharepoint 2010 and Office Web Apps on a 64-bit Windows 2008 server. Excel 2010 files can be collaborated among different users (i.e. user status bar is showing the number of users accessing the Excel file) when the file is edited using Edit in Browser option. However, we cannot get Word/PowerPoint 2010 files to collaborate in the same manner (i.e. no user status bar).

Does the collaboration feature work for Word/Powerpoint 2010 using Office Web Apps or it is available for Excel/OneNote 2010 only?

If collaboration is also available for Word/PowerPoint 2010 using Office Web Apps, any ideas why Excel 2010 works for us and not Word/PowerPoint?

Thank you in advance for your help and clarification.


Clean Web.Config Files (VS 2010 and .NET 4.0 Series)

.NET 4 includes a new version of the CLR, and a new .NET 4 specific machine.config file (which is installed side-by-side with the one used by .NET 2, .NET 3 and .NET 3.5).

The new .NET 4 machine.config file now automatically registers all of the ASP.NET tag sections, handlers and modules that we've added over the years, including the functionality for:

.ASP.NET Dynamic Data
.ASP.NET Routing (which can now be used for both ASP.NET WebForms and ASP.NET MVC)
.ASP.NET Chart Control (which now ships built-into ASP.NET V4)
What this means is that when you create a new "Empty ASP.NET application" project in VS 2010, you'll find that the new default application-level web.config file is now clean and simple:

Free Series of SharePoint Workflow How-to Videos

This is the series of "How to" Document Workflow with SharePoint using Visual Studio 2008 (using the .NET Framework 3.0 for backward compatibility to Visual Studio 2005). I have created video's that show the most common requests that I have seen around MOSS/SharePoint 2007 workflow & document workflow.

SharePoint document migration challenges when migrating files and folders

There are several challenges when migrating documents to Microsoft SharePoint. While these challenges can be overcome, they are a real pain if the migration source, content and file systems are not SharePoint friendly.

Combine, minify and compress JavaScript files to load ASP.NET pages faster

Websites are getting more interactive these days and most of this interactivity comes from JavaScript. People are using different JavaScript libraries and frameworks to make their websites more interactive and user friendly.

PrintPocketCE Print Pocket Excel, Pocket Word and email files

Version 3.560 (May 15, 2009):

Important bug fix: a slight difference in how some devices create fonts was causing a few devices to have significantly longer print times for large print jobs.

Adjusted PocketJet printer paper feed commands

Other minor fixes and enhancements.

Version 3.559 (Mar 5, 2009):

Added support for Martel MCP78xx printers

Version 3.558 (Aug 20, 2008):

Added support for Martel MCP78xx printers

Version 3.557 (June 27, 2008):

Fixed error in Canon printer support

Fixed COM0 port selection

Version 3.556 (June 15, 2008):

Added support for Brother MW-260

Added support for Sato MB400

Version 3.555 (Aug 8, 2007):

Added support for Pentax RuggedJet 3 and RuggedJet 4 printers

Changed Epson TM-P60 support to maximum page width of 1200 dots

Version 3.551 (Aug 1, 2006):

Added Peripheral Nomad printer support

Version 3.550 (Mar 23, 2006):

Added Panasonic JT-H200PR printer support

Added Pocket Spectrum printer support

Fixed problem with WM5.0 "inverted image" problem

Conversion of text files from ANSI to UTF-8

reading and writing text files in ANSI format and
writing html-files in Charset ISO-8859-1 (Western Europe).

How to transfer files between computer and mobile device using bluetooth

What is Bluetooth? How can I have it on my computer?

Bluetooth wireless technology is a communication technology that allows two devices to communicate wirelessly. Most of the notebooks are nowadays equipped with bluetooth. For those notebooks or computers that don't, you can use a bluetooth dongle to add the functionality and it just costs you around $5. Although higher price range bluetooth dongles are available but it makes no sense of buying them if you just plan to connect your mobile device to the computer. Look for one that has Bluetooth v2.0 + EDR (Enhance Data Rate) supporting speeds of upto 3Mbps and with Vista support. You can easily have one of that kind in just $5.

Setting up bluetooth to work on your computer

Just Insert the bluetooth dongle in the USB.
It should get detected by your Operating System and should be ready to use. In case it is just detected as a new hardware, you need to install drivers for it that came with your bluetooth dongle (You can try Google to find the drivers).
Once drivers are installed, a bluetooth notification icon will appear in your system tray.
Right Click on it to access Settings (This may vary with your bluetooth dongle).
Make sure you have turned Discovery On (It allow others to see your computer).
Switch On the bluetooth on the mobile device.

dynamically adding sql server columns based on number of files in fileuploader


I want to create a new table to sql database at runtime.  The column names would be "Name", "Date", "Event".  I would also like to have one more column name "Image" but the problem is that since the amount of images will vary, I want the application to count the amount of files in the Multiple fileuploader and then add a image column to the table for the respected amount of files. 

For example if i am uploading 3 files in the multiple fileuploader, the names should be "Name", "Date", "Event", "Image1", "image2", Image3"

I also would like that table name to be name dynamically from the textbox Name when the user enters the information.


I have the following code to make a new table, but I dont know how to name the fields at runtime like previously asked please help!!!


Dim objConn As New SqlConnection("Server=<servername>;uid=<userid>;pwd=<password>;database=master")


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend