I am unable to execute "Step-by-Step #8 Exercise to Accompany Interfaces 101" because the W_W1731SAVehicleSummary interface displays the following message:
Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function a!gridField [line 335]: A grid component [label="W1731sa Maintenance"] has an invalid value for "columns". A grid column [label="Modified"] has encountered an error. Expression evaluation error at function 'user' [line 474]: [InvalidUserException]
Discussion posts and replies are publicly visible
Based on the [InvalidUserException] error, it seems that the provided username is NOT NULL, but the specified user does not exist in Appian. If the username is NULL, the error would have been "Expression evaluation error at function 'user': Null argument not allowed"
[InvalidUserException]
NOT NULL
NULL
To prevent this issue, you can use the a!usernametaken() function to verify if the username exists before calling the user() function.
a!usernametaken()
user()
Could you share the code snippet of the a!gridColumn() configuration where you're facing the issue?
a!gridColumn()
Good day Vyshnavi,I had a nearly identical issue on the same part of the Step-by-Step 8 Exercise:
My errors were on lines 355 and 483I checked the pre-generated W#SA Maintenance Record Type to see if it flagged a similar error, and it does on line 112So I am wondering if the issue is actually in the record type? I can't imagine why the expression would fail for an invalid/nonexistent user, since I am the only user in this system
Hi jacobb597597 ,
Can you check the values for the "Created By" column? Does it have only your username on it?
absolutelyhopefully this is helpfulI realize my earlier statement may have been misleading, so let me explain:I am the only true user in the system, but there are identities listed as part of the exercise in order to facilitate the learning experience; these other "people" do not actually appear as users, as far as I can tell.
Hi jacobb597597
As you are the only user and no others users mentioned in the created by column were active, I suggest you to follow the same approach that I have mentioned above.