An error occurred while executing a save: Expression evaluation error : Could not find variable 'fv!storedValues'

a!dynamicLink(
                      saveInto: {
                        a!save( 
                          local!result,
                          null
                        ),
                        a!save( 
                          local!error,
                          null
                        ),
                        a!save(
                          local!success,
                          null
                        ),
                        a!save(
                          local!displayErrorDetails,
                          false
                        ),
                        a!writeToDataStoreEntity(
                          dataStoreEntity: cons!IC_ENTITY_TASK,
                          valueToStore: ri!selectedTasks,
                          onSuccess: {
                            a!save(
                              local!success,
                              fv!storedValues
                            )
                          },
                          onError: {
                            a!save(
                              local!error,
                              fv!storedValues
                            )
                          }
                        ),
                        rule!IC_gridTaskTypeEditSelectedTaskSaves(
                          selectedTasks: ri!selectedTasks,
                          displayTask: local!displayTask,
                          auditEventCodes: ri!auditEventCodes,
                          /*currentAuditEvent: cons!IC_TEXT_R_CODE_AUDIT_EVENT_EDIT_NOTE,*/
                          currentEditField: null
                        ),
                       
                      }
                    )

 is this error because of db issue ? 

  Discussion posts and replies are publicly visible

Parents Reply Children
  • a!richTextIcon(
                        icon: "save",
                        caption: "Save",
                        link: a!dynamicLink(
                          saveInto: {
                            a!save( 
                              local!result,
                              null
                            ),
                            a!save( 
                              local!error,
                              null
                            ),
                            a!save(
                              local!success,
                              null
                            ),
                            a!save(
                              local!displayErrorDetails,
                              false
                            ),
                            a!writeToDataStoreEntity(
                              dataStoreEntity: cons!IC_ENTITY_TASK,
                              valueToStore: ri!selectedTasks,
                              onSuccess: {
                                a!save(
                                  local!success,
                                  fv!storedValues
                                )
                              },
                              onError: {
                                a!save(
                                  local!error,
                                  ri!selectedTasks
                                )
                              }
                              /*onError: {*/
                                /*a!save(*/
                                  /*local!error,*/
                                  /*fv!storedvalues*/
                                /*)*/
                              /*}*/
                            ),
                            rule!IC_gridTaskTypeEditSelectedTaskSaves(
                              selectedTasks: ri!selectedTasks,
                              displayTask: local!displayTask,
                              auditEventCodes: ri!auditEventCodes,
                              /*currentAuditEvent: cons!IC_TEXT_R_CODE_AUDIT_EVENT_EDIT_NOTE,*/
                              currentEditField: null
                            ),
                            
                          }

    This is the code which generates the error as shown in the above picture. Even the thumbs down hyperlink does'nt show any information when clicked on it.  

  • 0
    Certified Lead Developer
    in reply to Siddharth Thiagarajan

    Your revised onError statement looks reasonable (as long as you only want local!error to contain the current value of ri!tasks when an error happens, which i can't judge for you), but without the code for the thumbs down link I can't tell why it might not be working for you.

  • I have figured out what the issue is. Its because of giving  column property as not null. Thanks a lot for the help.