Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all 11571 articles
Browse latest View live

Custom workflow status is still 'penidng' though it is approved

$
0
0

Hello All,

We have custom workflow. Once the document is getting approved 'Document Status' column will get update as 'Approved'.

But suddenly in our environment it is not working. After approving the document 'Document Status' column still showing as 'Pending'. Status columns is not getting updated.

I have collected the logs and i am not able to understand.

Can anybody please check the below log and help me to understand the below log. It is effecting to business

 Message: The file FolderSecured/8795/SPIL.pdf has been modified by SHAREPOINT\system on 24

Dec 2014 01:24:22 -0800. StackTrace:    at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)
   at Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate,

Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid

pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object&

pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter

pListDataValidationCallback, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback)
   at Microsoft.SharePoint.SPListItem.AddOrUpdateItem(Boolean bAdd, Boolean bSystem, Boolean bPreserveItemVersion, Boolean bNoVersion,

Boolean bMigration, Boolean bPublish, Boolean bCheckOut, Boolean bCheckin, Guid newGuidOnAdd, Int32& ulID, Object& objAttachmentNames,

Object& objAttachmentContents, Boolean suppressAfterEvents, String filename, Boolean bPreserveItemUIVersion)
   at Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion, Guid newGuidOnAdd, Boolean

bMigration, Boolean bPublish, Boolean bNoVersion, Boolean bCheckOut, Boolean bCheckin, Boolean suppressAfterEvents, String filename,

