cancel
Showing results for 
Search instead for 
Did you mean: 

Scheduled Report Execution Failing

0 Kudos
318

Hi,

I am trying to get scheduled report execution to work but keep getting the following error.

Looking for first schedule to be executed before/on 20231205 15:25
Found Scheduled Report ID: 24
Added SRA2 entry
Handling schedule
XML configuration sent to SAP Business One Client:
<?xml version="1.0" encoding="UTF-16"?>
<SR>
<R D="20231205" T="1525" O="N">24</R>
<L S="B1-SQL" T="7" C="KPILIVE" LL="2" CU="manager" CP="6F5F4783DEBD49B16834D4635E9DAABA808B95D126ADDE3357637FEC3C9D" LS="" SLD="https://b1-ts:40000/sld/sld0100.svc" LC="3"/>
</SR>

Starting SAP Business One Client with configuration written to its stdin
Timeout set to 1 minutes

*** SAP Business One Client Log ***
[1205/152538.766:ERROR:tcp_socket_win.cc(339)] bind() returned an error: Only one usage of each socket address (protocol/network address/port) is normally permitted. (0x2740)
[1205/152538.766:ERROR:devtools_http_handler.cc(249)] Cannot start http server for devtools. Stop devtools.
Command line parsed
schannel: next InitializeSecurityContext failed: SEC_E_INVALID_TOKEN (0x80090308) - The token supplied to the function is invalid
StatusBar Warning Message: Failed to assign SAP Business One user license to SAP Add-Ons
schannel: next InitializeSecurityContext failed: SEC_E_INVALID_TOKEN (0x80090308) - The token supplied to the function is invalid

*** SAP Business One Client Log ***
Process timeout; terminating client process
Process timeout; terminated
SAP Business One Client return code:-1
Distributing results
Unable to extract HTML report output to file C:\Users\ADMINI~1\AppData\Local\Temp\Report.html Error code:-2028
Unable to extract PDF report output to file C:\Users\ADMINI~1\AppData\Local\Temp\Report.pdf Error code:-2028
Unable to extract XML report output to file C:\Users\ADMINI~1\AppData\Local\Temp\Report.xml Error code:-2028
SMTP Server: smtp.gmail.com:587
Sender Email: <administrator@northernworx.com>
No HTML body found nor attachments - there is nothing to send
An error occured while distributing results
SAP B1 client did not update new schedule date and time! Deactivating the schedule to prevent infinite loop.
An error occured while creating report by SAP B1 Client
Schedule processed
I've already properly configured the SBOMailer as it can already send the alerts I've set via email to the specified recipients. Please help.

Accepted Solutions (0)

Answers (1)

Answers (1)

Johan_Hakkesteegt
Active Contributor
0 Kudos

Hi,

The error suggests that the process is not able to connect to B1. "Failed to assign SAP Business One user license to SAP Add-Ons schannel: next InitializeSecurityContext failed: SEC_E_INVALID_TOKEN (0x80090308) - The token supplied to the function is invalid" suggests that the user with which you are trying to get the report, does not have the correct license(s) assigned to it, or the password is incorrect.

Regards,

Johan

0 Kudos

All the accounts in the license administration have SAP Addon Licenses. What could I possibly do so that I can resolve this error?

Johan_Hakkesteegt
Active Contributor
0 Kudos

One thing that you can check is that the user which you are using is not also logged in on another machine.