The Column is not in the IOList - Error setting UDF on SO_Detail

SOLVED

I have a UDF on SO_Detail table I'm attempting to populate with a BOI script (written in C#).  This field is set to datetime type, the data I'm sending is being parsed from string to datetime format in the script. 

I'm sending the SalesOrderNo, user credentials, and line key needed in order to update the line.  I have 16 other fields that I set with this script with no issues, but this particular field (UDF_PAY_DATE) will not set for some reason

However I keep getting "The column is not in the IOList" as the error" when trying to set this field

For reference, here is my code:

Any help would be greatly appreciated!

Parents
  • 0

    Dates in Sage 100 are string data types (YYYYMMDD), not numeric, with a date format command but I don't have it handy...

  • 0 in reply to Kevin M

    Hi Kevin!  Thank you for your reply.  Does this also apply to UDFs?  I have several that I'm setting in this script (aside from this one) that take the format of YYYY-MM-DD and populate their respective fields with no issues.

    I will give this change a try and let you know what comes of it Slight smile

    Thank you again!

  • 0 in reply to js-goose

    I changed the format of the date in the front end (Angular) to YYYYMMDD but no luck there.  I tried setting the script to the format of `DateTime.Parse(PhasePayLines[1])).ToString("yyyyMMdd");` but that didn't work either.

    I commented out all of the other code in my script and only left the "UDF_PAY_DATE" field parts and I get an error back "The column is not in the IOList" although I clearly see the field in the data base.

    I'm at a loss lol

  • 0 in reply to js-goose

    Are you on Premium/SQL version? Even if not, the solution is most likely to go into Sage itself, change into the same Company that you did nSetComany for, click into Custom Office / Main / User Defined Field & Table Maint / select SO Sales Order Detail, Edit Fields, and on that dialog click Update. However, this pretty much requires all users be out of Sage so you may have to do it in off hours.

  • +1 in reply to js-goose
    verified answer

    I was finally able to get it to populate the field with the code below:



    Not sure why I had to do it this way but glad it was solved - thank you for all of the feedback!

Reply Children