boulder_bum

I tried deploying a WF SharePoint workflow with no URNs in the metadata element (the template comments said I could just delete any of the form URNs I didn't want), but I noticed that when I go to the task I create in the workflow and click the link in the Title column, it takes me to the page:

/_layouts/WrkTaskIP.aspx ...

... where I get the error:

The workflow template has specified no FormURN for this page

This appears (though I am new to workflow) that an InfoPath form is expected for the workflow, but what if I really don't want to create an InfoPath form for it Can I just get the Title link to go to the item or something



Re: SharePoint - Workflow Problem With SharePoint WorkFlow URNs

Chandler Chao

Most likely that error is due to the fact that in your Elements.xml (or equivalent) you have an entry for TaskListContentTypeId which refers to a content type that does not exist on that server. If you built your workflow modeled after some sample code that incorporated IP forms then that is most likely the case. What you are going to want to do is replace that entry with a valid content type id on your server. A good one would be the content type id for the default task. You can get this by doing the following

  1. Go in to the settings for your task list that you are going to use for the workflow.
  2. Choose advanced settings and mark "Yes" for "Allow management of content types "
  3. Click Ok.
  4. Click on "Task" underneath the Content Type section.
  5. Click "Task" next to Parent.
  6. Now look at the Url address. The id you want is a querystring parameter: ctype=0x0108

Hope that helps.





Re: SharePoint - Workflow Problem With SharePoint WorkFlow URNs

boulder_bum

Sweet. That was it. I just removed the TaskListContentTypeId and it defaulted to a normal task.

To clarify, however, the TaskListContentTypeId is designating a custom task content type (like if I wanted to customize an approval task, I could have custom forms for the approval), correct





Re: SharePoint - Workflow Problem With SharePoint WorkFlow URNs

Chandler Chao

Yes that is true it does designate a custom content type or any other content type that is already on that server actually. You can go in to your Site Collection administration to view your "Site Content Types" to see which ones are installed.

You can also create your own task content type similar to the CollectFeedback workflow sample.





Re: SharePoint - Workflow Problem With SharePoint WorkFlow URNs

Praveen battula

chandler ur post is nice, but if i removed the TaskListContentTypeId and metadata tags i m getting the error formURN is not defined,
plz help me
i m new to workflows...






Re: SharePoint - Workflow Problem With SharePoint WorkFlow URNs

Praveen battula

in my workflow.xml, i added TaskListContentTypeId and metadata tags i m getting error like <br><br>The following location is not accessible, because it is in a different site collection: urnTongue Tiedchemas-microsoft-comSurpriseffice:infopath:AssocForm11:-myXSD-2007-04-19T05-18-41i removed the metadata - formURN tags , i m not getting the above ,a new one which is saying no formURN specified for this pageplz help me, i wasted my time aloti m new to mossthanks in advance




Re: SharePoint - Workflow Problem With SharePoint WorkFlow URNs

Chandler Chao

Those FormURN errors are thrown by the AssociationUrl, InstantiationUrl, and ModificationUrl attributes that you will find in the <Workflow> node of the <Elements> node in your workflow.xml. You can just remove all three if you don't have any custom forms that you use for Association, Instantiation and Modifications for your workflow. That should eliminate the error. Also remove the <StatusPageUrl> tag as well, unless of course you're using that one too.



Re: SharePoint - Workflow Problem With SharePoint WorkFlow URNs

Praveen battula

hi chao,

i solved the bug, thank u very much ,

but i have the problem with sending mails in workflow,
please take a look at the issue

thanks
http://forums.microsoft.com/TechNet/ShowPost.aspx PostID=1546616&SiteID=17






Re: SharePoint - Workflow Problem With SharePoint WorkFlow URNs

Praveen battula

thanks to all,
i got the solution.







Re: SharePoint - Workflow Problem With SharePoint WorkFlow URNs

Shola Salako

Thanks for this tip, Chandler. It not only helped in troubleshooting the error I was receiving, but it is a great way to find contenttypeids in MOSS.

Shola.






Re: SharePoint - Workflow Problem With SharePoint WorkFlow URNs

jvrakesh

Hi Praveen,

I am a newbie please bear with me , I followed exactly the same as you mentioned in you post for deploying but I still get this error .

The following location is not accessible, because it is in a different site collection:

pls help.

thanks

RJ





Re: SharePoint - Workflow Problem With SharePoint WorkFlow URNs

BilalShouman

Dear Chandler,

Im having this error:

The workflow template has specified no FormURN for this page.

MY Project doesnt have any info path forms.

this is my workflow.xml file

< xml version="1.0" encoding="utf-8" >

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Workflow
Name="My Workflow"
Description="My Work Flow Description"
Id="5D748755-051A-416f-879B-CE6CDC2843F7"
CodeBesideClass="Custom_Work_Flow.Workflow1"
CodeBesideAssembly="Custom_Work_Flow, Version=3.0.0.0, Culture=neutral, PublicKeyToken=f443ba67885367b0"
AssociationUrl="_layouts/CstWrkflIP.aspx"
InstantiationUrl="_layouts/IniWrkflIP.aspx"
ModificationUrl="_layouts/ModWrkflIP.aspx">
<Categories/>
<!-- Tags to specify InfoPath forms for the workflow; delete tags for forms that you do not have -->
</Workflow>
</Elements>

Please Help





Re: SharePoint - Workflow Problem With SharePoint WorkFlow URNs

Praveen battula

hi,
try by removing following code from your workflow.xml

AssociationUrl="_layouts/CstWrkflIP.aspx"
InstantiationUrl="_layouts/IniWrkflIP.aspx"
ModificationUrl="_layouts/ModWrkflIP.aspx"

thanks
Praveen.






Re: SharePoint - Workflow Problem With SharePoint WorkFlow URNs

BilalShouman

I tried that,

but now Im facing workflow unable to start

any Ideas

Im using Visual studio 2005