Common errors
The failures that span more than one page — what you see, what it means, what to do.
Applies to: OpenIAM 2026.8.1
Failures that appear in more than one place, collected. Each page also has its own symptom table for problems specific to it.
Script compilation
unable to resolve class org.openiam... on save
The class is not on the platform's classpath, or the import is wrong
Check the import against the tutorial for that script type. Compile locally first — Set up your environment
Compiles locally, fails on save
Local Groovy or JDK does not match the platform
Groovy 5.0.4, JDK 21
Could not resolve dependencies for org.openiam:... locally
The repository is not configured, or the profile is not active
Check ~/.m2/settings.xml. mvn -X compile shows which repositories were tried
The class is not found although the file is there
The class name does not match the file name
MemberOf_1.0.groovy must declare class MemberOf
Scripts that do not run
Nothing happens and there is no error
A batch script written as a class. Top-level statements never run
Batch scripts are plain scripts, not classes — Batch scripts
A class-based script never runs
Not referenced by name in the configuration it belongs to
Check the synchronization, policy map or reconciliation configuration
It ran once and never again
Attached to a task that is disabled, or the situation stopped occurring
Check the scheduled task, or the reconciliation report
Injected services
An injected service is null at runtime
Injection resolves inside the platform's Spring context, not locally
Cannot be reproduced locally. Test on a deployment
NullPointerException on a service call that looks correct
The response wrapper was not unwrapped
Add .getValue()
groovy.lang.MissingPropertyException: context
The context binding is not available in that script type
Only batch scripts receive it as a binding. Class-based types use an injected field
Values reaching a target system
Values accumulate instead of replacing
The operation was not passed with the value
Pass diffObject.getStatus() into the connector value — Policy map scripts
An attribute is never written
isPerform returns false
Log diffObject.getStatus() at the top of it
An attribute is overwritten when it should not be
isPerform does not distinguish create from update
Gate on AttributeOperationEnum.ADD
Synchronization
Every row is skipped
The transformation is returning SKIP, usually from a catch
Log the exception. It is being swallowed
Objects created but fields empty
Column names do not match the source
Log rowObj.columnMap.keySet() once and compare
Updates create duplicates
The id is cleared on update
Guard the id reset with isNewUser
An attribute is missing in transformation
Not declared in getAttributes()
Add it — Validation and attribute scripts
The run is very slow
Per-row lookups instead of the base class caches
Use rolesByName and the other caches
The API
Most API confusion comes from reading the wrong envelope. Three exist, they are returned by different kinds of endpoint, and their field names do not overlap — API fundamentals has the table.
HTTP 200 with no access_token
The token request failed and the failure is in the body
Read error and error_description — Tokens
HTTP 200 but nothing was saved
The body's own status carries the outcome
Branch on status == 200 inside the body, not on the HTTP code
status is a number, not "success"
You are reading a state-changing endpoint
Its status is an HTTP-style integer. There is no "success" value in that envelope
status is missing entirely
You are reading a search or paged read
Results are in beans; failures in error
errorCode and fieldMappings are always null
Those belong to the internal service envelope, which scripts see and REST callers do not
Read errorList; an entry's validationError names the field
A save is refused with no clear reason
A field failed validation
Read errorList
A search returns nothing although the data exists
The body carried no criteria, so emptySearchBean is set
Add at least one criterion; paging alone is not a search
HTTP 401 on a call that worked before
The token expired, or the session behind it did
Refresh it, and check expired against session_expired — Tokens
HTTP 403 with a valid token
The client's scopes do not cover the path
Widen the provider's scopes to what is needed
HTTP 405 on a provisioning call
The request used PUT or GET
Provisioning operations are POST, and the identifier goes in the body — Managing users
status: 401 with ACCESS_DENIED
The requester lacks an authorization right the operation checks
Grant the right — Managing users
A scheduled provisioning action never happens
performDataString was not in the expected format, or performNow overrode it
yyyy-MM-dd'T'HH:mm:ss.SSS'Z', read as UTC
A user changed in OpenIAM but not in a target system
skipProvisioningManagedSystemSet named that system
Remove it from the set
A second user appears instead of an update
saveUser was called without id
Include id to update; omitting it creates
When none of this fits
Read the shipped scripts. They are production code under conf/iamscripts/, and a working example of the pattern you are attempting usually exists.
Then raise it with your OpenIAM account team, with the script, the configuration it is attached to, and the log output around the failure.
Related
Last updated
Was this helpful?