cancel
Showing results for 
Search instead for 
Did you mean: 

I am always getting a General Failure Exception

Former Member
0 Kudos

Hello,

I have been working on a UDO form.

Recently my code is generating "General Failure" Exceptions at parts where the code worked a couple of days ago!

My add-on was working perfectly before, and I haven't changed anything in it.

It is setting a general failure exception, when i set the String property of an EditText object, and when i set a form's visible property to true.

What could be the problem?

Thanks

Ralph

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

try this in C#

/// <summary>

/// summary

/// <para>Sets the value of a edittext. This is because of the general failure problem, when setting edittext values directly. </para>

/// </summary>

/// <param name="_editText">The editText to set the value. </param>

/// <param name="_value"The value to set.</param>

/// <returns>Returns allways true . </returns>

public bool setEditTextValue(EditText _editText, string _value)

{

try

{

_editText.Value = _value;

return true;

}

catch (Exception)

{

return true;

}

}

Have fun,

Holger

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

I think I solved this issue. The problem was because my Master Data was overloaded with Master Data Lines. When this error occured, I had 21 master data lines for my UDO.

I unregistered it and added a few lines, and it worked properly again.