Monday, 20 January 2014

“Infopath cannot generate a form template for Sharepoint list form. Missing equals sign between attribute and attribute value” on InfoPath 2010

At some point when you have tried to use a Custom List created by yourself and edited with Infopath 2010 you could end getting this error message.

“Infopath cannot generate a form template for Sharepoint list form. Missing equals sign between attribute and attribute value”

This error message comes directly from the Content Type.

Go To Visual Studio 2010/2012/2013 and be sure that the name of the field doesn’t contain any spaces.

So instead of having this in your column definition:

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">  
  <Field
       ID="{c6797d94-d297-4142-917c-149234839128}"
       Name="Security of Tenure"
       DisplayName="Security of Tenure"
       Type="Boolean"
       Required="FALSE"
       Group="Custom Site Columns">
  </Field>
</Elements>


You Should have:

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">  
  <Field
       ID="{c6797d94-d297-4142-917c-149234839128}"
       Name="SecurityofTenure"
       DisplayName="Security of Tenure"
       Type="Boolean"
       Required="FALSE"
       Group="Custom Site Columns">
  </Field>
</Elements>


And Instead of having this in your Content Type:

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <!-- Parent ContentType: Item (0x01) -->
  <ContentType ID="0x0100298A36AB7ABB4C59B91FA2D8F92589D3" MyUnit" Group="Custom Content Types" Description="Unit Content Type" Inherits="TRUE" Version="0">
    <FieldRefs>
      <FieldRef ID="{c6797d94-d297-4142-917c-149234839128}" DisplayName="Security of Tenure" Required="FALSE" Name="Security of Tenure" />
    </FieldRefs>
  </ContentType>
</Elements>
You should have:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <!-- Parent ContentType: Item (0x01) -->
  <ContentType ID="0x0100298A36AB7ABB4C59B91FA2D8F92589D3" MyUnit" Group="Custom Content Types" Description="Unit Content Type" Inherits="TRUE" Version="0">
    <FieldRefs>
      <FieldRef ID="{c6797d94-d297-4142-917c-149234839128}" DisplayName="Security of Tenure" Required="FALSE" Name="SecurityofTenure" />
    </FieldRefs>
  </ContentType>
</Elements>
Enjoy!

4 comments:

ninest123 said...

replica watches, louis vuitton, air jordan pas cher, longchamp pas cher, ray ban sunglasses, nike air max, oakley sunglasses, ugg boots, oakley sunglasses, nike free, nike roshe run, louboutin shoes, michael kors, louboutin, longchamp outlet, louis vuitton outlet, polo ralph lauren outlet, longchamp outlet, tiffany jewelry, tiffany and co, jordan shoes, tory burch outlet, ugg boots, air max, louis vuitton, replica watches, nike free, louis vuitton, uggs on sale, sac longchamp, burberry, chanel handbags, oakley sunglasses, polo ralph lauren outlet, louboutin outlet, longchamp, louis vuitton outlet, prada outlet, cheap oakley sunglasses, oakley sunglasses, christian louboutin outlet, louboutin pas cher, ralph lauren pas cher, ray ban sunglasses, kate spade outlet, ray ban sunglasses, nike air max, prada handbags, gucci outlet, nike outlet

ninest123 said...

burberry outlet online, nike air max, coach purses, nike air max, michael kors, timberland, new balance pas cher, true religion jeans, kate spade handbags, nike free run uk, north face, true religion jeans, ralph lauren uk, air force, hollister pas cher, ray ban uk, converse pas cher, lacoste pas cher, michael kors outlet, michael kors outlet, ugg boots, michael kors outlet, michael kors outlet, coach outlet, vans pas cher, hollister, burberry, coach outlet, nike blazer, oakley pas cher, vanessa bruno, mulberry, ugg boots, lululemon, hermes, tn pas cher, ray ban pas cher, sac guess, hogan, true religion jeans, abercrombie and fitch, true religion outlet, michael kors, nike air max, michael kors outlet, replica handbags, michael kors, nike roshe, north face, michael kors

ninest123 said...

longchamp, iphone 5s cases, hollister, ferragamo shoes, herve leger, jimmy choo shoes, giuseppe zanotti, north face outlet, vans shoes, mont blanc, nike huarache, celine handbags, iphone cases, iphone 6s cases, nike trainers, lululemon, louboutin, ralph lauren, iphone 6 cases, babyliss, s5 cases, hollister, north face outlet, nfl jerseys, bottega veneta, soccer shoes, oakley, baseball bats, abercrombie and fitch, ghd, chi flat iron, valentino shoes, beats by dre, asics running shoes, wedding dresses, reebok shoes, timberland boots, ipad cases, mac cosmetics, mcm handbags, nike roshe, nike air max, insanity workout, iphone 6s plus cases, birkin bag, p90x workout, hollister, instyler, iphone 6 plus cases, soccer jerseys, new balance

chenmeinv0 said...

christian louboutin
canada goose femme
timberland boots
kate spade sale
gucci handbags online
ed hardy outlet
nike roshe run shoes
cheap oakley sunglasses
clippers jerseys
adidas yeezy
2016.12.17xukaimin