1
 Follower
10
 Likes

static entity - Input string was not in a correct format

Service Studio
New

Hello,


We had the following issue when referencing a new static entity in another module:

An error occurred in task 'Loading eSpace with key 'f69c72e7-9af0-41b4-a12c-c17261b8a9f0'':
Input string was not in a correct format.
Details : System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)


Root cause:

We had a static entity defined with a field "Value" of type "Integer"


The actual value however was set to 0.5, which is no integer value


The publish of this module containing the static entity went fine. Then we referenced this table in another module. Still no issue so far.

However, when publishing the module we referenced the static entity in, we got:

An error occurred in task 'Loading eSpace with key 'f69c72e7-9af0-41b4-a12c-c17261b8a9f0'':
Input string was not in a correct format.


The platform should block the publish of the initial module if the values of a static entity are not in line with the type. 

The actual error now comes several steps later in the development process making it very hard to find the root cause.

Created on 16 Oct (13 days ago)
Comments (3)

Please file a bug report for this, this is not an Idea. Thanks!

J.Ja

A support case was created for the initial issue by my customer. But before OutSystems had a look at it, I found the root cause which  I also indicated in the support case.

On my request to report this to the product team, I got the following answer:

Hence the creation of this idea.


As you also know, the guidelines from support are not always straightforward :)

Kurt -

That doesn't strike me as right at all. I will pass this on to people higher in the food chain. Thanks!

J.Ja

views
111
Followers
1