Random unknown value writing to DB instead of value in PM?

Certified Senior Developer

I have an issue I'm stuck on. We have this value writing to the DB for this column: 

It writes this exact value for about 75% of entries. The weirdest thing is, this value is not in the values in the PM.
This is from the script task where the values are set:


And here it is after the Write to Records node:



And you can also see here in the variables tab:


Does -2137483649 mean anything in the crazy world of data? I tried searching it but didn't return anything useful.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Look how similar your mystery value is to the "negative integer overflow" (the lowest negative integer you can store before it overflows).  The most curious thing here is that it's slightly off.  But either way, this suggests to me that the value is being set to something totally bonkers, like an accidentally blank but not null value, or something else.

    Oh wait - are you trying to save a field of type "text" to an integer field?  I expect that might have highly unexpected results (like the above).  Why can't you either make your DB field TEXT or change your RecordType field type to INTEGER?

  • 0
    Certified Senior Developer
    in reply to Mike Schmitt

    The field is text, and the DB field is varchar:

    Most of our numbers associated with this app (filing #s, etc.) have a type of text because the value for some of them can get so long that it exceeds the integer value.

Reply Children