I'm running into this issue with a referenced feature service not displaying in the attribute table widget after I configure the pop-up in the web map. Below is the workflow I am following at a high level.
Once I launch the WAB application and open the attribute table, click on the tab with the layer name (it is turned on in the layer list meaning it is synced to show in attribute table), I see no data. I only get the spinning wheel signifying it is requesting the data. This lasts for a few seconds and disappears leaving me with a blank attribute table (within that tab). Looking at the chrome dev tools I get a few errors back after doing this (screenshot below).
Looking at the server logs I get the following error (screenshot below). There is another very long error that recommends increasing the SOC heap size, but I don't think that is the appropriate solution.
Here is the most confusing part of the whole thing. If I do not proceed with step 7 above, I do not run into this issue! Also, I mentioned in step 2 I am applying a definition query to this layer when I publish it. There are other services that I've published from the same dataset (different def queries of course), did step 7, and I have no issue at all.
Has anyone run into something like this? Could it be a bug? I probably need to open a support ticket with esri however, any help would very much appreciated!