<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>SharePoint</title>
        <link>http://www.lightningtools.com/blog/category/2.aspx</link>
        <description>SharePoint</description>
        <language>en-GB</language>
        <copyright>Lightning Tools</copyright>
        <managingEditor>support@lightningtools.com</managingEditor>
        <generator>Subtext Version 1.9.5.177</generator>
        <item>
            <title>BCS Meta Man - Using a Connection String stored in the Secure Store</title>
            <link>http://lightningtools.com/blog/archive/2011/08/24/bcs-meta-manndashusing-a-connection-string-stored-in-the-secure.aspx</link>
            <description>&lt;p&gt;In this blog post I will show you how you can update your code to use a connection string in the Secure Store rather than having the value hard coded in your BCS Meta Man generated c# file.  The reason why you may wish to put the connection details within the Secure Store is that the names of the database and server are likely to be different in my development environment than in my staging and production environments. In order to do this you will need to have the use of the secure store which is only available in SharePoint Server 2010 and not SharePoint Foundations.&lt;/p&gt;  &lt;p&gt;To be able to use the details stored within the secure store you will be required to do some manual changes to the code generated by BCS Meta Man. &lt;/p&gt;  &lt;p&gt;First of all create a new Secure Store application with the Connection String Field&lt;/p&gt;  &lt;p&gt;Central Administration &amp;gt; Service Applications &amp;gt; Secure Store &amp;gt; New&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/a4cf3d9bf4f9_A86C/image_12.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="Configure Secure Store" border="0" alt="Configure Secure Store" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/a4cf3d9bf4f9_A86C/image_thumb_5.png" width="221" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Using the ‘Add Field’ button add a generic field called ‘Connection String’ and remove the other two fields&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/a4cf3d9bf4f9_A86C/image_18.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="Using Generic Field for Connection String in Secure Store" border="0" alt="Using Generic Field for Connection String in Secure Store" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/a4cf3d9bf4f9_A86C/image_thumb_8.png" width="244" height="75" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Click next and then add the Secure Store Administrator on the next screen. Now the Secure Store ID has been created you can click on it and choose to set the credentials, this is where you supply all of the credentials required.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/a4cf3d9bf4f9_A86C/image_16.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="Setting Credentials for Secure Store Application" border="0" alt="Setting Credentials for Secure Store Application" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/a4cf3d9bf4f9_A86C/image_thumb_7.png" width="244" height="136" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Enter the connection string and the Credential Owner, Click OK&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/a4cf3d9bf4f9_A86C/image_20.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="Setting Credentials for Secure Store Application" border="0" alt="Setting Credentials for Secure Store Application" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/a4cf3d9bf4f9_A86C/image_thumb_9.png" width="244" height="201" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;In BCS Meta Man, create a new BCS Meta Man Project and when connecting to your Data Source choose ‘Use Secure Store’ as your Authentication Mode.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/a4cf3d9bf4f9_A86C/image_8.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="Connecting to External System using Secure Store and BCS Meta Man" border="0" alt="Connecting to External System using Secure Store and BCS Meta Man" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/a4cf3d9bf4f9_A86C/image_thumb_3.png" width="244" height="200" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;You will be prompted for your credentials again, this is to allow BCS Meta Man to connect to the External System. Next create the External Content Type and choose .Net Assembly connector as the Model Type, generate the External Content Type in the usual way.&lt;/p&gt;  &lt;p&gt;At this point the Model and assembly will be configured to the use Secure Store credentials for the User Name and Password but not for the Server and Database, Deploy the model to ensure the Secure Store details are correct. If it is working and you can see your External Data then it’s time to configure the code to retrieve the Server and Database, if not then check back to the Secure Store and make sure the credentials you entered have the permissions to the External System you are using.&lt;/p&gt;  &lt;p&gt;Locate the BCSMetaMan.cs class and find the following method which retrieves the credentials from the Secure Store&lt;/p&gt;  &lt;pre class="code"&gt;&lt;span style="color: blue"&gt;internal &lt;/span&gt;&lt;span style="color: #00008b"&gt;Dictionary&lt;/span&gt;&amp;lt;&lt;span style="color: blue"&gt;string&lt;/span&gt;, &lt;span style="color: blue"&gt;string&lt;/span&gt;&amp;gt; &lt;span style="color: #008b8b"&gt;ReadCredentialsFromSecureStore&lt;/span&gt;()
{
    &lt;span style="color: green"&gt;// error checking removed for brevity
    &lt;/span&gt;&lt;span style="color: blue"&gt;string &lt;/span&gt;targetId = &lt;span style="color: purple"&gt;LobSystemInstance&lt;/span&gt;.&lt;span style="color: #008b8b"&gt;GetProperties&lt;/span&gt;()[&lt;span style="color: #a31515"&gt;"SsoApplicationId"&lt;/span&gt;] &lt;span style="color: blue"&gt;as string&lt;/span&gt;;
    &lt;span style="color: #00008b"&gt;ISecureStoreProvider &lt;/span&gt;provider = &lt;span style="color: #008b8b"&gt;GetSecureStoreProvider&lt;/span&gt;();

    &lt;span style="color: blue"&gt;var &lt;/span&gt;userCredentials = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #00008b"&gt;Dictionary&lt;/span&gt;&amp;lt;&lt;span style="color: blue"&gt;string&lt;/span&gt;, &lt;span style="color: blue"&gt;string&lt;/span&gt;&amp;gt;(2);

    &lt;span style="color: green"&gt;// get the credentials for the user on whose behalf the code 
    // is executing 
    &lt;/span&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;(&lt;span style="color: #00008b"&gt;SecureStoreCredentialCollection &lt;/span&gt;credentials = provider.&lt;span style="color: #008b8b"&gt;GetRestrictedCredentials&lt;/span&gt;(targetId))
    {

        &lt;span style="color: green"&gt;// look for username and password in credentials 
        &lt;/span&gt;&lt;span style="color: blue"&gt;foreach &lt;/span&gt;(&lt;span style="color: #00008b"&gt;ISecureStoreCredential &lt;/span&gt;credential &lt;span style="color: blue"&gt;in &lt;/span&gt;credentials)
        {
            &lt;span style="color: blue"&gt;switch &lt;/span&gt;(credential.&lt;span style="color: purple"&gt;CredentialType&lt;/span&gt;)
            {
                &lt;span style="color: blue"&gt;case &lt;/span&gt;&lt;span style="color: #00008b"&gt;SecureStoreCredentialType&lt;/span&gt;.&lt;span style="color: purple"&gt;UserName&lt;/span&gt;:
                &lt;span style="color: blue"&gt;case &lt;/span&gt;&lt;span style="color: #00008b"&gt;SecureStoreCredentialType&lt;/span&gt;.&lt;span style="color: purple"&gt;WindowsUserName&lt;/span&gt;:
                    userCredentials.&lt;span style="color: #008b8b"&gt;Add&lt;/span&gt;(&lt;span style="color: #a31515"&gt;"UserID"&lt;/span&gt;, &lt;span style="color: #008b8b"&gt;GetStringFromSecureString&lt;/span&gt;(credential.&lt;span style="color: purple"&gt;Credential&lt;/span&gt;));
                    &lt;span style="color: blue"&gt;break&lt;/span&gt;;
                &lt;span style="color: blue"&gt;case &lt;/span&gt;&lt;span style="color: #00008b"&gt;SecureStoreCredentialType&lt;/span&gt;.&lt;span style="color: purple"&gt;Password&lt;/span&gt;:
                &lt;span style="color: blue"&gt;case &lt;/span&gt;&lt;span style="color: #00008b"&gt;SecureStoreCredentialType&lt;/span&gt;.&lt;span style="color: purple"&gt;WindowsPassword&lt;/span&gt;:
                    userCredentials.&lt;span style="color: #008b8b"&gt;Add&lt;/span&gt;(&lt;span style="color: #a31515"&gt;"Password"&lt;/span&gt;, &lt;span style="color: #008b8b"&gt;GetStringFromSecureString&lt;/span&gt;(credential.&lt;span style="color: purple"&gt;Credential&lt;/span&gt;));
                    &lt;span style="color: blue"&gt;break&lt;/span&gt;;
                &lt;span style="color: blue"&gt;default&lt;/span&gt;:
                    &lt;span style="color: blue"&gt;break&lt;/span&gt;;
            }
        }
    }

    &lt;span style="color: blue"&gt;return &lt;/span&gt;userCredentials;
}&lt;/pre&gt;



&lt;p&gt;You should be able to see that by default only the Username and Password are retrieved, replace the method with the following to pick up the Generic Field that we are using for the Connection String&lt;/p&gt;

