I need to install modules on a DNN 8.0.4 site. I cannot, as I keep getting this error. Anyone have suggestions? See error below
Thank you,
SQL Execution resulted in following Exceptions: System.Data.SqlClient.SqlException (0x80131904): Invalid column name 'IsOrderable'. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script) ClientConnectionId:58e19235-ff82-4b6d-aa8a-4ab775854ae6 Error Number:207,State:1,Class:16 IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'dbo.[EDS_NewsOrderByColumnName]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT')) BEGIN execute dbo.sp_executesql @statement = N'CREATE FUNCTION dbo.[EDS_NewsOrderByColumnName] ( @OrderByCustomFieldID INT ) RETURNS VARCHAR(30) AS BEGIN IF @OrderByCustomFieldID IS NULL RETURN NULL; DECLARE @ControlTypeID INT; SELECT @ControlTypeID = [ControlTypeID] FROM dbo.[EasyDNNfields] WHERE CustomFieldID = @OrderByCustomFieldID AND IsOrderable = 1; IF @ControlTypeID IS NULL RETURN NULL; DECLARE @OrderByColumnName VARCHAR(30); SELECT @OrderByColumnName = CASE @ControlTypeID WHEN 1 THEN N''[Text]'' WHEN 3 THEN N''[Int]'' WHEN 4 THEN N''[Decimal]'' WHEN 5 THEN N''[Decimal]'' WHEN 6 THEN N''[Text]'' WHEN 9 THEN N''[DateTime]'' WHEN 10 THEN N''[Text]'' ELSE NULL END RETURN @OrderByColumnName; END ' END
Are you the author of this module, or did you buy it?
Looks like to me - possibly the sql script that runs when a module is installed either is not compatable with the sql server you are running, or it is flawed in some way. Look at CREATE FUNCTION dbo.[EDS_NewsOrderByColumnName], invalid column name. Maybe this already exists?
Look in zip folder for : \Providers\DataProviders\SqlDataProvider the create function should be in there. You can try running it against another test database - to see what happens.
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.