Workato · SAP connector
Cannot invoke IDocTypeBean.getSegMap() because "selected" is null
Short answer
This error means the agent tried to create a trigger before it finished retrieving metadata from SAP. Wait 90 seconds for the on-prem agent to retrieve the metadata, then try again.
VerifiedLast verified
01Error text
Cannot invoke "com.workato.agent.sap.impl.json.IDocTypeBean.getSegMap()" because "selected" is null02Likely causes
- The agent creates a trigger before metadata retrieval from SAP completes.
03How to fix it
- Wait 90 seconds for the on-prem agent to retrieve metadata.
- Start the recipe again.
iNotes
Workato refreshes IDoc metadata every 24 hours by default. Change it with metadata_refresh_interval in the SAP connection profile.
04Official documentation
→Related errors
- java.lang.NoClassDefFoundError: com/sap/conn/idoc/jco/JCoIDocThis error means the SAP Java IDoc Library is missing from the agent. Download SAP JIDocLib and add sapidoc3.jar to the lib_ext folder.
- Registration of tp from host not allowedThis SAP connection error may indicate a problem in the SAP gateway's reginfo or secinfo files. Follow SAP note 1850230: check the files and the gw/* parameters, and confirm the agent host can reach the SAP gateway host.
Test every fix in a non-production environment before you apply it to production. See how entries are verified.
More for Workato work:Open Workato jobsWorkato rates and salariesHire a senior Workato developer