Boolean bPreserveItemUIVersion)
   at Microsoft.SharePoint.SPListItem.SystemUpdate(Boolean incrementListItemVersion)
   at KT.IDeal.Workflows.ApprovalTask.ApprovalTask.UpdateDocumentStatus_ExecuteCode(Object sender, EventArgs e

Thanks & Regards


MD.Liakath ali



MS Visio 2010 - read format VDW

$
0
0

Hello,

my SharePoint 2010 have a Process library wich contain Visio files with VDW format. When a VDW file is updated, I need to extract all Links.

On Visual Studio, I do a SandBox solution (we do not want a farm solution for some reasons). I program EnventReceivers to this.

My problem is how can I read the visio file ? how can I extract the package or the xml or do request to access at the xml files ?

have you any Idea??

Thanks for your help,

Publishing page issue

$
0
0

Hi,

I am having one SharePoint site which having 3 sub sites.

In every site i am having a page library and in the every page library have one landing.aspx page.

My issue is, in one site i modified the landing.aspx page and published it. 

Some times it is effecting perfectly on which site we modified.But some times it is effecting on all the remaining sites also where having the same landing.aspx page.

Can any one help me to find out and resolve this issue.

Authentication cookie sharing between Share Point 2010 and ASP.NET 4.

$
0
0

Hi,

Can anyone tell me how to share the authentication between share point 2010 site and asp.net 4 web site which are hosted in same server but different web sites.

I have tried with placing same machine key and FBA in share point but no luck.

Regards,

Hareen.

CAML OrderBy Not Working

$
0
0

I haev a CAML query that works great except the orderby statement isn't working. I think my syntax is correct and I'm going nuts trying to track down why it will not sort my query by Modified in fact when I comment out the orderby line there is no affect. See my code below and please help. /Mark

 this.TitleUrl = listNews.DefaultViewUrl;
                            var oQueryNews = new SPQuery();
                            var newsQuery = new System.Text.StringBuilder();

                            newsQuery.Append("<Where>");
                            newsQuery.Append("     <Or>");
                            newsQuery.Append("          <IsNull>");
                            newsQuery.Append("               <FieldRef Name=\"Expires\" />");
                            newsQuery.Append("          </IsNull>");
                            newsQuery.Append("          <Geq>");
                            newsQuery.Append("               <FieldRef Name=\"Expires\" />");
                            newsQuery.Append("               <Value Type=\"DateTime\">");
                            newsQuery.Append("                    <Today />");
                            newsQuery.Append("               </Value>");
                            newsQuery.Append("          </Geq>");
                            newsQuery.Append("     </Or>");
                            newsQuery.Append("</Where>");
                            newsQuery.Append("<OrderBy>");
                            newsQuery.Append("  <FieldRef Name=\"Modified\" Ascending=\"FALSE\" />");
                            newsQuery.Append("</OrderBy>");

                            oQueryNews.Query = newsQuery.ToString();


Mark Ferrero

Error occurred in deployment step 'Add Solution': The definition specifies a claim provider with a name already in use.

$
0
0

Hi,

When i am trying to deploy sharepoint 2010 application in VS 2010, i am getting the below error:

"Error occurred in deployment step 'Add Solution': The definition specifies a claim provider with a name already in use."

How to fix this?

Thank you

How to get file object using document id in client object model - I am using Sharepoint 2010

$
0
0

Hi,

Thanks for your time. 

I have the document url as say "http://dms.mycompany.com/cab/sc009/lib001/ID=6P53FSMMYHEE-2-661943, I know the entire link. 

I can parse it and get the document Id after the =. Now, how to get the document or file details from here. 

Please give me the piece of code in C#, if  or direct me to a proper link. 

It is urgent. 

Appreciate your help. 



Ramesh Natarajan




How to make sharepoint site work properly with Google chrome and newer IE versions

$
0
0

We have SharePoint 2010 site, we have created custom UI for all the pages.We also used session variables in many place.

Site currently not working properly with chrome,its alignment gets disturbed.

How to make site compatiable with chrome and other browsers.


Rushikesh_Khadtare


SharePoint.Project.AssemblyFullName ASP.NET runtime error: Path cannot be null on first line of an Applicaton page

$
0
0

I am on a new SP2010 dev machine running VS2012 C#.  I am trying to develope a SharePoint Application page.

  1. I have defined the project to deploy as a Farm Solution
  2. When the new solution comes up, I right-click the project title in the soluton explorer > Add > SharePoint Mapped Layout folder.  This creates the Layouts folder and a sub-folder of the project name.
  3. I right-click the project name under the Layouts folder then Add > New Item > then select Applicaton Page (Farm Solution Only) -- I change the name of the form to MyForm.aspx
  4. VS creates the form for the applicaton page.  The first line is :
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>

BUT there is a blue error squigled line for the length of the line.  and in the Error list Warning say

Warning	1	C:\Projects\SharePoint\SpPractice1\SpPractice1\Layouts\SpPractice1\
MyForm.aspx: ASP.NET runtime error: Path cannot be null. Parameter name: path

Also, toolbar object don't copy over.  And if I type them in under the Main placeholder (e.g, an asp label) they don't appear in the browser when I hit F5 to run.

Any help would be appriciated.  I am stumpped.

Thank you for your time

Update workflow status column using PowerShell

$
0
0

Hi All,

Using PowerShell i want to update the 'Document Status' column as 'Approved'  if it is 'Pending' when it is approved and Task Status is = 'Completed'

Intermittently my custom workflow is not updating the 'Document Status' column as 'Approved' though it is approved and Task Status is = 'Completed'

So I thought about running a PowerShell script to work around it.

Can you please help me for the script.

Thanks & Regards


MD.Liakath ali

Showing only current date in the data form webpart

$
0
0

When i try to put one of my date formatted fields in the page, without notice to it's real value, onlycurrent date have been shown.

it's happen in only one of my pages and after delete it and redesign it, every thing goes OK. it's second time i got this problem and previous occur is on other server and table. my code is simple and standard:

<xsl:value-ofselect="@ADate"/>

Thanks.

How to retrieve the date of the itme's version using Ecmascript

$
0
0

Hello, all

I'd like to retrieve the date of minor and major versions using ecmascript. Here is my script so far.

I am getting ID from query string in URL, then passing it to access file.

What I don't understand is to how to instantiate Version class and loop through version to retrieve created date.

Can someone help?

<Sharepoint:ScriptLink name="SP.js" runat="server" OnDemand="true" localizable="false"/>

<pre class="brush: javascript;">

<script language="ecmascript" type="text/ecmascript">

//Get ID of the document
function getParameterByName(name) {
    name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
    var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
        results = regex.exec(location.search);
    return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}

var v_id = getParameterByName('ID');
alert(v_id);

            
        var item;
        var list;
        var file;

        function fileMajorandMinorVersion() {
            var clientContext = SP.ClientContext.get_current();
            if (clientContext != undefined && clientContext != null) {
                var webSite = clientContext.get_web();
                this.list = webSite.get_lists().getByTitle("List Title");
                this.item = list.getItemById(v_id);
                this.file = this.item.get_file();

                clientContext.load(this.file);
                clientContext.executeQueryAsync(Function.createDelegate(this, this.OnLoadSuccess), Function.createDelegate(this, this.OnLoadFailed));
            }
        }

         function OnLoadSuccess(sender, args) {
            var version = "Major Version: " + this.file.get_majorVersion() + '\n' + "Minor Version: " + this.file.get_minorVersion();
            alert(version)
        }

        function OnLoadFailed(sender, args) {
            alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
        }
       
        </script>
       
       
<input id="btnFileMajorandMinorVersion" onclick="fileMajorandMinorVersion()" type="button" value="File Major and Minor Version"/>


vlad

Error on Activate Feature click

$
0
0
I have written simple timerjob to move files from one library to another library.

Feature's scope is "Web Application". 

Project's Assembly deployment target is GAC.

When I try to activate feature then gets below error -

Failed to load receiver assembly "MoveRecommandedFilesTimerJob, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ddb3b834d8fe0623" 
for feature "MoveRecommandedFilesTimerJob_Feature_MoveRecommandedFilesTimerJob" 
(ID: 7b52a2e9-e11d-4f1c-b1a1-979e9e85d836).: System.IO.FileNotFoundException: Could not load file or assembly 
'MoveRecommandedFilesTimerJob, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ddb3b834d8fe0623' or one of its dependencies. 
The system cannot find the file specified. 
File name: 'MoveRecommandedFilesTimerJob, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ddb3b834d8fe0623' 
   at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) 
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) 
   at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) 
   at System.Reflection.Assembly.Load(String assemblyString) 
   at Microsoft.SharePoint.Administration.SPFeatureDefinition.get_ReceiverObject() 

