Unable to insert or update fields in custom local table after v15 upgrade

Hello,

We upgraded to v15.0.6 around May this year. I discovered in error in a seldom-used custom local table that we have to help capture name tag information for special events. The local table as application access through a constituent's custom tab. When either trying to edit or create a new entry for that name tag, I would receive error 8152 (String or binary data would be truncated). This seemed odd as the 4 fields (Customer name + 3 other detail fields) were all given datatypes of varchar(255) or higher.

When looking at the other columns in SSMS, I saw that there were created_by and last_updated_by fields with char(8) datatypes for each. This still seemed odd as all of our users have usernames with 8 character maximums. I decided to alter the columns in TEST as an experiment to see if this was causing the error and, sure enough, it did. However, not in the way I expected.

We are on RAMP, so I thought that since we opted to use the single signon feature in v15 that my RAMP login would populate those fields, but, instead, "tessitura_app" was the username called by the trigger associated with that local table. This was just my guess. Turned out to be correct, but for a different reason.

Has anyone else run into this with custom local tables? I'm wondering if there is a better workaround than altering the columns? Any suggestions are appreciated.

Tony ;})

Parents Reply
  • I think (can't remember now) most client activity is successfully filled in using fs_get_param_from_appname from within FS_USERNAME, but my memory is that it isn't 100%.  The main things for me were scripted operations, custom procedures, etc. where this context thing wasn't available: I added in an attempt to match the username to any of the AD names in T_METUSER and then returned the userid for those. and used RIGHT(8) instead of SUBSTRING(1,8), since the last eight letters are more likely to be identifying than the first.

Children
No Data