on ‎2018 Oct 29 11:34 AM
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
Request clarification before answering.
Thanks Geff.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
Using Service Layer Direct: https://help.hybris.com/1808/hcd/ccf4dd14636b4f7eac2416846ffd5a70.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.