WRN: Assembly binding logging is turned OFF. 
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. 
Note: There is some performance penalty associated with assembly bind failure logging. 
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. 

After deployment dll is also present in GAC.

How to resolve this issue, I am not getting what is going wrong.

Thanks..


Rushikesh_Khadtare

Downloading all versions of a file from a document library via Client Object Model

$
0
0

Hi,

I'm trying to download all versions of a document from a SharePoint 2010 document library via the client object model. Downloading the current version works fine but iterating through the versions fails.

 

clientContext.Load(listItem);
clientContext.Load(listItem.File);
clientContext.Load(listItem.File.Versions);
clientContext.ExecuteQuery();

// this works:
// FileInformation fInfo = File.OpenBinaryDirect(clientContext, listItem["FileRef"].ToString()); 
foreach (FileVersion version in listItem.File.Versions) {
// this does not:     FileInformation fInfo = File.OpenBinaryDirect(clientContext, version.Url); StreamToFile(fInfo.Stream, fileName); }                                          
When I try to call OpenBinaryDirect using the url of a version (even the current one) i.e. http://localhost/_vti_history/512/LibraryName/File123.docx (which works in the browser) a get this exception:
Specified argument was out of the range of valid values.
Parameter name: serverRelativeUrl

Any ideas?

Display Linked Data Source

$
0
0

I created a Linked Data Source in SharePoint Designer 2010.  Is there any way to display the Link Data Source with a web part outside of SharePoint Designer?  I do not have enough rights to create a web part page in Designer.   Thanks!

David L. Crooks



How to import Solarwinds Dashboards into a SharePoint 2010 site?

$
0
0

Hello ,

I am planning to import solarwinds dashboard in a SharePoint 2010 site, so could anyone please tell me how to achieve this.


Thanks and Regards,

Srikanth G.



Datasheet view "lists.asmx" timeout

$
0
0

Hi, 

Im currently trying to help a client with an issue regarding a large list and datasheet view. Everything works as expected until the view contains more than one SPFieldType.User. 

The list contains 9000 items (~5000 items per folder) and the view is shown in a "flat view" so all items are visible. 
There is about 10-15 fields (text, currency, note, calculated fields) in total and the view opens up in datasheet view but only the first 100 or so items are loaded. After 120 seconds an error is displayed (Could not connect to the server at this time). 

Fiddler2 shows the POST requests to load items from the list using Lists.asmx GetListitems method, this call lasts about 30 seconds and then "fails". Since the request wasn't returned within the 30 seconds the same call is made again. This goes on until the 120 second mark is hit. 

IS there a way to increase the timeout for this call to Lists.asmx to last more than 30 seconds ?
Or is it possible to improve the performance regarding people fields ?

- Have increased connectionTimeout in IIS 
- Have checked the database fragmentation level
- Item Threshold increased to 12 000

Thanks in advance!


Find Run time cell address values in SSRS 2008

$
0
0

I need to find out each and every run time cell addresses value of the grouped field tablix in SSRS(SQL Server Reporting) 2008. but it will not the ReportItems!CellName.Value. Its like a table array counting from 0 to n.need to find each run time address value set to generate a formula(statistical analysis).

I have 2 group columns and 3 group rows in a matrix table.How can i find these address values using if out of the box features or custom code level.

answer like:

Array(0)=take the value

Array(1)

Array(2)  etc....

Thanks!

Suminda

visual web parts ascx controls are updating when i deploy with visual studio

$
0
0

i created one sharepoint2013empty  solution in that i have taken 2 visual web parts when i make changes in ascx it is not reflecting in site collection by deploying with visual studio .please suggest any resolutions for this

How to use Smart Art in Sharepoint 2010 Page?

$
0
0

Hi

I have a set of slides few of them needs to be displayed on SharePoint web page. There is smart art in slide. Some of the smart art objects point to some URL. I am not able to put it in SharePoint page. Any suggestions please.

Thanks

Viewing all 11571 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>