System Error in Inserting Online Form via wywiwyg editor

Tommy De Notarpietro asked on October 18, 2016 16:50

I used the "insert on-line form" icon in the Kentico editor on a page. It worked before, but now I remarked it's not possible anymore.

It fails when EditedDocument is set, so you can see in the error beneath.

When inserting "on-line form" with the "widgets" icon, there's no problem.

Does anybody know what's causing this (sql) error?

Server Error in '/' Application. Conversion failed when converting from a character string to uniqueidentifier. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Conversion failed when converting from a character string to uniqueidentifier.

Source Error:

Line 60:

Line 61: // Setup the current document

Line 62: EditedDocument = Node;

Line 63:

Line 64: widgetProperties.OnNotAllowed += widgetProperties_OnNotAllowed;

Source File: ...\CMS\CMSModules\Widgets\Dialogs\WidgetProperties_Properties.aspx.cs Line: 62

Stack Trace:

[SqlException (0x80131904): Conversion failed when converting from a character string to uniqueidentifier.]

Correct Answer

Tommy De Notarpietro answered on October 19, 2016 10:48

Like described on this page: https://devnet.kentico.com/articles/conversion-failed-when-converting-from-a-character-string-to-uniqueidentifier , the problem was that one field of another page type ( wich was joined together ) had a different data type.

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.