(8.10) A Skuid Model, '_TempModel_###########', requested a field...

Matt SonesMatt Sones ๐Ÿ’Ž๐Ÿ’Ž๐Ÿ’Ž
edited March 7, 2017 in Questions
Started seeing errors like this in 8.10:

A Skuid Model, '_TempModel_1464213870354', requested a Field with relationship name 'AccountId', on the Staff__c Object, but Skuid could not find a valid Field accessible through this relationship name. Please check that this Field actually exists on this Object (or on any related Objects). If it does not exist, remove it from this Model.

There isn't and never has been an AccountId field on the Staff__c object.

Affecting multiple orgs, mulitple objects. What are these "Temp Models"?

Comments

  • Barry SchnellBarry Schnell ๐Ÿ’Ž๐Ÿ’Ž
    edited February 25, 2017
    Hey Matt - Not sure why AccountId is showing up in this case since it doesn't exist on Staff__c but I believe the _TempModel_##### stuff is related to table filters that have a filter property value of "Automatic" for the "Pick Options and Conditions" property. ย It's also possible the same naming convention is used under the covers for other purposes.

    Do you have a table on the page and an automatic condition? ย If so, possibly try removing that filter and recreating it? ย Wild guess but possibly you created the table and added the filter and then changed the model of the table? ย Completely guessing of course.
  • edited March 1, 2017
    Hey Matt,

    A change in Skuid started surfacing errors from soql queries a little better. So I'm guessing this error was always happening, just not being surfaced. If you grant login access following these instructions, I'll take a look and try to see what's going on.

    http://help.skuid.com/m/getting-started/l/182412-getting-help-how-to-grant-skuid-login-rights-to-you...
  • Barry SchnellBarry Schnell ๐Ÿ’Ž๐Ÿ’Ž
    edited November 18, 2016
    Not sure what I was thinking when I typed this last night since the name _TempModel_ implies it's a model not a condition. ย 

    Automatic conditions contain "autofilter" in their name. ย I believe "TempModel" is used for automatic search on reference fields. ย Possibly on one of your reference fields there is a search field for AccountId stuck in the XML somewhere? ย 

    I'm guessing Ben will likely figure this out quickly but you could try searching your XML for AccountId and see if anything pops up.
  • Matt SonesMatt Sones ๐Ÿ’Ž๐Ÿ’Ž๐Ÿ’Ž
    edited February 10, 2017
    Thanks, Ben. Let me nail down a few places where this is happening, and I'll send access and a list.
  • Matt SonesMatt Sones ๐Ÿ’Ž๐Ÿ’Ž๐Ÿ’Ž
    edited February 10, 2017
    Just granted access and sent an email. Thanks in advance!
  • J.J. ๐Ÿ’Ž
    edited March 7, 2017
    Matt,

    I think Ben's hunch was correct: we just started surfacing model errors that happen after initial Page Load, so this was always happening, but it was being shown. I think the issue is that the Primary Staff field in your Interactions table has a Search Template which contains {{{AccountId}}}. Since you are using the Picklist renderer, I don't think you need a search template anyway, so if you remove it, does that fix the issue?
  • Matt SonesMatt Sones ๐Ÿ’Ž๐Ÿ’Ž๐Ÿ’Ž
    edited February 10, 2017
    That works. Thanks!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!