IMD SolutionComputing LibraryShop main store

Troubleshooting

PI-ICU save fails with no write access to secure %OSI module objects

Edge computing and IIoT Published 6 min read By IMD Solution engineering team

Short answer

The save fails because PI-ICU must pass two permission checks: read and write on the PIModules database and write access on the module objects themselves, beginning at %OSI. In SMT, open Operation → Module Database → Modules → %OSI → Edit → Access Rights, add the identity the ICU connection actually receives with read and write, and retry the save.

On this page
  1. Why database rights alone do not allow the save
  2. What the error text tells you
  3. Grant write access on %OSI
  4. Working the case: ASPCIMIO11 on a PI Data Archive 2015 R2 collective
  5. Separating this denial from runtime and point faults
  6. Questions asked

PI-ICU, the PI Interface Configuration Utility, refuses to save interface parameters with error -2147220215 and the detail [-10401] No Write Access - Secure Object because a save must pass two permission checks, and the database right you granted satisfies only the first of them. Read/write on PIModules clears the database check; it does nothing for the second, the access right on each module object the save touches, which begins at the %OSI root. In PI SMT, open Operation → Module Database → Modules, edit %OSI, and add the identity your ICU connection actually receives — PISupervisors in the reported case — under Access Rights with read and write, then retry the same save. This is a configuration-write denial, not data corruption, and process data is never touched by it.

Why database rights alone do not allow the save #

A PI-ICU save is a write into the Module Database, and the Data Archive checks that write at two scopes. At the top level, access to modules is controlled by the PIModules entry in the Database Security tool in PI SMT, which is the check you already passed. Below it, every module object carries its own access rights, and the server checks the specific object a save modifies. AVEVA documents the scopes separately, down to the Data Archive permissions required for individual module-related tasks.

The two checks are complementary, not redundant. Database rights admit the connection to the database; object rights decide whether that connection may change a given module inside it. Interface configuration lives in modules beneath %OSI, the root of the chain named in the error path, so every save of interface settings writes through %OSI on its way to the interface module. When the access list on %OSI does not include your identity, each property write returns the secure-object denial while the database entry still looks correct — exactly the pattern in the reported case.

What the error text tells you #

One save produces a burst of logged failures, and every line carries the same inner detail, [-10401] No Write Access - Secure Object, wrapped in the outer code -2147220215. In the reported case the burst covered four operations on one interface:

  • ptrPIProperties->Remove on the Arguments property, during the update
  • SetAllArguments, persisting the argument string /DEV=SETCIM_IP23 /PT
  • SetPointSource, saving the point source through a put_Value call
  • SetID, saving the interface ID

Four properties with different purposes fail in one pass, so the common factor is the boundary they all cross — the module chain — and not a malformed argument. The closing line of the message names the server and the interface, and the first line carries the module path; in the reported case it read %OSI:Interfaces:FCCA01S:ASPCIMIO11. Take the path from your own message: that path is the object whose access list you will edit, and the argument string is what your save attempted, not a value to copy.

Grant write access on %OSI #

Keep the identity arrangement you already have: AVEVA's security guidance treats explicit PI user accounts on the Data Archive as the least-secure authentication method and recommends disabling them where possible, so the Windows-mapped identity is the one to keep and to grant. Work the checks in order:

  1. Confirm the effective identity. Note the Windows account of the interactive PI-ICU session — it is not necessarily the interface service account — and read the identity the server shows for that live connection in its connection and security administration views. In the reported case the ICU node logon account maps to PISupervisors.
  2. Confirm the database scope. In SMT → Security → Database Security → PIModules, check that the identity holds read and write. It already did in the reported case, so leave it unchanged.
  3. Grant the object scope. In SMT → Operation → Module Database → Modules, right-click %OSI and select Edit. Under Access Rights, add the identity with read and write. This is the missing grant, and it is the fix for the reported failure.
  4. Retry the same save. If a denial names a module deeper in the chain, make the same grant on that module — the message names the object every time.
  5. Record the change before you make it. %OSI is the root, so the right you add there reaches every interface module beneath it, not only the interface you were editing. Grant it to the administration identity that should hold it and no broader, and put the change in your change record.

On a collective, take the server name from the message and make the grant on the member the ICU connection reached, then repeat the save to confirm.

Working the case: ASPCIMIO11 on a PI Data Archive 2015 R2 collective #

The inputs below come from the reported installation; substitute your own where they differ.

  • Server: a PI Data Archive 2015 R2 collective (reported case)
  • Configuration node: a remote ICU node in the same Active Directory domain, with the node logon account mapped to PISupervisors (reported case)
  • Database scope: PISupervisors already holds read/write on PIModules (reported case)
  • Target object: the interface module %OSI:Interfaces:FCCA01S:ASPCIMIO11, with the attempted argument string /DEV=SETCIM_IP23 /PT (error text)
  • Symptom: the save returns -2147220215 with the secure-object detail on the Arguments removal, SetAllArguments, SetPointSource and SetID (error text)