&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;internal &lt;/span&gt;&lt;span style="color: #00008b"&gt;Dictionary&lt;/span&gt;&amp;lt;&lt;span style="color: blue"&gt;string&lt;/span&gt;, &lt;span style="color: blue"&gt;string&lt;/span&gt;&amp;gt; &lt;span style="color: #008b8b"&gt;ReadCredentialsFromSecureStore&lt;/span&gt;()
{
    &lt;span style="color: green"&gt;// error checking removed for brevity
    &lt;/span&gt;&lt;span style="color: blue"&gt;string &lt;/span&gt;targetId = &lt;span style="color: purple"&gt;LobSystemInstance&lt;/span&gt;.&lt;span style="color: #008b8b"&gt;GetProperties&lt;/span&gt;()[&lt;span style="color: #a31515"&gt;"SsoApplicationId"&lt;/span&gt;] &lt;span style="color: blue"&gt;as string&lt;/span&gt;;
    &lt;span style="color: #00008b"&gt;ISecureStoreProvider &lt;/span&gt;provider = &lt;span style="color: #008b8b"&gt;GetSecureStoreProvider&lt;/span&gt;();

    &lt;span style="color: blue"&gt;var &lt;/span&gt;userCredentials = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #00008b"&gt;Dictionary&lt;/span&gt;&amp;lt;&lt;span style="color: blue"&gt;string&lt;/span&gt;, &lt;span style="color: blue"&gt;string&lt;/span&gt;&amp;gt;(2);

    &lt;span style="color: green"&gt;// get the credentials for the user on whose behalf the code 
    // is executing 
    &lt;/span&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;(&lt;span style="color: #00008b"&gt;SecureStoreCredentialCollection &lt;/span&gt;credentials = provider.&lt;span style="color: #008b8b"&gt;GetRestrictedCredentials&lt;/span&gt;(targetId))
    {

        &lt;span style="color: green"&gt;// look for username and password in credentials 
        &lt;/span&gt;&lt;span style="color: blue"&gt;foreach &lt;/span&gt;(&lt;span style="color: #00008b"&gt;ISecureStoreCredential &lt;/span&gt;credential &lt;span style="color: blue"&gt;in &lt;/span&gt;credentials)
        {
            &lt;span style="color: blue"&gt;switch &lt;/span&gt;(credential.&lt;span style="color: purple"&gt;CredentialType&lt;/span&gt;)
            {
                &lt;span style="color: blue"&gt;case &lt;/span&gt;&lt;span style="color: #00008b"&gt;SecureStoreCredentialType&lt;/span&gt;.&lt;span style="color: purple"&gt;UserName&lt;/span&gt;:
                &lt;span style="color: blue"&gt;case &lt;/span&gt;&lt;span style="color: #00008b"&gt;SecureStoreCredentialType&lt;/span&gt;.&lt;span style="color: purple"&gt;WindowsUserName&lt;/span&gt;:
                    userCredentials.&lt;span style="color: #008b8b"&gt;Add&lt;/span&gt;(&lt;span style="color: #a31515"&gt;"UserID"&lt;/span&gt;, &lt;span style="color: #008b8b"&gt;GetStringFromSecureString&lt;/span&gt;(credential.&lt;span style="color: purple"&gt;Credential&lt;/span&gt;));
                    &lt;span style="color: blue"&gt;break&lt;/span&gt;;
                &lt;span style="color: blue"&gt;case &lt;/span&gt;&lt;span style="color: #00008b"&gt;SecureStoreCredentialType&lt;/span&gt;.&lt;span style="color: purple"&gt;Password&lt;/span&gt;:
                &lt;span style="color: blue"&gt;case &lt;/span&gt;&lt;span style="color: #00008b"&gt;SecureStoreCredentialType&lt;/span&gt;.&lt;span style="color: purple"&gt;WindowsPassword&lt;/span&gt;:
                    userCredentials.&lt;span style="color: #008b8b"&gt;Add&lt;/span&gt;(&lt;span style="color: #a31515"&gt;"Password"&lt;/span&gt;, &lt;span style="color: #008b8b"&gt;GetStringFromSecureString&lt;/span&gt;(credential.&lt;span style="color: purple"&gt;Credential&lt;/span&gt;));
                    &lt;span style="color: blue"&gt;break&lt;/span&gt;;
                &lt;span style="color: blue"&gt;case &lt;/span&gt;&lt;span style="color: #00008b"&gt;SecureStoreCredentialType&lt;/span&gt;.&lt;span style="color: purple"&gt;Generic&lt;/span&gt;:
                    userCredentials.&lt;span style="color: #008b8b"&gt;Add&lt;/span&gt;(&lt;span style="color: #a31515"&gt;"ConnectionString"&lt;/span&gt;, &lt;span style="color: #008b8b"&gt;GetStringFromSecureString&lt;/span&gt;(credential.&lt;span style="color: purple"&gt;Credential&lt;/span&gt;));
                    &lt;span style="color: blue"&gt;break&lt;/span&gt;;
            }
        }
    }

    &lt;span style="color: blue"&gt;return &lt;/span&gt;userCredentials;
}&lt;/pre&gt;


&lt;p&gt; &lt;/p&gt;



















&lt;p&gt;Next switch to the *EntityService.cs class for your External Content Type i.e if your ECT was called Product the filename will be ProductEntityServiceClass.cs&lt;/p&gt;

&lt;p&gt;Update the following method&lt;/p&gt;

&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;public string &lt;/span&gt;&lt;span style="color: #008b8b"&gt;GetConnectionStringWithCredentials&lt;/span&gt;()
{
    &lt;span style="color: #00008b"&gt;Dictionary&lt;/span&gt;&amp;lt;&lt;span style="color: blue"&gt;string&lt;/span&gt;, &lt;span style="color: blue"&gt;string&lt;/span&gt;&amp;gt; credentialsFromSecureStore = &lt;span style="color: #008b8b"&gt;ReadCredentialsFromSecureStore&lt;/span&gt;();
    &lt;span style="color: blue"&gt;var &lt;/span&gt;connectionStringBuilder = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #00008b"&gt;SqlConnectionStringBuilder&lt;/span&gt;(&lt;span style="color: purple"&gt;ConnectionString&lt;/span&gt;) { &lt;span style="color: purple"&gt;UserID &lt;/span&gt;= credentialsFromSecureStore[&lt;span style="color: #a31515"&gt;"UserID"&lt;/span&gt;], &lt;span style="color: purple"&gt;Password &lt;/span&gt;= credentialsFromSecureStore[&lt;span style="color: #a31515"&gt;"Password"&lt;/span&gt;] };
    &lt;span style="color: blue"&gt;return &lt;/span&gt;connectionStringBuilder.&lt;span style="color: #008b8b"&gt;ToString&lt;/span&gt;();
}&lt;/pre&gt;

&lt;p&gt; &lt;/p&gt;

&lt;p&gt;with the following, this method now just returns the connection string&lt;/p&gt;
&lt;span style="color: blue"&gt;
  &lt;pre class="code"&gt;&lt;span style="color: blue"&gt;public string &lt;/span&gt;&lt;span style="color: #008b8b"&gt;GetConnectionStringWithCredentials&lt;/span&gt;()
{
    &lt;span style="color: blue"&gt;return &lt;/span&gt;&lt;span style="color: #008b8b"&gt;ReadCredentialsFromSecureStore&lt;/span&gt;()[&lt;span style="color: #a31515"&gt;"ConnectionString"&lt;/span&gt;];
}&lt;/pre&gt;
  

  

  
Now deploy the solution and it will be using the connection string from the Central Administration secure store, one thing which is worth noting is that when you go to change the credentials again you will not be shown what they were previously.  You also need to make sure that the same secure store setup is used in each of your environments.&lt;/span&gt;

&lt;p&gt;So there you have it not only can you use BCS Meta man to generate your c# code and configure the model with a few simple changes you can make the connection string configurable via the secure store.&lt;/p&gt;

