SharePoint 2010 InfoPath & Workflow. "The file is checked out for editing by" - sharepoint

I'm working in a sharepoint 2010 workflow with an infopath form. When I check in my dev machine, the workflow and form are working fine. But when I deploy it to the production server I get an error in the second step when I'm trying to submit the InfoPath form, the error says "The file '[url_of_the_file]' is checked out for editing by '[user]'". I have all the versioning settings off for that library.
It seems that when I modify the item in the workflow, it somehow is getting checked out and then the user that has the second step gets this error.
Any ideas?
Thanks in advance.
Juan Escobar.

There is an Action called "Checkin Item" in SharePoint Workflow, you can try to insert the action before you make any changes to your current item.

Related

SharePoint Designer Site Configuration error while creating forms

I have configure SharePoint site in my local system, While I am going to create forms I am getting error
SharePoint Designer deprecated please check these two articles:
https://microsoft365.today/microsoft-365/powerapps/sharepoint-designer-feature-deprecation/
https://learn.microsoft.com/en-us/sharepoint/what-s-new/what-s-deprecated-or-removed-from-sharepoint-...
You could try to follow some advice mentioned below:
Step 1: Create a new list item on your list. If it works, go to step 2. If doesn't, check our list columns (or content types of that list) - specially calculated fields and lookup fields.
Step 2: Create new custom form by SharePoint Designer 2013. If it doesn't work, try to clear SPD cache in location:
c:/Users/[your current user]/Appdata/Local/Microsoft/WebsiteCache
Reference:
Could not save the List Changes to Server in Sharepoint 2013
Here are another similar thread you could have a look:
"could not save the list changes to the server" in designer

Set an error message in SharePoint desginer

How to create an error pop up in Sharepoint desginer 2013?
Is there a way where, I can set a user message if a condition check fails in Sharepoint desginer 2013?
If you want to add error popup in a list form using SharePoint designer 2013, we can open the form page and find the "PlaceHolderMain", then add some JavaScript code in the below.
If you want to make the error popup works in all page, we can add the code into in master page using SharePoint designer.
If I misunderstand your requirement, I suggest you provide more information for further research.

Why disabling Workflows to start automatically in SharePoint through ListSettings>Change a Workflow, does not work?

I had several workflows created in SharePoint Designer 2013 for SharePoint 2013, and I needed to disable some of them before "Creating New Items" in bulk by using a Quick-Edit view, so they would not send e-mails/change values/or create new items, as they were supposed to do if the setting: "Creating a new item will start this workflow.", would have been enabled in the List Settings/Change a Workflow page.
I uploaded the new records with the quick edit method, and then I whent to look for a change that one of the Workflows that I left enabled... ...long story short: Workflows that were disabled, were running... All of them!!
Does someone know why if I disable workflows through the SharePoint UI,so they DO NOT get executed automatically when adding or updating items, they still get executed when adding new items or editing values. Or why the same setting does not seems to be changed if I open the workflow configuration in SharePoint Designer 2013? Do I need to make a change in SharePoint and through SharePoint Designer so the change is honored?
To clarify: If I uncheck the box that says "Creating an item will start this workflow." through the SharePoint UI. Then, save the changes to the list, then; however, if I open SharePoint Designer I see that the box "Start workflow automatically when an item is created" IS ENABLED!!!
Does it is needed to make a change in SharePoint and through SharePoint Designer so the change is honored?

SharePoint 2013, InfoPath 2010 error: 0x82000006

I've a SharePoint 2013 list modified with InfoPath. Everything was working fine until today, I had to do few modifications. While publishing the changes I'm getting the below error.
Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.
<detail><errorstring xmlns="http://schemas.microsoft.com/sharepoint/soap/">
List does not exist.
The page you selected contains a list that does not exist. It may have been deleted by another user.
</errorstring><errorcode xmlns="http://schemas.microsoft.com/sharepoint/soap/">0x82000006</errorcode></detail>
Please let me know if there is a way to fix it.
I recently ran into the exact same error message. In my case, the InfoPath Form was created with InfoPath 2010 and migrated to Sharepoint 2013. Editing with InfoPath 2013 yields the error message above. Editing with Infopath 2010 I can edit the form without any issue.
Perhaps its because you have a lookup field in your list, and during import process the link to lookup list is broken

Multiple ModificationForms in Sharepoint Workflow

i am working on a Sharepoint Server 2007 Statemachine Workflow. Until now i have a few states and an custom Association/InitiationForm which i created with InfoPath 2007.
At the moment i have a Problem with Modification forms. The modification link in the state page of my workflow is shown and leads on click to my InfoPath form. If i click the "Submit" button the form is closed. Everything works fine.
Now i tried to add a second ModificationForm to my workflow. So i created a new InfoPath form and added it in the same way to the workflow as the first one. The workflow has no errors in the building or deploying-process.
But if i now try to click the second Modification link in the state page the form is not shown. Instead of my form the text: "The form has been closed." is shown.
I looked in the central administration and the InfoPath form is know under "Manage form templates". I gave every Modification in the Workflow.xml his own Guid. I used the following ModificationUrl: ModificationUrl="_layouts/ModWrkflIP.aspx"
Does anybody know step by step how to use two or more ModificationForms in my workflow?
Thank you in advance.
Thank you very much. I found the following Error Message in the Logfile:
"Form load failed with a validation error"
I searched in the web for solutions for this problem and fount this site:
http://social.msdn.microsoft.com/forums/en-US/sharepointworkflow/thread/83264f93-ebe3-49ec-bd6b-95ee02df4d8a/
I had two sceme files and i just schould use one for both forms. So i had to use the same data source. That was all. Thank you for the hint.
Look in your ULS logs for the error message. It will be listed there 100%. The category is "Forms Services" - the logs are located under the 12 hive in LOGS\

Resources