Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • macosswork 1 post 21 karma points
    Jan 09, 2024 @ 02:50
    macosswork
    0

    SkyBrud Redirect Not working in Umbraco 11 version

    Hi,

    Skybrud redirect isn't working for me. I keep getting a message that says "Cannot insert the value NULL into column" See full error below:

    Umbraco version 11.5.0 Skybrud redirect version tried 4.0.10 - 4:0.20

    The installation seems find when I log in to the backoffice as i can see the redirect tab. The problem is when i try to add a new redirect by

    • Click the redirect button
    • Add from and to url and then click Add button.

    Skybrud.Umbraco.Redirects.Exceptions.RedirectsException: Unable to insert redirect into the database. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): Cannot insert the value NULL into column 'IsRegex', table '{tableName}.dbo.SkybrudRedirects'; column does not allow nulls. INSERT fails. The statement has been terminated. at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at Microsoft.Data.SqlClient.SqlDataReader.TryConsumeMetaData() at Microsoft.Data.SqlClient.SqlDataReader.get_MetaData() at Microsoft.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at Microsoft.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean isAsync, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at Microsoft.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, TaskCompletionSource1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry, String method) at Microsoft.Data.SqlClient.SqlCommand.ExecuteScalar() at Umbraco.Cms.Infrastructure.Persistence.FaultHandling.RetryPolicy.ExecuteAction[TResult](Func`1 func) at NPoco.Database.ExecuteScalarHelper(DbCommand cmd) at NPoco.Database.InsertAsyncImp[T](PocoData pocoData, String tableName, String primaryKeyName, Boolean autoIncrement, T poco, Boolean sync) at NPoco.Database.Insert[T](String tableName, String primaryKeyName, Boolean autoIncrement, T poco) at NPoco.Database.Insert[T](T poco) at Skybrud.Umbraco.Redirects.Services.RedirectsService.AddRedirect(AddRedirectOptions options) ClientConnectionId:dcce17e8-fae9-43fa-8f5d-e2a260209057 Error Number:515,State:2,Class:16 ClientConnectionId before routing:77bc42b9-a686-4b8c-9427-2b312bef19cb Routing Destination:* --- End of inner exception stack trace --- at Skybrud.Umbraco.Redirects.Services.RedirectsService.AddRedirect(AddRedirectOptions options) at Skybrud.Umbraco.Redirects.Controllers.Api.RedirectsController.AddRedirect(JObject m)

  • Danine Noble 75 posts 330 karma points
    Jan 09, 2024 @ 19:37
    Danine Noble
    0

    Looking at some previous Github Repo reported issues, #152 appears to be a close match to what you're experiencing. They were having it on Umbraco 10, but the error message is exactly the same. With any luck the same solution will work for you.

Please Sign in or register to post replies

Write your reply to:

Draft