&lt;p&gt;&amp;lt;Phill /&amp;gt;&lt;/p&gt;&lt;img src="http://lightningtools.com/blog/aggbug/294.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Lightning Tools</dc:creator>
            <guid>http://lightningtools.com/blog/archive/2011/08/24/bcs-meta-manndashusing-a-connection-string-stored-in-the-secure.aspx</guid>
            <pubDate>Wed, 24 Aug 2011 15:32:00 GMT</pubDate>
            <wfw:comment>http://lightningtools.com/blog/comments/294.aspx</wfw:comment>
            <comments>http://lightningtools.com/blog/archive/2011/08/24/bcs-meta-manndashusing-a-connection-string-stored-in-the-secure.aspx#feedback</comments>
            <wfw:commentRss>http://lightningtools.com/blog/comments/commentRss/294.aspx</wfw:commentRss>
        </item>
        <item>
            <title>BDC Meta Man and &amp;quot;The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception&amp;quot; error</title>
            <link>http://lightningtools.com/blog/archive/2011/07/25/bdc-meta-man-and-quotthe-type-initializer-for-oracle.dataaccess.client.oracleconnection-threw.aspx</link>
            <description>&lt;p&gt;We get quite a few support questions about having error regarding “Oracle.DataAccess.Client.OracleConnection” while using &lt;a href="http://www.lightningtools.com/bdc-meta-man/default.aspx"&gt;BDC Meta Man&lt;/a&gt; – hopefully we’ll be able to clear this up with this post. &lt;/p&gt;  &lt;p&gt;When you connect to Oracle using &lt;a href="http://www.lightningtools.com/bdc-meta-man/default.aspx"&gt;BDC Meta Man&lt;/a&gt; you may have this error raised “The type initializer for ‘Oracle.DataAccess.Client.OracleConnection’ threw an exception”:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/9b9e10875c85_12E93/OracleException_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="The type initializer for ‘Oracle.DataAccess.Client.OracleConnection’ threw an exception" border="0" alt="The type initializer for ‘Oracle.DataAccess.Client.OracleConnection’ threw an exception" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/9b9e10875c85_12E93/OracleException_thumb.png" width="244" height="87" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;span id="BugEvents"&gt;It’s not a reason to spread panic &lt;img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/9b9e10875c85_12E93/wlEmoticon-smile_2.png" /&gt; This error occurs as BDC Meta Man uses Oracle Data Provider for .NET (ODP.NET) in order to connect to Oracle database and you don’t have it installed on the machine. So you should just have ODP.NET installed on the machine where BDC Meta Man runs. In order to do that you should install Oracle Database 11g Release 2 Client (11.2.0.1.0) for Microsoft Windows (32-bit). It can be found here &lt;a href="http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-win32soft-098987.html" rel="nofollow"&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-win32soft-098987.html&lt;/font&gt;&lt;/u&gt;&lt;/a&gt;       &lt;br /&gt;Please ensure you select the 'Administrator' type of installation when you install Oracle client.&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/9b9e10875c85_12E93/InstallationType_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Select the 'Administrator' type of installation when you install Oracle clients." border="0" alt="Select the 'Administrator' type of installation when you install Oracle clients." src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/9b9e10875c85_12E93/InstallationType_thumb.png" width="244" height="170" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;Dmitry Kaloshin/&amp;gt;&lt;/p&gt;&lt;img src="http://lightningtools.com/blog/aggbug/290.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Lightning Tools</dc:creator>
            <guid>http://lightningtools.com/blog/archive/2011/07/25/bdc-meta-man-and-quotthe-type-initializer-for-oracle.dataaccess.client.oracleconnection-threw.aspx</guid>
            <pubDate>Mon, 25 Jul 2011 07:20:46 GMT</pubDate>
            <wfw:comment>http://lightningtools.com/blog/comments/290.aspx</wfw:comment>
            <comments>http://lightningtools.com/blog/archive/2011/07/25/bdc-meta-man-and-quotthe-type-initializer-for-oracle.dataaccess.client.oracleconnection-threw.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://lightningtools.com/blog/comments/commentRss/290.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Social Squared Ideas&amp;ndash;Getting Started</title>
            <link>http://lightningtools.com/blog/archive/2011/03/07/social-squared-ideasndashgetting-started.aspx</link>
            <description>&lt;p&gt;This simple walkthrough will get you well on your way to adding, voting and commenting on the Social Squared Ideas Web Part.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Social-Squared-IdeasGetting-Started_AD0D/image_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto; padding-top: 0px" title="Social Squared Ideas" border="0" alt="Social Squared Ideas" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Social-Squared-IdeasGetting-Started_AD0D/image_thumb.png" width="216" height="240" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Download the beta here: &lt;/strong&gt;&lt;a href="http://www.lightningtools.com/pages/downloads/socialsquared-ideas.aspx" target="_blank"&gt;&lt;strong&gt;Social Squared Ideas&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;  &lt;h3&gt;Adding a New Idea:&lt;/h3&gt;  &lt;ol&gt;   &lt;li&gt;Click on the ‘Add New Idea’ Icon &lt;/li&gt;    &lt;li&gt;Add a Title and a Description for the new Idea      &lt;br /&gt;      &lt;br /&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Social-Squared-IdeasGetting-Started_AD0D/image_4.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Adding New Idea to Social Squared Ideas Web Part" border="0" alt="Adding New Idea to Social Squared Ideas Web Part" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Social-Squared-IdeasGetting-Started_AD0D/image_thumb_1.png" width="175" height="240" /&gt;&lt;/a&gt;       &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Click ‘Submit’ &lt;/li&gt;    &lt;li&gt;You will see the New Idea as at the top of the Latest Ideas List      &lt;br /&gt;      &lt;br /&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Social-Squared-IdeasGetting-Started_AD0D/image_6.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Social Squared Ideas Web Part New Idea Added" border="0" alt="Social Squared Ideas Web Part New Idea Added" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Social-Squared-IdeasGetting-Started_AD0D/image_thumb_2.png" width="194" height="240" /&gt;&lt;/a&gt;       &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;The Idea will automatically have the vote of the person who submitted it &lt;/li&gt; &lt;/ol&gt;  &lt;h3&gt;Vote for an Idea&lt;/h3&gt;  &lt;ol&gt;   &lt;li&gt;Click on an Idea’s Title, this will show you the details of the Idea      &lt;br /&gt;      &lt;br /&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Social-Squared-IdeasGetting-Started_AD0D/image_8.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Social Squared Ideas Web Part Viewing an Idea" border="0" alt="Social Squared Ideas Web Part Viewing an Idea" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Social-Squared-IdeasGetting-Started_AD0D/image_thumb_3.png" width="176" height="240" /&gt;&lt;/a&gt;       &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;The Orange arrow indicates that we have voted for the idea, if we click on the arrow again we will cancel the current vote, We can then down-vote the idea.      &lt;br /&gt;      &lt;br /&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Social-Squared-IdeasGetting-Started_AD0D/image_10.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Social Squared Ideas Web Part Down Voted Idea" border="0" alt="Social Squared Ideas Web Part Down Voted Idea" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Social-Squared-IdeasGetting-Started_AD0D/image_thumb_4.png" width="176" height="240" /&gt;&lt;/a&gt;       &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;We can see the score is now at –1. &lt;/li&gt; &lt;/ol&gt;  &lt;h3&gt;Adding a Comment&lt;/h3&gt;  &lt;ol&gt;   &lt;li&gt;Click on an Idea from the Overview &lt;/li&gt;    &lt;li&gt;Enter your Comment into the Textbox      &lt;br /&gt;      &lt;br /&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Social-Squared-IdeasGetting-Started_AD0D/image_12.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Social Squared Ideas Web Part adding a comment" border="0" alt="Social Squared Ideas Web Part adding a comment" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Social-Squared-IdeasGetting-Started_AD0D/image_thumb_5.png" width="176" height="240" /&gt;&lt;/a&gt;       &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Click ‘Submit Comment’ &lt;/li&gt;    &lt;li&gt;The comment will appear with the idea      &lt;br /&gt;      &lt;br /&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Social-Squared-IdeasGetting-Started_AD0D/image_16.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Social Squared Ideas Web Part Comment is added" border="0" alt="Social Squared Ideas Web Part Comment is added" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Social-Squared-IdeasGetting-Started_AD0D/image_thumb_7.png" width="135" height="240" /&gt;&lt;/a&gt;       &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;The overview will also show there is a comment on the idea      &lt;br /&gt;      &lt;br /&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Social-Squared-IdeasGetting-Started_AD0D/image_18.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Social Squared Ideas Web Part with Comment Count" border="0" alt="Social Squared Ideas Web Part with Comment Count" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Social-Squared-IdeasGetting-Started_AD0D/image_thumb_8.png" width="240" height="112" /&gt;&lt;/a&gt; &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://twitter.com/phillduffy"&gt;&amp;lt;Phill /&amp;gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://lightningtools.com/blog/aggbug/265.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Lightning Tools</dc:creator>
            <guid>http://lightningtools.com/blog/archive/2011/03/07/social-squared-ideasndashgetting-started.aspx</guid>
            <pubDate>Mon, 07 Mar 2011 16:26:03 GMT</pubDate>
            <wfw:comment>http://lightningtools.com/blog/comments/265.aspx</wfw:comment>
            <comments>http://lightningtools.com/blog/archive/2011/03/07/social-squared-ideasndashgetting-started.aspx#feedback</comments>
            <wfw:commentRss>http://lightningtools.com/blog/comments/commentRss/265.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Social Squared Ideas&amp;ndash;Installation Guide</title>
            <link>http://lightningtools.com/blog/archive/2011/03/07/social-squared-ideasndashinstallation-guide.aspx</link>
            <description>&lt;p&gt;Social Squared Idea Web Part is a new Web Part from Lightning Tools for SharePoint 2010 and SharePoint 2007 which allows you and your end users to submit ideas, vote and comment on them. This new Web Part is part of the Social Squared family and provides a fantastic way to engage with your users, increase SharePoint adoption and allow users to fully immerse themselves with SharePoint.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Download the beta here: &lt;/strong&gt;&lt;a href="http://www.lightningtools.com/pages/downloads/socialsquared-ideas.aspx" target="_blank"&gt;&lt;strong&gt;Social Squared Ideas&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;  &lt;h3&gt;Prerequisites&lt;/h3&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://www.lightningtools.com/pages/downloads/socialsquared-ideas.aspx" target="_blank"&gt;Social Squared Ideas&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;Social Squared Forums &lt;/li&gt;    &lt;li&gt;Microsoft Sql Server &lt;/li&gt;    &lt;li&gt;SharePoint 2007 or SharePoint 2010 &lt;/li&gt;    &lt;li&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;h3&gt;Installation&lt;/h3&gt;  &lt;p&gt;Download the Social Squared Ideas Web Part from here and extract the zip file.&lt;/p&gt;  &lt;h4&gt;Microsoft Sql Server&lt;/h4&gt;  &lt;p&gt;Run the SocialSquaredIdeas.sql against your Social Squared Database to create the relevant tables for Social Squared Ideas. &lt;/p&gt;  &lt;p&gt;The tables added are:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;IdeaComments &lt;/li&gt;    &lt;li&gt;IdeaVotes &lt;/li&gt;    &lt;li&gt;Ideas &lt;/li&gt;    &lt;li&gt;Users (Shared with Social Squared Forums) &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt; &lt;/p&gt;  &lt;h4&gt;SharePoint&lt;/h4&gt;  &lt;p&gt; &lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Deploy the ‘SocialSquared.SocialSquaredIdeas.wsp’ and activate the solution &lt;/li&gt;    &lt;li&gt;Activate the Social Squared Ideas Feature on your Site Collection      &lt;br /&gt;      &lt;br /&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/10915e37f73a_9A50/SNAGHTMLa9078de.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="SNAGHTMLa9078de" border="0" alt="SNAGHTMLa9078de" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/10915e37f73a_9A50/SNAGHTMLa9078de_thumb.png" width="360" height="87" /&gt;&lt;/a&gt;       &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Add the Social Squared Idea Web Part to a Web Part page where Social Squared Forums is currently used. It is in the Lightning Tools Web Part category, the Web Part is called ‘Social Squared Ideas Web Part’      &lt;br /&gt;      &lt;br /&gt; &lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/10915e37f73a_9A50/image_10.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="ssi" border="0" alt="Social Squared Ideas Web Part" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/10915e37f73a_9A50/image_thumb_4.png" width="240" height="146" /&gt;&lt;/a&gt;       &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;When the Web Part is first added you will need to add your connection string to your Social Squared Database, click the link to open the Tool Pane      &lt;br /&gt;      &lt;br /&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/10915e37f73a_9A50/image_4.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/10915e37f73a_9A50/image_thumb_1.png" width="240" height="16" /&gt;&lt;/a&gt;       &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Enter your connection string, ie:      &lt;br /&gt;      &lt;br /&gt;Data Source=.\sqlserver;Initial Catalog=SocialSquared;User Id=forumAccount;Password=password;      &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;Press OK on the Tool Pane     &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;The Web Part is now ready to use. &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;&lt;a href="http://twitter.com/phillduffy"&gt;&amp;lt;Phill /&amp;gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://lightningtools.com/blog/aggbug/264.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Lightning Tools</dc:creator>
            <guid>http://lightningtools.com/blog/archive/2011/03/07/social-squared-ideasndashinstallation-guide.aspx</guid>
            <pubDate>Mon, 07 Mar 2011 16:17:06 GMT</pubDate>
            <wfw:comment>http://lightningtools.com/blog/comments/264.aspx</wfw:comment>
            <comments>http://lightningtools.com/blog/archive/2011/03/07/social-squared-ideasndashinstallation-guide.aspx#feedback</comments>
            <wfw:commentRss>http://lightningtools.com/blog/comments/commentRss/264.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Input string was not in a correct format&amp;ndash;BCS Errors</title>
            <link>http://lightningtools.com/blog/archive/2011/01/28/input-string-was-not-in-a-correct-formatndashbcs-errors.aspx</link>
            <description>&lt;p&gt;We are going to investigate the following issue in this blog post&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font color="#ff0000"&gt;Exception handed to HandleRuntimeException.HandleException System.ArgumentException: Input string was not in a correct format.Couldn't store &amp;lt;Veyron&amp;gt; in Model Column.  Expected type is Int32. ---&amp;gt; System.FormatException: Input string was not in a correct format.    &lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Right, what do we have this time…&lt;/p&gt;  &lt;p&gt;We can see there is an error with the ‘Model’ column, it looks like we tried to pass in the value of “Veryon” but SharePoint was expecting an Int32. Lets get all CSI:SharePoint ….&lt;/p&gt;  &lt;p&gt;If you have read any of the other BCS Error blog posts you hopefully would have learnt that SharePoint has come to expect an Int32 because we have a TypeDescriptor telling it that the ‘Model’ TypeDescriptor is of type Int32, lets have a look.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/ec7b7148bc43_90E2/image_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="BDC Explorer" border="0" alt="BDC Explorer" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/ec7b7148bc43_90E2/image_thumb.png" width="154" height="240" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;ahh yes, We can see the offending value. Lets check our SupercarEntity class and see what type it should be set to.&lt;/p&gt;  &lt;pre class="code"&gt;&lt;span style="color: blue"&gt;namespace &lt;/span&gt;&lt;span style="color: #00008b"&gt;LightningTools&lt;/span&gt;.&lt;span style="color: #00008b"&gt;TheTestBcsModel&lt;/span&gt;.&lt;span style="color: #00008b"&gt;BdcModel1
