StoreDoc() API returns error code 2
Symptoms
YourStoreDoc()
API returns an error
code of 2.Causes
For the
StoreDoc()
API to successfully
load a document, two attributes must be set in the following
way: - The application group's Database Organization must have the attribute
Multiple Loads per Table
selected in order forStoreDoc()
to succeed. This attribute is set in the General/Advanced tab in the Properties window of the application group. - The application group's
Expiration Type
on the Storage Management tab must be set toSegment
orDocument
in order forStoreDoc()
to succeed. This attribute is set in the Storage Management tab in the Properties window of the application group.