Rule. A save is allowed only when both scopes answer allow: the PIModules entry in Database Security and the access rights on the module object being written. The effective right is the database right AND the object right, and a single deny fails the write.

Arithmetic. Scope 1: the PIModules entry for PISupervisors holds read and write, so scope 1 answers allow. Scope 2: the access rights on %OSI do not list PISupervisors, so scope 2 answers deny. Effective right = allow AND deny = deny, so the server refuses every property write in the pass and returns -2147220215 with the secure-object detail.

Result. Nothing in the Module Database changes, and the interface keeps collecting data, because the denial blocks the configuration write and nothing else.

Decision. Raise scope 2 to allow: add PISupervisors under %OSI → Edit → Access Rights, and the same arithmetic gives allow AND allow = allow, so the save succeeds. The threshold is strict — both scopes must answer allow — and the error names the failing scope, so any later denial deeper in the chain means the same grant on that module.

Separating this denial from runtime and point faults #

A PI-ICU save is an administrative write to configuration. Collection reads the device and writes values to points, which are separate objects under separate checks, so a healthy data flow proves nothing about configuration rights, and fixing the module chain fixes saves rather than acquisition. A denial follows the object that was being written: when the blocked write is a tag value instead of a configuration save, the problem lives in tag security, as in the guide to the historian vValue write permission error on string tags.

Observed condition Check first Why
Several settings fail in one save with the secure-object detail Access rights on %OSI and the modules below it All writes cross one object boundary
PIModules already shows read and write The object scope, not the database scope Database admission does not settle object rights
Data arrives normally while saves fail The identity of the interactive ICU session Administration and runtime may use different security contexts
Saves succeed but values still miss Interface runtime, device path and point security The configuration check has passed; the data path is a separate fault

Fix the scope the message names, retry the exact operation that failed, and stop there: grant what the save needs and nothing more.

Questions asked

Does the same secure object denial appear outside PI-ICU?

Yes. AVEVA's troubleshooting documentation for PI AutoPointSync records the identical failure from point creation: an attempt to create a point on the server returns the -10401 No Write Access - Secure Object error. The lesson generalizes: the denial names the class of object being written, so grant the connecting identity rights on that object and retry the same operation to confirm.

The message also says the target server database failed to load. Is the database damaged?

Read that sentence as a companion to the access denial, not as a separate fault: the server could not apply the change because the write was refused at the module object. In the reported case the %OSI access right was the entire fix, with no rebuild and no reinstall. Escalate only if the denial persists after the identity holds write access on the whole module chain.

Which identity has to appear in the access rights list?

The identity the ICU connection actually receives, shown for the live session in the server's connection and security administration views. A mapping between a Windows account and PISupervisors records intent; the live connection is what the server authorizes. If the effective identity differs from the one you granted, the denial stays, so confirm the connection before editing any access list.

Where are the required module permissions documented?

AVEVA's PI Server SMT documentation includes a page listing the Data Archive access permissions required for module-related tasks, so the required permission set is task-specific. Consult it when a specific operation such as creating or deleting a module still fails after %OSI itself is writable, and take the exact task name into a support case if one becomes necessary.

Keep reading

  • Troubleshooting

    Why a Grafana MSSQL dashboard shows no data from Node-RED

    If the Node-RED flow still inserts, a blank Grafana MSSQL panel is a read-path fault, not a collection fault. Read the newest row in MSSQL first: current rows there move the fault to the Grafana data source, its read-only login, the query fields or the timestamp convention. Fix the layer whose boundary check fails first.

    Edge computing and IIoT

  • Selection guide

    Choosing a site historian for a PC-based SCADA host

    Start with the historian your SCADA host already licenses; add a separate engine only when an external consumer (enterprise rollup, SSRS-style reporting, cloud analytics) demands one. Keep cross-vendor history on OPC-HDA, move real-time cross-vendor data onto an MQTT bridge instead of OPC-DA COM, and benchmark anything above the reported 10,000-tag field ceiling before committing.

    Edge computing and IIoT

  • How-to

    Connecting InTouch HMI tags to Wonderware Historian by version

    The installed InTouch release decides the path: on 2020 R2 or newer, configure the Historian connection inside InTouch and enable its store-and-forward; on earlier releases, let Historian's IDAS collector read the running InTouch application. Verify with one stored value before expanding the tag set.

    Edge computing and IIoT

Why an OPC Publisher edge module fails after the image pulls