2 Replies Latest reply on Jul 28, 2015 9:12 AM by whardy7

    Set Field By Name returning Error 102



      Set Field By Name returning Error 102


      I have this line:

      Set Field By Name [$$CurField ; "0"]

      But I am getting the dreaded 102 error message

      Data Viewer shows that $$CurField = Books::RetailPrice which is a valid field. Evaluate($$CurField) returns the data in Books::RetailPrice, so I know it is a valid field with valid data at the time of processing. Am I using Set Field By Name wrong?

        • 1. Re: Set Field By Name returning Error 102

          Did you post about this in another thread where MiddleValues was being used to extract the value for $$CurrField from a list of such names?

          The problem in that thread--and might be the problem here, is that middlevalues tacks an extra return on the end of the value extracted and this won't prevent evaluate from correctly evaluating but will case set field by name to fail.

          I suggested in that other thread that getValue be used instead of MiddleValues as that way you can extract the fieldname reference without getting that extra return.

          I may be completely off base as to that other thread but the presence of a trailing space or return would produce a situation where evaluate works, but set field by name does not.

          • 2. Re: Set Field By Name returning Error 102

            I did post in another thread, but it is a few days old without a response as of this morning. Maybe I'm not seeing your response somehow. Yes, it is using MiddleValues, so I will check into that and see if that is the problem. Thanks, again.