SII Pending Documents Job

Once SII is enabled, every POS sales transaction (and, optionally, every statement posting) inserts a record in the SII Doc. Upload State and SII History tables with status Pending. The SII Pending Documents Job is what ships these pending records to the Spanish tax authority (AEAT) on a recurring schedule.

Without this job, transactions accumulate as pending but are never actually transmitted.

Schedule the Pending Documents Job

  1. Make sure SII is enabled and the certificate is uploaded. See SII Setup and SII Certificate Setup.
  2. Click the icon, enter Job Queue Entries and select the relevant link.
  3. Select New.
  4. In the General FastTab:
    • Set Object Type to Run to Codeunit.
    • Set Object ID to 10044486 (codeunit LSCLSIIJobUploadPendingDocsExt).
  5. Configure the Recurrence FastTab to run on the cadence you want, for example every minute or every five minutes.
  6. Set Status to Ready.

Batch submission threshold (optional)

By default the job picks up every pending document on each run. To reduce the number of round-trips to AEAT, enable batch submission on the SII Setup page:

Field Description
Enable Batch Submissions When on, the job batches multiple pending documents into a single SOAP request.
Job Batch Submission Threshold Minimum number of pending documents required before the job actually fires. If fewer than the threshold are pending, the job skips this run and waits for more.