&lt;/span&gt;{
    &lt;span style="color: blue"&gt;public class &lt;/span&gt;&lt;span style="color: #00008b"&gt;SupercarEntity
    &lt;/span&gt;{
        &lt;span style="color: blue"&gt;public int &lt;/span&gt;&lt;span style="color: purple"&gt;CarId &lt;/span&gt;{ &lt;span style="color: #008b8b"&gt;get&lt;/span&gt;; &lt;span style="color: #008b8b"&gt;set&lt;/span&gt;; }
        &lt;span style="color: blue"&gt;public string &lt;/span&gt;&lt;span style="color: purple"&gt;Manufacturer &lt;/span&gt;{ &lt;span style="color: #008b8b"&gt;get&lt;/span&gt;; &lt;span style="color: #008b8b"&gt;set&lt;/span&gt;; }
        &lt;span style="color: blue"&gt;public string &lt;/span&gt;&lt;span style="color: purple"&gt;Model &lt;/span&gt;{ &lt;span style="color: #008b8b"&gt;get&lt;/span&gt;; &lt;span style="color: #008b8b"&gt;set&lt;/span&gt;; }
        &lt;span style="color: blue"&gt;public uint &lt;/span&gt;&lt;span style="color: purple"&gt;TopSpeed &lt;/span&gt;{ &lt;span style="color: #008b8b"&gt;get&lt;/span&gt;; &lt;span style="color: #008b8b"&gt;set&lt;/span&gt;; }
        &lt;span style="color: blue"&gt;public &lt;/span&gt;&lt;span style="color: #00008b"&gt;TimeSpan &lt;/span&gt;&lt;span style="color: purple"&gt;ZeroToSixtyTime &lt;/span&gt;{ &lt;span style="color: #008b8b"&gt;get&lt;/span&gt;; &lt;span style="color: #008b8b"&gt;set&lt;/span&gt;; }
        &lt;span style="color: blue"&gt;public uint &lt;/span&gt;&lt;span style="color: purple"&gt;HorsePower &lt;/span&gt;{ &lt;span style="color: #008b8b"&gt;get&lt;/span&gt;; &lt;span style="color: #008b8b"&gt;set&lt;/span&gt;; }
        &lt;span style="color: blue"&gt;public decimal &lt;/span&gt;&lt;span style="color: purple"&gt;Price &lt;/span&gt;{ &lt;span style="color: #008b8b"&gt;get&lt;/span&gt;; &lt;span style="color: #008b8b"&gt;set&lt;/span&gt;; }
    }
}&lt;/pre&gt;

&lt;p&gt;In the above code we can see that ‘Model’ is in fact a ‘string’.&lt;/p&gt;

&lt;p&gt;So what’s happening here is that SharePoint, when rendering the Web Part, is getting a SupercarEntity passed to it and it’s then trying to convert the ‘Model’ name (in our example “Veyron”) into an Int32 and it’s failing.&lt;/p&gt;

&lt;h3&gt;How to Fix&lt;/h3&gt;

&lt;p&gt;Select the TypeDescriptor in the BDC Explorer (as above) and change it’s type to ‘System.String’ to match the ‘Model’ property type in our C# code.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/ec7b7148bc43_90E2/image_4.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="TypeDescriptor Properties" border="0" alt="TypeDescriptor Properties" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/ec7b7148bc43_90E2/image_thumb_1.png" width="240" height="175" /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Deploy.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/ec7b7148bc43_90E2/image_6.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="BCS Data List Web Part with Data" border="0" alt="BCS Data List Web Part with Data" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/ec7b7148bc43_90E2/image_thumb_2.png" width="240" height="81" /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Rejoice.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://twitter.com/phillduffy"&gt;&amp;lt;Phill /&amp;gt;&lt;/a&gt;&lt;/p&gt;

&lt;table style="width: 100%" bgcolor="#517bbe"&gt;&lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style="width: auto" class="auto-style1" width="230"&gt;&lt;font color="#ffffff" size="2"&gt;Tired of getting BCS errors? Why not try...&lt;/font&gt;&lt;/td&gt;

      &lt;td style="width: 367px" class="auto-style2" width="294"&gt;&lt;strong&gt;&lt;a href="http://www.lightningtools.com/bcs/bcs-meta-man.aspx" target="_blank"&gt;&lt;span class="auto-style3"&gt;&lt;font color="#ffffff" size="4"&gt;BCS Meta Man&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/td&gt;
    &lt;/tr&gt;

    &lt;tr&gt;
      &lt;td style="width: 246px" class="auto-style1" width="230"&gt;&lt;font color="#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;

      &lt;td style="width: 367px" width="294"&gt;&lt;span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium 'Times New Roman'; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"&gt;&lt;a href="http://www.lightningtools.com/bcs/bcs-meta-man.aspx" target="_blank"&gt;&lt;span class="auto-style1"&gt;
              &lt;p&gt;&lt;font color="#ffffff" size="2" face="Arial"&gt;BCS Meta Man provides the ease of use of a drag and drop interface with the power of Visual Studio. It can save you days in time by generating the code required by SharePoint 2010 to read and write back to your External Systems.&lt;/font&gt;&lt;/p&gt;
            &lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;&lt;/table&gt;&lt;img src="http://lightningtools.com/blog/aggbug/254.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Lightning Tools</dc:creator>
            <guid>http://lightningtools.com/blog/archive/2011/01/28/input-string-was-not-in-a-correct-formatndashbcs-errors.aspx</guid>
            <pubDate>Fri, 28 Jan 2011 10:45:34 GMT</pubDate>
            <wfw:comment>http://lightningtools.com/blog/comments/254.aspx</wfw:comment>
            <comments>http://lightningtools.com/blog/archive/2011/01/28/input-string-was-not-in-a-correct-formatndashbcs-errors.aspx#feedback</comments>
            <wfw:commentRss>http://lightningtools.com/blog/comments/commentRss/254.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Cannot find Property with name 'x' on the parent object&amp;ndash;BCS Errors</title>
            <link>http://lightningtools.com/blog/archive/2011/01/26/cannot-find-property-with-name-x-on-the-parent-objectndashbcs.aspx</link>
            <description>&lt;p&gt;We are going to investigate the following Issue in this blog post&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font color="#ff0000"&gt;Exception handed to HandleRuntimeException.HandleException Microsoft.BusinessData.MetadataModel.InvalidMetadataObjectException: Cannot find Property with name 'HP' on the parent object. The parent object may be returned by the LobSystem (External System) or it is created to be sent to LobSystem as input. This Property is referred to by child TypeDescriptor with Name 'HP' and Id '11284' on Parameter with Name 'supercarsList' on Method with Name 'GetAllSupercars' on Entity (External Content Type) with Name 'Supercar' in Namespace 'LightningTools.TheTestBcsModel.BdcModel1'.&lt;/font&gt;   &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;a href="#fix"&gt;Click here, If you want to skip straight to the fix&lt;/a&gt;, otherwise, read on my friend, read on….&lt;/p&gt;  &lt;p&gt;OK, lets have a look at this error. We can see that we have an issue with a missing Property. It mentions that this Property is referred to by a TypeDescriptor in our ‘GetAllSupercars’ Method. &lt;/p&gt;  &lt;p&gt;If we have a look in the BDC Explorer we can see our TypeDescriptors under the GetAllSupercars method, so somewhere here is where our problem lies, the error says it’s the TypeDescriptor called ‘HP’ which is causing our problem.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/96f21d96fa0c_945A/image_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="BDC Explorer showing troublesome TypeDescriptor" border="0" alt="BDC Explorer showing troublesome TypeDescriptor" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/96f21d96fa0c_945A/image_thumb.png" width="229" height="240" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;OK, We know there is a property which is incorrect, lets start off by looking at what our' ‘GetAllSupercars’ Method is returning&lt;/p&gt;  &lt;p&gt;If we look at the picture above, look underneath the ‘GetAllSupercars’ method we can see that ‘supercarsList’ is a Parameter, in our case it’s a return parameter (Finder Methods return data) , next down the tree we have ‘SupercarsList’ this is telling SharePoint that we are bringing back a collection of items ( a collection of our Supercar class), it’s a TypeDescriptor set as IsCollection = True and it’s type is&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;System.Collections.Generic.IEnumerable`1[[LightningTools.TheTestBcsModel.BdcModel1.SupercarEntity, BdcModel1]]&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Again we shall break this down.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;System.Collections.Generic.IEnumerable`1[[#CLASSNAME#, #MODELNAMESPACE#]]&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;so we have an Enumerable collection of the ‘SupercarEntity’ class which exists in the ‘BcsModel1’ namespace&lt;/p&gt;  &lt;p&gt;To view this information click on ‘SupercarsList’ in the BCS Explorer and view the details in the properties window&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/96f21d96fa0c_945A/image_4.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="TypeDescriptor Properties Tool Pane" border="0" alt="TypeDescriptor Properties Tool Pane" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/96f21d96fa0c_945A/image_thumb_1.png" width="240" height="229" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;and under ‘SupercarsList’ we have ‘Supercar’ we are now describing what each individual Supercar in the ‘SupercarsList’ looks like. If we click on it in the BDC Explorer again we can see the properties are slightly different, we are no longer talking about a collection because we are talking about just one Supercar&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/96f21d96fa0c_945A/image_6.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="TypeDescriptor Properties Tool Pane" border="0" alt="TypeDescriptor Properties Tool Pane" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/96f21d96fa0c_945A/image_thumb_2.png" width="240" height="112" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;OK. Just to recap&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/96f21d96fa0c_945A/image_10.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Explaining components of BDC Explorer" border="0" alt="Explaining components of BDC Explorer" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/96f21d96fa0c_945A/image_thumb_4.png" width="229" height="240" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;We have a Return Parameter &lt;/li&gt;    &lt;li&gt;We have a collection of Supercars &lt;/li&gt;    &lt;li&gt;We have a Supercar &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;Now, under Supercar we are telling SharePoint what TypeDescriptors make up a Supercar.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/96f21d96fa0c_945A/image_8.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="TypeDescriptors of our Supercar External Content Type" border="0" alt="TypeDescriptors of our Supercar External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/96f21d96fa0c_945A/image_thumb_3.png" width="142" height="127" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Here we can see we have CarId, HP, Manufacturer, Model, Price, TopSpeed and ZerToSixtyTime. &lt;/p&gt;  &lt;p&gt;We know from the ‘Supercar’ TypeDescriptor that we have told SharePoint that it’s Type is of one of our ‘SupercarEntity’ objects, it therefore makes sense that these TypeDescriptors match to each Property within the SupercarEntity class. When SharePoint calls our BCS Method it will hit our C# code, it will create a collection of our SupercarEntity objects and return them for rendering to the browser, SharePoint needs to know what these Properties are and how to handle them, this is why create TypeDescriptors for each property.&lt;/p&gt;  &lt;p&gt;Lets have a look at our ‘SupercarEntity’ class&lt;/p&gt;  &lt;pre class="code"&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;&lt;span style="color: #00008b"&gt;System&lt;/span&gt;;

&lt;span style="color: blue"&gt;namespace &lt;/span&gt;&lt;span style="color: #00008b"&gt;LightningTools&lt;/span&gt;.&lt;span style="color: #00008b"&gt;TheTestBcsModel&lt;/span&gt;.&lt;span style="color: #00008b"&gt;BdcModel1
&lt;/span&gt;{
    &lt;span style="color: blue"&gt;public class &lt;/span&gt;&lt;span style="color: #00008b"&gt;SupercarEntity
    &lt;/span&gt;{
        &lt;span style="color: blue"&gt;public int &lt;/span&gt;&lt;span style="color: purple"&gt;CarId &lt;/span&gt;{ &lt;span style="color: #008b8b"&gt;get&lt;/span&gt;; &lt;span style="color: #008b8b"&gt;set&lt;/span&gt;; }
        &lt;span style="color: blue"&gt;public string &lt;/span&gt;&lt;span style="color: purple"&gt;Manufacturer &lt;/span&gt;{ &lt;span style="color: #008b8b"&gt;get&lt;/span&gt;; &lt;span style="color: #008b8b"&gt;set&lt;/span&gt;; }
        &lt;span style="color: blue"&gt;public string &lt;/span&gt;&lt;span style="color: purple"&gt;Model &lt;/span&gt;{ &lt;span style="color: #008b8b"&gt;get&lt;/span&gt;; &lt;span style="color: #008b8b"&gt;set&lt;/span&gt;; }
        &lt;span style="color: blue"&gt;public uint &lt;/span&gt;&lt;span style="color: purple"&gt;TopSpeed &lt;/span&gt;{ &lt;span style="color: #008b8b"&gt;get&lt;/span&gt;; &lt;span style="color: #008b8b"&gt;set&lt;/span&gt;; }
        &lt;span style="color: blue"&gt;public &lt;/span&gt;&lt;span style="color: #00008b"&gt;TimeSpan &lt;/span&gt;&lt;span style="color: purple"&gt;ZeroToSixtyTime &lt;/span&gt;{ &lt;span style="color: #008b8b"&gt;get&lt;/span&gt;; &lt;span style="color: #008b8b"&gt;set&lt;/span&gt;; }
        &lt;span style="color: blue"&gt;public uint &lt;/span&gt;&lt;span style="color: purple"&gt;HorsePower &lt;/span&gt;{ &lt;span style="color: #008b8b"&gt;get&lt;/span&gt;; &lt;span style="color: #008b8b"&gt;set&lt;/span&gt;; }
        &lt;span style="color: blue"&gt;public decimal &lt;/span&gt;&lt;span style="color: purple"&gt;Price &lt;/span&gt;{ &lt;span style="color: #008b8b"&gt;get&lt;/span&gt;; &lt;span style="color: #008b8b"&gt;set&lt;/span&gt;; }
    }
}&lt;/pre&gt;

&lt;p&gt;if you’re quick on the ball you might notice something here…… got it yet?….. go on then I’ll tell you, HP doesn’t exist as a Property, in our code it is called ‘HorsePower’. Now the error message makes a bit more sense.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;font color="#ff0000"&gt;Cannot find Property with name 'HP' on the parent object.&lt;/font&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;We have defined a TypeDescriptor called HP which tells SharePoint to expect a Property called ‘HP’ but it doesn’t exist. We need to fix this.&lt;/p&gt;

&lt;h3&gt;&lt;a name="fix"&gt;How to fix&lt;/a&gt;&lt;/h3&gt;

&lt;h4&gt;Option 1  - Change the TypeDescriptor Name&lt;/h4&gt;

&lt;p&gt;This is a fairly simple one, click on the ‘HP’ TypeDescriptor in the BDC Explorer and then view its properties&lt;/p&gt;

&lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/96f21d96fa0c_945A/image_12.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="BDC Explorer - Updating Name property" border="0" alt="BDC Explorer - Updating Name property" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/96f21d96fa0c_945A/image_thumb_5.png" width="139" height="240" /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If we change the ‘Name’ from HP –&amp;gt; HorsePower, matching the property in our C# class, it should work. Lets deploy!&lt;/p&gt;

&lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/96f21d96fa0c_945A/image_14.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title=" External Content Type Data in Business Data Web Part" border="0" alt="External Content Type Data in Business Data Web Part" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/96f21d96fa0c_945A/image_thumb_6.png" width="240" height="66" /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Success!&lt;/p&gt;

&lt;h5&gt;Bonus advice:&lt;/h5&gt;

&lt;p&gt;If you did still want the name to be displayed as HP instead of HorsePower you can set the properties as this&lt;/p&gt;

&lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/96f21d96fa0c_945A/image_16.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="TypeDescriptor Properties Tool Pane Window" border="0" alt="TypeDescriptor Properties Tool Pane Window" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/96f21d96fa0c_945A/image_thumb_7.png" width="240" height="165" /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Notice that the TypeDescriptors name is still matching the name in the class but we have changed the Default Display Name to the value we want to use, check out how this looks now.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/96f21d96fa0c_945A/image_18.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type Data in Business Data Web Part with updated column name" border="0" alt="External Content Type Data in Business Data Web Part with updated column name" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/96f21d96fa0c_945A/image_thumb_8.png" width="240" height="59" /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;Option 2 – Change the Code Property&lt;/h4&gt;

&lt;p&gt;Open up the ‘SupercarEntity’ class and rename the HorsePower property to HP&lt;/p&gt;

&lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/96f21d96fa0c_945A/image_20.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Updated code for our External Content Type" border="0" alt="Updated code for our External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/96f21d96fa0c_945A/image_thumb_9.png" width="240" height="148" /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;By doing this it means we will also need to change any method which used the old method name&lt;/p&gt;

&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;var &lt;/span&gt;supercarEntities = &lt;span style="color: blue"&gt;from &lt;/span&gt;car &lt;span style="color: blue"&gt;in &lt;/span&gt;externalSystemSupercars
           &lt;span style="color: blue"&gt;select new &lt;/span&gt;&lt;span style="color: #00008b"&gt;SupercarEntity&lt;/span&gt;()
           {
               &lt;span style="color: purple"&gt;CarId &lt;/span&gt;= car.&lt;span style="color: purple"&gt;Id&lt;/span&gt;,
              &lt;font style="background-color: #ffff00"&gt; &lt;span style="color: purple"&gt;HP &lt;/span&gt;= car.&lt;span style="color: purple"&gt;HorsePower&lt;/span&gt;,&lt;/font&gt;
               &lt;span style="color: purple"&gt;Manufacturer &lt;/span&gt;= car.&lt;span style="color: purple"&gt;Manufacturer&lt;/span&gt;,
               &lt;span style="color: purple"&gt;Model &lt;/span&gt;= car.&lt;span style="color: purple"&gt;Model&lt;/span&gt;,
               &lt;span style="color: purple"&gt;Price &lt;/span&gt;= car.&lt;span style="color: purple"&gt;BasePrice&lt;/span&gt;,
               &lt;span style="color: purple"&gt;TopSpeed &lt;/span&gt;= car.&lt;span style="color: purple"&gt;TopSpeed&lt;/span&gt;,
               &lt;span style="color: purple"&gt;ZeroToSixtyTime &lt;/span&gt;= car.&lt;span style="color: purple"&gt;ZeroToSixtyTime
           &lt;/span&gt;};
&lt;font face="Arial"&gt;&lt;/font&gt;&lt;/pre&gt;

&lt;pre class="code"&gt;&lt;font face="Arial"&gt;Once all the methods are updated and the code builds OK, deploy!&lt;/font&gt;&lt;/pre&gt;

&lt;pre class="code"&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/96f21d96fa0c_945A/image_22.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type data in Business Data Web Part with updated TypeDescriptor Name" border="0" alt="External Content Type data in Business Data Web Part with updated TypeDescriptor Name" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/96f21d96fa0c_945A/image_thumb_10.png" width="240" height="50" /&gt;&lt;/a&gt;&lt;/pre&gt;

&lt;pre class="code"&gt; &lt;/pre&gt;

&lt;pre class="code"&gt;&lt;a href="http://twitter.com/phillduffy" target="_blank"&gt;&lt;font size="2" face="Arial"&gt;&amp;lt;Phill /&amp;gt;&lt;/font&gt;&lt;/a&gt;&lt;/pre&gt;

