SchemaLengthValidationError: Expected length: 37 Received value of length 7

Hello,

Reading in data from a dcc.store component along with the following callback parameters:

@app.callback(
[
Output(‘memory-output-bridge’, ‘data’),
Output(‘ind_inp’, ‘value’),
Output(‘up_ind_inp’, ‘value’),
Output(‘down_ind_inp’, ‘value’),
Output(‘ind_ltv_inp’, ‘value’),
Output(‘up_ind_ltv_inp’, ‘value’),
Output(‘down_ind_ltv_inp’, ‘value’),
Output(‘apt_inp’, ‘value’),
Output(‘up_apt_inp’, ‘value’),
Output(‘down_apt_inp’, ‘value’),
Output(‘apt_ltv_inp’, ‘value’),
Output(‘up_apt_ltv_inp’, ‘value’),
Output(‘down_apt_ltv_inp’, ‘value’),
Output(‘ret_inp’, ‘value’),
Output(‘up_ret_inp’, ‘value’),
Output(‘down_ret_inp’, ‘value’),
Output(‘ret_ltv_inp’, ‘value’),
Output(‘up_ret_ltv_inp’, ‘value’),
Output(‘down_ret_ltv_inp’, ‘value’),
Output(‘off_inp’, ‘value’),
Output(‘up_off_inp’, ‘value’),
Output(‘down_off_inp’, ‘value’),
Output(‘off_ltv_inp’, ‘value’),
Output(‘up_off_ltv_inp’, ‘value’),
Output(‘down_off_ltv_inp’, ‘value’),
Output(‘hot_inp’, ‘value’),
Output(‘up_hot_inp’, ‘value’),
Output(‘down_hot_inp’, ‘value’),
Output(‘hot_ltv_inp’, ‘value’),
Output(‘up_hot_ltv_inp’, ‘value’),
Output(‘down_hot_ltv_inp’, ‘value’),
Output(‘oth_inp’, ‘value’),
Output(‘up_oth_inp’, ‘value’),
Output(‘down_oth_inp’, ‘value’),
Output(‘oth_ltv_inp’, ‘value’),
Output(‘up_oth_ltv_inp’, ‘value’),
Output(‘down_oth_ltv_inp’, ‘value’),
],
[
Input(‘btn_submit’, ‘n_clicks’),
Input(‘btn_reset’, ‘n_clicks’),
],
[
State(‘ind_inp’, ‘value’),
State(‘up_ind_inp’, ‘value’),
State(‘down_ind_inp’, ‘value’),
State(‘ind_ltv_inp’, ‘value’),
State(‘up_ind_ltv_inp’, ‘value’),
State(‘down_ind_ltv_inp’, ‘value’),
State(‘apt_inp’, ‘value’),
State(‘up_apt_inp’, ‘value’),
State(‘down_apt_inp’, ‘value’),
State(‘apt_ltv_inp’, ‘value’),
State(‘up_apt_ltv_inp’, ‘value’),
State(‘down_apt_ltv_inp’, ‘value’),
State(‘ret_inp’, ‘value’),
State(‘up_ret_inp’, ‘value’),
State(‘down_ret_inp’, ‘value’),
State(‘ret_ltv_inp’, ‘value’),
State(‘up_ret_ltv_inp’, ‘value’),
State(‘down_ret_ltv_inp’, ‘value’),
State(‘off_inp’, ‘value’),
State(‘up_off_inp’, ‘value’),
State(‘down_off_inp’, ‘value’),
State(‘off_ltv_inp’, ‘value’),
State(‘up_off_ltv_inp’, ‘value’),
State(‘down_off_ltv_inp’, ‘value’),
State(‘hot_inp’, ‘value’),
State(‘up_hot_inp’, ‘value’),
State(‘down_hot_inp’, ‘value’),
State(‘hot_ltv_inp’, ‘value’),
State(‘up_hot_ltv_inp’, ‘value’),
State(‘down_hot_ltv_inp’, ‘value’),
State(‘oth_inp’, ‘value’),
State(‘up_oth_inp’, ‘value’),
State(‘down_oth_inp’, ‘value’),
State(‘oth_ltv_inp’, ‘value’),
State(‘up_oth_ltv_inp’, ‘value’),
State(‘down_oth_ltv_inp’, ‘value’),
State(‘memory-output’, ‘data’),
],
)

and getting the following error:
dash._grouping.SchemaLengthValidationError: Schema: [<Output memory-output-bridge.data>, <Output ind_inp.value>, <Output up_ind_inp.value>, <Output down_ind_inp.value>, <Output ind_ltv_inp.value>, <Output up_ind_ltv_inp.value>, <Output down_ind_ltv_inp.value>, <Output apt_inp.value>, <Output up_apt_inp.value>, <Output down_apt_inp.value>, <Output apt_ltv_inp.value>, <Output up_apt_ltv_inp.value>, <Output down_apt_ltv_inp.value>, <Output ret_inp.value>, <Output up_ret_inp.value>, <Output down_ret_inp.value>, <Output ret_ltv_inp.value>, <Output up_ret_ltv_inp.value>, <Output down_ret_ltv_inp.value>, <Output off_inp.value>, <Output up_off_inp.value>, <Output down_off_inp.value>, <Output off_ltv_inp.value>, <Output up_off_ltv_inp.value>, <Output down_off_ltv_inp.value>, <Output hot_inp.value>, <Output up_hot_inp.value>, <Output down_hot_inp.value>, <Output hot_ltv_inp.value>, <Output up_hot_ltv_inp.value>, <Output down_hot_ltv_inp.value>, <Output oth_inp.value>, <Output up_oth_inp.value>, <Output down_oth_inp.value>, <Output oth_ltv_inp.value>, <Output up_oth_ltv_inp.value>, <Output down_oth_ltv_inp.value>]
Path: ()
Expected length: 37
Received value of length 7

I have tried a lot to remedy this error, and nothing seems to work. This callback was working fine before I added more variables to output and state.

Any help would be greatly appreciated. Thank you.

This might be a stupid question, but did you add values to the return statement of your callback function?