title: How to solve this issue: No matching records found (ODBC -2028) when I try to make a post?
body: <p>I am trying to add a timesheet in SAP B1 via lambda/AWS.
  My code already worked before but, now, it returns me this error - No matching records found (ODBC -2028).</p>
  <p>Can you please help me.</p>
  <p>This is my code for post:</p>
  <pre><code>addNewAppointment: function(sId, sTitle, sDescription, sDate, sSTime, sETime,sType){    
              var url = &quot;/destinations/IBC/add&quot;;
              var query = &quot;ProjectManagementTimeSheet&quot;;
              var json =  {   
                              &quot;servicoSL&quot;: query, 
                              &quot;DateFrom&quot;: sDate.value, 
                              &quot;PM_TimeSheetLineDataCollection&quot;: [ 
                                  {                               
                                      &quot;ActivityType&quot;: sType.value, 
                                      &quot;Date&quot;: sDate.value,
                                      &quot;EndTime&quot;: sETime.value,
                                      &quot;StartTime&quot;: sSTime.value
                                  }
                              ],
                              &quot;UserID&quot;: sId.value
                          };
              $.ajax({
                  &quot;url&quot;: url,
                  &quot;method&quot;: &quot;POST&quot;,
                  &quot;timeout&quot;: 0,
                  &quot;headers&quot;: {
                      &quot;Content-Type&quot;: &quot;application/json&quot;
                  },
              
                  &quot;data&quot;: JSON.stringify(json),
                  
                  success: function (data) {
                      
          
                  },
                  error: function (error) {
                      
                  }
              }); 
          },
  </code></pre>
  <p>This is the code for thebutton:</p>
  <pre><code>handleDialogOkButton: function (){
              var oId = Fragment.byId(&quot;dialogFrag&quot;, &quot;userId&quot;).getValue(),
                  oTitle = Fragment.byId(&quot;dialogFrag&quot;, &quot;appTitle&quot;).getValue(),
                  oDescription = Fragment.byId(&quot;dialogFrag&quot;, &quot;moreInfo&quot;).getValue(),
                  oSDate = Fragment.byId(&quot;dialogFrag&quot;, &quot;sDTDate&quot;).getDateValue(),
                  _sDate = new Date(oSDate),
                  oEDate = Fragment.byId(&quot;dialogFrag&quot;, &quot;eDTDate&quot;).getDateValue(),
                  _eDate = new Date(oEDate),
                  oType = Fragment.byId(&quot;dialogFrag&quot;, &quot;type&quot;).getValue();
  
                  
              if (oSDate !== &quot;Error&quot;
                  &amp;&amp; oEDate !== &quot;Error&quot;) {
                  var sId = oId,
                      sType = oType.slice(0,2),
                      sTitle = oTitle,
                      sDescription = oDescription,                
                      Month = _sDate.getMonth(),
                      sMonth = Month + 1,
                      sSDate = _sDate.getFullYear() + &quot;-&quot; + sMonth + &quot;-&quot; + _sDate.getDate(),
                      sSTime = _sDate.getHours() + &quot;:&quot; + _sDate.getMinutes(),
                      sETime = _eDate.getHours() + &quot;:&quot; + _eDate.getMinutes();
                  
                  this.addNewAppointment(sId, sTitle, sDescription, sSDate, sSTime, sETime,sType);
                  this._oNewAppointmentDialog.close();
              } else {
                  this.getTimeSheet();
              }
          },
  </code></pre>
  <p>This is the error that I have:</p>
  <p><a href="https://i.stack.imgur.com/ODHrx.png" rel="nofollow noreferrer">enter image description here</a></p>