cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

What is method for Direct Persistence?

Former Member
0 Likes
1,061

When ever we execute impex through HAC. Below we have "Settings" by which we can make certain changes.

I am executing one Java code to remove one Item, I have imported #% impex.enableCodeExecution(true);

For which my script is executing fine. But data is not getting committed in DB. To do that we need to select "Direct persistence".

I just need help what is the code which I should use in my import.

I tried it as #% impex.directPersistence(true);

PFB the screen shot for the same.

It will be great help if you can share the information on the same.

Thanks, Deepak

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

Thanks Geff.

geffchang
Active Contributor
0 Likes

You're welcome, Deepak. Feel free to Upvote and Accept the answer, if it has solved your issue / concern. :)

geffchang
Active Contributor
0 Likes

Have you checked if there are any errors in the logs? Maybe that's why it's not being imported.

Also, check the API for ImpExImportReader. directPersistence is not a valid method. You need to check the "Direct persistence" checkbox instead. You may also need to check "Enable code execution" and "Distributed mode".

Reference: