Error adding SData feed to a SalesLogix entity

I recently ran into an issue with trying to enable an SData feed on a custom entity.  I was actually trying to expose the PLUGIN table to SData in order to get around a different bug with SData.  I was able to add Plugin as a new SalesLogix entity to the entity model.  Building the web platform with this new entity was not a problem, but when I went to enable the “Generate SData feed” on the new entity, the web platform would not build.

I would receive an error like this:

 C:Documents and SettingsAdministratorApplication DataSagePlatformOutputsdataPlugin.cs(335,22):  Cannot implicitly convert type ‘Sage.Common.Syndication.FeedAuthor’ to ‘string’.

Looking at that line in the PLugin.cs file in my build folder revealed this line of code:

        public PluginEntry()
        {
            Author = new FeedAuthor {Name = Constants.FeedAuthor};
        }

Turns out that the problem was the Plugin entity contained a property called Author.  This was confusing the sdata build which attempts to create an SData feed property also called Author.  I ended up removing the Author property from my entity definition since I did not need it, and presto!  The SData feed built successfully.

ABOUT THE AUTHOR

Kris Halsrud

Kris Halsrud is a Senior Analyst / Developer for Customer FX Corporation.

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) and Creatio (bpm'online) news and product updates!

You have Successfully Subscribed!