&lt;p&gt;
  &lt;/p&gt;&lt;table style="width: 100%" bgcolor="#517bbe"&gt;&lt;tbody&gt;
      &lt;tr&gt;
        &lt;td style="width: auto" class="auto-style1" width="230"&gt;&lt;font color="#ffffff" size="2"&gt;Tired of getting BCS errors? Why not try...&lt;/font&gt;&lt;/td&gt;

        &lt;td style="width: 367px" class="auto-style2" width="294"&gt;&lt;strong&gt;&lt;a href="http://www.lightningtools.com/bcs/bcs-meta-man.aspx" target="_blank"&gt;&lt;span class="auto-style3"&gt;&lt;font color="#ffffff" size="4"&gt;BCS Meta Man&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/td&gt;
      &lt;/tr&gt;

      &lt;tr&gt;
        &lt;td style="width: 246px" class="auto-style1" width="230"&gt;&lt;font color="#ffffff"&gt;&lt;/font&gt;&lt;/td&gt;

        &lt;td style="width: 367px" width="294"&gt;&lt;span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium 'Times New Roman'; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"&gt;&lt;a href="http://www.lightningtools.com/bcs/bcs-meta-man.aspx" target="_blank"&gt;&lt;span class="auto-style1"&gt;
                &lt;p&gt;&lt;font color="#ffffff" size="2" face="Arial"&gt;BCS Meta Man provides the ease of use of a drag and drop interface with the power of Visual Studio. It can save you days in time by generating the code required by SharePoint 2010 to read and write back to your External Systems.&lt;/font&gt;&lt;/p&gt;
              &lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/tbody&gt;&lt;/table&gt;&lt;img src="http://lightningtools.com/blog/aggbug/252.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Lightning Tools</dc:creator>
            <guid>http://lightningtools.com/blog/archive/2011/01/26/cannot-find-property-with-name-x-on-the-parent-objectndashbcs.aspx</guid>
            <pubDate>Wed, 26 Jan 2011 11:16:00 GMT</pubDate>
            <wfw:comment>http://lightningtools.com/blog/comments/252.aspx</wfw:comment>
            <comments>http://lightningtools.com/blog/archive/2011/01/26/cannot-find-property-with-name-x-on-the-parent-objectndashbcs.aspx#feedback</comments>
            <wfw:commentRss>http://lightningtools.com/blog/comments/commentRss/252.aspx</wfw:commentRss>
        </item>
        <item>
            <title>SharePoint Market and Lightning Tools 2007 to 2010</title>
            <link>http://lightningtools.com/blog/archive/2011/01/07/sharepoint-market-and-lightning-tools-2007-to-2010.aspx</link>
            <description>&lt;p&gt;With the aim of being a more open company and sharing data others in the SharePoint community might find interesting we've decided to publish our revenue graph each quarter to help drive the debate around the SharePoint market. We are planning to publish an update each quarter.&lt;/p&gt;  &lt;p&gt;Here's our first publication of our revenue graph which goes all the way back to August 2007 when the company was founded.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/SharePoint-Market-Lightning-Tools-2007--_910F/image_2.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/SharePoint-Market-Lightning-Tools-2007--_910F/image_thumb.png" width="644" height="386" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Some interesting points to note:&lt;/p&gt;  &lt;p&gt;Our yearly revenue growth over the first two years was around 35%. In April last year we had a big drop in revenue which we put down to SharePoint 2010 being launched in April. The number of downloads of our trial products actually went up in this period as we launched 2010 versions of our products. But it seemed people weren't as willing to invest in SharePoint 2007 quite so much, and weren't ready to spend on SharePoint 2010 yet either. Putting this together with the annual dip for summer holidays in August you can see that April to September were pretty slow months. Things have rebounded though as people are looking for new tools for SharePoint 2010, and upgrades for their 2007 products.&lt;/p&gt;  &lt;p&gt;There are certainly some regular monthly peaks and troughs. August is always very quiet due to people being away on holiday. December is always a very good month for us even though it is a month with only 3 working weeks.&lt;/p&gt;  &lt;p&gt;Overall, despite a difficult 3-4 months in 2010 we are very happy with how things are going. Now we are looking to push on in 2011 to get back to our target of 35% growth.&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;How does this graph relate to your experience of the SharePoint market over the past 3 years?&lt;/p&gt;&lt;img src="http://lightningtools.com/blog/aggbug/245.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Lightning Tools</dc:creator>
            <guid>http://lightningtools.com/blog/archive/2011/01/07/sharepoint-market-and-lightning-tools-2007-to-2010.aspx</guid>
            <pubDate>Fri, 07 Jan 2011 10:21:39 GMT</pubDate>
            <wfw:comment>http://lightningtools.com/blog/comments/245.aspx</wfw:comment>
            <comments>http://lightningtools.com/blog/archive/2011/01/07/sharepoint-market-and-lightning-tools-2007-to-2010.aspx#feedback</comments>
            <wfw:commentRss>http://lightningtools.com/blog/comments/commentRss/245.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Social Squared November Release</title>
            <link>http://lightningtools.com/blog/archive/2010/11/17/social-squared-november-release.aspx</link>
            <description>&lt;p&gt;We’re very excited to bring you the November release of &lt;a href="http://www.lightningtools.com/social-squared/default.aspx" target="_blank"&gt;Social Squared&lt;/a&gt; – version 2.0.0.1, our forum tool for SharePoint that is perfect for large scale discussion boards. We’ve got lots of big and small improvements in this release, here are a few special ones:&lt;/p&gt;  &lt;h3&gt;Forum Tools Menu&lt;/h3&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Social-Squared-November-Release_B8B6/image_2.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="Forums Tools Menu" border="0" alt="Forums Tools Menu" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Social-Squared-November-Release_B8B6/image_thumb.png" width="244" height="110" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;The Forum Tools menu appears at the top right of the Social Squared Web Part and allows your users to get easy access to certain screens. These include:   &lt;br /&gt;Edit Profile – easier access so that users can set their signature or upload their profile picture to be used in the forums.&lt;/p&gt;  &lt;p&gt;View Email Subscriptions – view all the email subscriptions that you are signed up for across the forums and topics. You can also easily delete subscriptions from this page.&lt;/p&gt;  &lt;p&gt;View Recent Activity – shows all of the topics across Social Squared that have had posting activity over the last seven days.&lt;/p&gt;  &lt;h3&gt;Database Installer&lt;/h3&gt;  &lt;p&gt;Rather than expecting you to manually run SQL scripts to create or upgrade Social Squared databases, we’ve now created a database setup program for you to use:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Social-Squared-November-Release_B8B6/image_4.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="forum database setup tool" border="0" alt="forum database setup tool" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Social-Squared-November-Release_B8B6/image_thumb_1.png" width="244" height="187" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;h3&gt;Search&lt;/h3&gt;  &lt;p&gt;We’ve had the search box within the Social Squared web part for quite some time now. This allowed you to search within topics and posts. With this latest release we create a few new stored procedures as part of the database upgrade. These stored procedures can be used to create a Business Data Catalog Entity or Business Connectivity Services External Content Type – depending on which version of SharePoint you are running. You can then setup a Content Source within SharePoint Search to crawl this Entity/ECT so that Social Squared topics and posts can appear as part of the standard SharePoint Search results. If you’d like to connect SharePoint Search and Social Squared in this way please drop us an email at &lt;a href="mailto:support@lightningtools.com"&gt;support@lightningtools.com&lt;/a&gt; and we can supply you with some further documentation.&lt;/p&gt;  &lt;h3&gt;Show Post Edit Information&lt;/h3&gt;  &lt;p&gt;When a user edits a post, a message in the bottom left of the post displays who edited it and at what time:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Social-Squared-November-Release_B8B6/image_6.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="Edit Post Text" border="0" alt="Edit Post Text" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Social-Squared-November-Release_B8B6/image_thumb_2.png" width="244" height="113" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;&lt;/p&gt;  &lt;h3&gt;More Configuration Settings&lt;/h3&gt; From customer feedback we’ve added a number of configuration options that can be changed in the Forum Settings page:  &lt;br /&gt;  &lt;p&gt;Paging values – decide how many topics or posts to appear before the forum starts paging.   &lt;br /&gt;Show search box – allows you to show or hide the search box in the top right of the forum web part&lt;/p&gt;  &lt;h3&gt;Other Stuff&lt;/h3&gt;  &lt;p&gt;There are quite a few other small changes we’ve included in this release – please take a read of the Release Notes document which is part of the download.&lt;/p&gt;  &lt;h2&gt;&lt;/h2&gt;      &lt;h3&gt;Where to get it…&lt;/h3&gt;  &lt;p&gt;You can download the Trial version of Social Squared from here:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.lightningtools.com/downloads/socialsquared-download.aspx" target="_blank"&gt;Social Squared Trial&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Or if you are already a customer get the latest version from the &lt;a href="http://www.lightningtools.com/pages/service/customerdownloads.aspx" target="_blank"&gt;Downloads&lt;/a&gt; page once you have logged in. Remember if you are upgrading to make sure you backup your Social Squared SQL database first&lt;/p&gt;  &lt;p&gt;&amp;lt;&lt;a href="http://www.twitter.com/nickswan" target="_blank"&gt;nick&lt;/a&gt;/&amp;gt;&lt;/p&gt;&lt;img src="http://lightningtools.com/blog/aggbug/229.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Lightning Tools</dc:creator>
            <guid>http://lightningtools.com/blog/archive/2010/11/17/social-squared-november-release.aspx</guid>
            <pubDate>Wed, 17 Nov 2010 14:24:03 GMT</pubDate>
            <wfw:comment>http://lightningtools.com/blog/comments/229.aspx</wfw:comment>
            <comments>http://lightningtools.com/blog/archive/2010/11/17/social-squared-november-release.aspx#feedback</comments>
            <wfw:commentRss>http://lightningtools.com/blog/comments/commentRss/229.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Export SharePoint List</title>
            <link>http://lightningtools.com/blog/archive/2010/10/28/export-sharepoint-list.aspx</link>
            <description>&lt;p&gt;SharePoint Lists are great. They are really easy to setup, customize and allow for very easy data input from your users. Sometimes however you need to get the SharePoint List data into another system so that people can work with the data with tools and knowledge they have. Although this can be achieved in a number of manual ways, having an automated way of exporting a SharePoint List is something a few of our customers have asked for. This is now something that can be achieved using the &lt;a href="http://www.lightningtools.com/lightning-data-masher.aspx" target="_blank"&gt;Lightning Data Masher&lt;/a&gt; and creating an export job.&lt;/p&gt;  &lt;p&gt;In this walk through we’ll make use of a standard contacts list within SharePoint. Your SharePoint users are editing the information in the list, but you need to get it out into a Microsoft SQL Server table so it can be used in other legacy applications. Our database table is designed as such:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Export-SharePoint-List_D3D5/image_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Database table to export list items to" border="0" alt="Database table to export list items to" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Export-SharePoint-List_D3D5/image_thumb.png" width="291" height="158" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Once you have &lt;a href="http://www.lightningtools.com/blog/archive/2010/10/26/lightning-data-masher-deployment.aspx" target="_blank"&gt;installed and deployed&lt;/a&gt; the Lightning Data Masher, browse to your SharePoint List and from the Actions menu click on ‘Create an export’ link&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Export-SharePoint-List_D3D5/image_4.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Create an Export Job from the SharePoint List" border="0" alt="Create an Export Job from the SharePoint List" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Export-SharePoint-List_D3D5/image_thumb_1.png" width="221" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Select the data source type that you want to export to, and enter the connection string. Then click on the ‘Connect to Data Source’ button.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Export-SharePoint-List_D3D5/image_6.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Set the database connection string" border="0" alt="Set the database connection string" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Export-SharePoint-List_D3D5/image_thumb_2.png" width="244" height="170" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Enter a Title and Description for your job. Make this as meaningful as possible as if you have a number of import/export jobs running in a SharePoint site it is important to be able to distinguish them.&lt;/p&gt;  &lt;p&gt;You can select to use an existing database table, or allow the &lt;a href="http://www.lightningtools.com/lightning-data-masher.aspx" target="_blank"&gt;Lightning Data Masher&lt;/a&gt; to create a new table for you the first time the export job executes. As our database table is already created we’ll use the ‘Use existing table option’&lt;/p&gt;  &lt;p&gt;Now we need to map our SharePoint List columns to our database table. Click the ‘Add Column Mapping’ button for the amount of columns you wish to map.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Export-SharePoint-List_D3D5/image_8.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Map the list columns to the database columns" border="0" alt="Map the list columns to the database columns" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Export-SharePoint-List_D3D5/image_thumb_3.png" width="314" height="216" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Finally all you need to do is set how often you’d like the export job to run. Every time it runs it will add new rows of data into the database table and update any that may have changes.&lt;/p&gt;  &lt;p&gt;Please check out our other walk through of how to &lt;a href="http://www.lightningtools.com/blog/archive/2010/10/26/import-sharepoint-list.aspx" target="_blank"&gt;Import to a SharePoint List&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;&amp;lt;&lt;a href="http://www.twitter.com/nickswan" target="_blank"&gt;nick&lt;/a&gt;/&amp;gt;&lt;/p&gt;&lt;img src="http://lightningtools.com/blog/aggbug/221.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Lightning Tools</dc:creator>
            <guid>http://lightningtools.com/blog/archive/2010/10/28/export-sharepoint-list.aspx</guid>
            <pubDate>Thu, 28 Oct 2010 14:51:52 GMT</pubDate>
            <wfw:comment>http://lightningtools.com/blog/comments/221.aspx</wfw:comment>
            <comments>http://lightningtools.com/blog/archive/2010/10/28/export-sharepoint-list.aspx#feedback</comments>
            <wfw:commentRss>http://lightningtools.com/blog/comments/commentRss/221.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Lightning Data Masher Deployment</title>
            <link>http://lightningtools.com/blog/archive/2010/10/26/lightning-data-masher-deployment.aspx</link>
            <description>&lt;p&gt;The Lightning Data Masher is a SharePoint solution that makes it really easy to get data into and out of SharePoint lists. You can find out more about it here:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.lightningtools.com/lightning-data-masher.aspx" target="_blank"&gt;Lightning Data Masher&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;You can download the Lightning Data Masher from here:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.lightningtools.com/downloads/datamasher-download.aspx" target="_blank"&gt;Lightning Data Masher Download&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Extract the zip file on your SharePoint Server and place the .wsp file onto your c: &lt;/p&gt;  &lt;p&gt;Open a command prompt and move to the directory:&lt;/p&gt;  &lt;p&gt;c:\program files\common files\microsoft shared\web server extensions\12\bin&lt;/p&gt;  &lt;p&gt;Execute the command:&lt;/p&gt;  &lt;p&gt;stsadm –o addsolution –filename “c:\lightningtools.datamasher.wsp”&lt;/p&gt;  &lt;p&gt;Please type the command yourself rather than copy and paste as this will ensure illegal ascii characters aren’t pasted in.&lt;/p&gt;  &lt;p&gt;Once the stsadm command has successfully run open up Central Administration and navigate to Operations –&amp;gt; Solution Management.&lt;/p&gt;  &lt;p&gt;Click the LightningTools.Datamasher.wsp and choose to Deploy Solution from the menu bar&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Lightning-Data-Masher-Deployment_9949/image_2.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Lightning-Data-Masher-Deployment_9949/image_thumb.png" width="365" height="105" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;From the following screen choose the web applications that you want to deploy to. You’ll need to deploy to each web application where you’d like to use the Data Masher solution.&lt;/p&gt;  &lt;p&gt;Upon successful deployment we need to activate the Timer Job Web Application Feature. Still in Central Administration click Application Management –&amp;gt; Manage Web Application Features.&lt;/p&gt;  &lt;p&gt;Ensure you have the correct web application selected in the top right corner of the view. When this is correct click the Activate button for the Lightning Tools Data Masher Job&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Lightning-Data-Masher-Deployment_9949/image_4.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Lightning-Data-Masher-Deployment_9949/image_thumb_1.png" width="413" height="142" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;We have one last thing to activate. Please browse to the SharePoint site where you want to run an import or export job and browse to Site Settings –&amp;gt; Site Features. Activate the Lightning Tools Data Masher Menu Items Feature&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Lightning-Data-Masher-Deployment_9949/image_6.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Lightning-Data-Masher-Deployment_9949/image_thumb_2.png" width="416" height="83" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;That’s it – you can now setup your first Data Masher import or export.&lt;/p&gt;  &lt;p&gt;For a walk through of how to create an import to a SharePoint list check out this blog post:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.lightningtools.com/blog/archive/2010/10/26/import-sharepoint-list.aspx" target="_blank"&gt;SharePoint List Import&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;&lt;a href="http://www.twitter.com/nickswan" target="_blank"&gt;nick&lt;/a&gt;/&amp;gt;&lt;/p&gt;&lt;img src="http://lightningtools.com/blog/aggbug/219.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Lightning Tools</dc:creator>
            <guid>http://lightningtools.com/blog/archive/2010/10/26/lightning-data-masher-deployment.aspx</guid>
            <pubDate>Tue, 26 Oct 2010 10:25:03 GMT</pubDate>
            <wfw:comment>http://lightningtools.com/blog/comments/219.aspx</wfw:comment>
            <comments>http://lightningtools.com/blog/archive/2010/10/26/lightning-data-masher-deployment.aspx#feedback</comments>
            <wfw:commentRss>http://lightningtools.com/blog/comments/commentRss/219.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>
